how you will define variables length in cobol.
Answers were Sorted based on User's Feedback
Answer / shamina
We can define variable length in cobol in the File section
as :
RECORDING MODE IS V OR VB ( where V stands for variable and
VB stands for variable block )
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sree
The variable length in cobol can be defined as s9(4) usage
comp.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / app
file section.
fd recseqv
recording mode is v
record varying from 3 to 80 characters.
01 recseqv-fd-record pic x
occurs 3 to 80 times
depending on ws-record-length.
Is This Answer Correct ? | 0 Yes | 1 No |
How to print 10 to 1 if the input have only 10 digit number?
What is the purpose of Identification Division?
What is SSRANGE, NOSSRANGE ?
How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.
10 Answers ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
What is the difference between PIC 9.99 and PIC9v99?
What are the different open modes available in cobol?
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
What are the steps you go through while creating a COBOL program executable?
how to transfer the file from pc to mainframe??
01 a pic s9(5) value '-12345' how it will be stored
What is the difference between goback, stop run and exit program in cobol?