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
What rules are followed by the search verb.
Can a Search can be done on a table with or without Index?
What is the usage of comp fields in cobol?
What is the Purpose of Pointer in the string?
Explain about different table spaces.
How do get the result of your program directly on your pc?
what are decleratives in cobol?
What are 77 levels used for?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how do you reference the rrds file formats from cobol programs
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
) how do u code after getting data?
A table has two indexes defined. Which one will be used by the SEARCH?
How you can read the file from bottom?