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
how can i see junk values in dclgen or in hostvariable of comp ?
) what is the difference between AID and HANDLE AID?
what happens if parmparameter passes zero bytes to the program
How you can characterize tables in cobol?
What are the various section in data division and briefly explain them.
State the various causes of s0c1, s0c5 and s0c7.
how do you reference the printer file formats from cobol programs
Are you comfortable in cobol or jcl?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are the pertinent COBOL
What is static and dynamic call in cobol?
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
What are various search techniques in cobol? Explain.
Define cobol?
Why would you use find and get rather than to obtain?