wirte a pgm in using files in which we hav 10 ,20,30 40...100
records in inputfile and i want them to be send to outputfile
in reverse order.
PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..
Answer Posted / siris
//SYSIN DD *
SORT FIELDS = COPY
OUTREC=(10,100,SEQNUM,4,ZD)
/*
0R
//SYSIN DD *
SORT FIELDS=(100,4,ZD,DESC)
OUT REC=(10,100)
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different rules of SORT operation?
) How do u handle errors in BMS macro?
how do you reference the rrds file formats from cobol programs
explain sorting techniques in cobol program?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is the problem of ordered sequential files access?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
When is inspect verb is used in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
In COBOL, what is the different between index and subscript?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Which Search verb is equivalent to PERFORM…VARYING?