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 / rik

YOU HAVE TO SIMPLY WRITE THE FOLLOWING CODE IN YOUR JCL :

//STEP1 EXEC PGM=SUPERSRT
//SORTIN DD DSN=TEST001.INFILE,DISP=SHR
//SORTOUT DD DSN=TEST001.SORTED,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=WORK,SPACE=(TRK,5,2),RLSE)
//SYSIN DD *
SORT FIELDS=(16,05,ZD,A)
/*

THE CONTAINT OF THE TEST001.INFILE WILL BE COPPIED TO
TEST001.SORTED FILE AND THIS TEST001.SORTED FILE WILL BE
SORTED IN ASCENDING ORDER OF THE CONTAINT OF FIELD POSITION
16 TO 20..

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2679


What is amode(31)

1178


how do you reference the fixed unblock file formats from cobol programs

1246


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4174


HOw can I get the negative sign while deduct high value from low value

2259


How do get the result of your program directly on your pc?

2349


What is rmode(24)

1151


How to remove 2 duplicate records and copy only one using job control language?

1224


Difference between array and sub-script ?

1669


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

1153


What is redefines clause in COBOL?

1296


Write the code to count the sum of n natural numbers.

1211


Give some examples of command terminators?

1265


Why would you use find and get rather than to obtain?

1188


What are the various section in data division and briefly explain them.

1188