how you will define variables length in cobol.

Answers were Sorted based on User's Feedback



how you will define variables length in cobol...

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

how you will define variables length in cobol...

Answer / sree

The variable length in cobol can be defined as s9(4) usage
comp.

Is This Answer Correct ?    1 Yes 0 No

how you will define variables length in cobol...

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

Post New Answer

More COBOL Interview Questions

How to print 10 to 1 if the input have only 10 digit number?

0 Answers  


What is the purpose of Identification Division?

1 Answers  


What is SSRANGE, NOSSRANGE ?

5 Answers  


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?

5 Answers  






What is the difference between PIC 9.99 and PIC9v99?

0 Answers  


What are the different open modes available in cobol?

0 Answers  


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


What are the steps you go through while creating a COBOL program executable?

3 Answers  


how to transfer the file from pc to mainframe??

2 Answers  


01 a pic s9(5) value '-12345' how it will be stored

7 Answers   ACS,


What is the difference between goback, stop run and exit program in cobol?

0 Answers  


Categories