sample code for read a 2nd record from last in flatfile how
can do?
Answer Posted / nsingh
ADD SEQUENCE NUMBER
SORT FIELDS=COPY
OUTREC FIELDS = (1,80,SEQNUM,ZD,A)
NOW SORT SEQ NUM IN DESCENDING ORDER
SORT FIELDS=(81,4,ZD,D)
INCLUDE ONLY 2ND LAST REC
SORT FILEDS = COPY
INCLUDE COND = (81,4,ZD,EQ,0002')
REMOVE SEQ NUM FROM FILE & THIS REC IS SELECTED
SORT FIELDS =COPY
OUTREC FIELDS = (1,80)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
) How do u handle errors in BMS macro?
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?
How do you reference the following file formats from cobol programs?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between external and global variables in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
how do you reference the rrds file formats from cobol programs
Write the code implementing the perform … varying.
How many sections are there in data division in COBOL?
What is the problem of ordered sequential files access?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What the difference is between continue and next sentence?