can we read in input the file with a variable length ?
please , how ..could you help me ?
Answer Posted / anjiii
yes we can read input file with variable length.
while declaring a file in a file section, have two file
records declared at zero level... ex.
FD
01 Var-data-1 pic x().
05
05
.
.
01 Var-data-2 pic x().
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you reference the fixed block file formats from cobol programs
What is Pic 9v99 Indicates in COBOL?
Name some of the examples of COBOl 11?
What are the cobol coding sheets?
How you can read the file from bottom?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Define cobol?
What are 77 levels used for?
Can we redefine the field of x(200) to less than 200?
What is the difference between external and global variables in COBOL?
What is the compute verb? How is it used?
What is a SSRANGE and NOSSRANGE?
what are decleratives in cobol?