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
Which is not true about evaluate statement
For rewrite, why is it mandatory that file needs to be opened?
What is the difference between Call and a Link?
What is the difference between next sentence and continue in cobol programing language?
Describe the cobol database components?
What is the problem of ordered sequential files access?
What is the usage of comp fields in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Have you used comp and comp-3 in your project? And how?
How do define dynamic array in cobol.
What are the different rules of SORT operation?
how to move the records from file to array table. give with code example
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Why occurs cannot be used in 01 level in COBOL?