Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you define a sort file in JCL that runs the COBOL
program?

Answer Posted / shinoy sansilavose

Suppose if you want to sort a file TEST.OUTPUT.FILE which
is the output of your COBOL program then you can do the
following coding in JCL,

//SORTIN DD DSN=TEST.OUTPUT.FILE,DISP=SHR
//SORTOUT DD DSN=TEST.OUTPUT.SORT.FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=TESTDA,
// SPACE=(CYL,(50,50)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)

Now the sorted file TEST.OUTPUT.SORT.FILE will be sorted
based on the field starting from 1 to 5 specified in the
input for SORT.

Is This Answer Correct ?    30 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the local-storage section?

1193


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1198


Mention the guidelines to write a structured cobol program?

1142


Discuss about changing dataset name in proc.

1294


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1210


how to refer the data field?

2320


How do you differentiate between cobol and cobol-ii?

1282


A table has two indexes defined. Which one will be used by the SEARCH?

1329


What is the utilization of copybook in cobol?

1274


How are the next sentence and continue different from each other?

1339


how do you reference the esds vsam file formats from cobol programs

1269


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2492


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1218


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1147


What do you understand by psb and acb?

1181