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 to fetch even records from one file to another file by
using ICETOOL in JCL?

Answer Posted / harsha

//STEP1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=INPUT.DATA,DISP=SHR
//OUTDATA DD DSN=OUTPUT.DATA,DISP=(NEW,CATLG,DELETE)
.
.
.
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=OUTDATA,SAMPLE=2

THIS WILL COPY ALL EVEN RECORDS
-------------------------------------------
FOR ODD RECORDS
OUTFIL FNAMES=OUTDATA,STARTREC=1,SAMPLE=2

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are steplib and joblib?

1170


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2295


Explain how can the attributes of one sms dataset be copied to another dataset?

1217


What is the function of job statement in jcl?

1094


is there any way to execute more than one proc in the same exec statement at the same time..?

2635


what is the use of JCL?

1158


what is the use of IEBGENER utility?

1174


Is condition checking possible in jcl?

1216


i want to store 20 digits . how will u do it in cobol ?

1421


How can values be passed from the job stream to an executable program?

1444


How does jcl act on a cobol code?

1186


what is “Cond= even” and “Cond=only”?

1313


What is NOTCAT ?

1335


which utility is used to run a cobol-db2 program?

1402


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

2255