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


Please Help Members By Posting Answers For Below Questions

Which is not true about evaluate statement

1564


For rewrite, why is it mandatory that file needs to be opened?

616


What is the difference between Call and a Link?

694


What is the difference between next sentence and continue in cobol programing language?

700


Describe the cobol database components?

672






What is the problem of ordered sequential files access?

692


What is the usage of comp fields in cobol?

649


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1896


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.

5667


Have you used comp and comp-3 in your project? And how?

2003


How do define dynamic array in cobol.

665


What are the different rules of SORT operation?

689


how to move the records from file to array table. give with code example

2212


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1833


Why occurs cannot be used in 01 level in COBOL?

708