How to read records from flat file in reverse order through
COBOL program?
Answer Posted / dimpy19
1. Using FileAid
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=YOUR INPUT DATASET,DISP=SHR
//DD01O DD DSN=YOUR OUTPUT FILE IN REVERSE ORDER,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//SYSIN DD *
$$DD01 COPYBACK
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are 77 levels used for?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the problem of ordered sequential files access?
What is the difference between perform … with test after and perform … with test before?
What is the difference between comp and comp-3?
Explain what you understand by passing by value.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Why occurs cannot be used in 01 level in COBOL?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How do get the result of your program directly on your pc?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.