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

//STEP1 EXEC PGM=MYSORTPGM
//INFILE DD DSN=MY.UNSORTED.FILE,DISP=SHR
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(100,20))
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(100,20))
//OUTFILE DD DSN=MY.SORTED.FILE,
// DISP=(,CATLG,DELETE),
// UNIT=TEST,SPACE=(CYL,(100,10),RLSE),
// DCB=(DSCB.FB,LRECL=500)
SELECT SORTWK01-FILE ASSIGN TO SORTWK01.
SD SORTWK01-FILE
etc.

Is This Answer Correct ?    15 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1182


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1224


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1194


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1133


Write a program to enter and display the names of students in a class using the occurs clause.

1200


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

861


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

3156


Write some characteristics of cobol as means of business language.

1138


What are the rules of the move verb?

1258


How can you get the ksds file records into your cobol program?

1093


Write a program that uses move corresponding.

1136


What is amode(24)?

1225


Name the sections present in data division.

1234


what are decleratives in cobol?

2252


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17869