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

write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...

5 Answers   iGate,


can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.

10 Answers   IBM,


what is the difference between start and startbr?

2 Answers  


Differentiate between structured cobol programming and object-oriented cobol programming.

0 Answers  


i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

7 Answers   CTS,






Can we redefine the field of x(200) to less than 200?

0 Answers  


Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand

4 Answers   TCS,


Whats the difference between search & search ALL?

3 Answers   IBM,


Explain Restart Logic in Cobol?

1 Answers   L&T, Syntel,


level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   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  


A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X

3 Answers   TCS,


Categories