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 is the default value(s) for an initialize? What keyword will allow for an override of the default?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What are the different types of condition in cobol and write their forms.
What is the problem of ordered sequential files access?
Name the sections present in data division.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What are the different rules to perform a Search?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are declaratives and what are their uses in cobol?
What is inspect in cobol ?
How do you reference the following file formats from cobol programs?
Whats the difference between search & search ALL?