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

What is the default value(s) for an initialize? What keyword will allow for an override of the default?

658


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.

1115


What are the different types of condition in cobol and write their forms.

656


What is the problem of ordered sequential files access?

694


Name the sections present in data division.

701






1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1612


What are the different rules to perform a Search?

613


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1022


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.

5680


What is the default value(s) for an initialize and what keyword allows for an override of the default?

693


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


What are declaratives and what are their uses in cobol?

710


What is inspect in cobol ?

801


How do you reference the following file formats from cobol programs?

693


Whats the difference between search & search ALL?

5264