I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answer Posted / seema dawlekar
This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50
this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order
correct me if I am wrong
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What are the cobol coding sheets?
What is the difference between perform … with test after and perform … with test before?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Which is not true about evaluate statement
Are you comfortable in cobol or jcl?
What is static and dynamic call in cobol?
Give some examples of command terminators?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
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 are the various section in data division and briefly explain them.
What rules are to be followed while using the corresponding options?
How you can read the file from bottom?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is cobol?
how do you reference the variable block file formats from cobol programs