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

When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1213


what are the various stages of job processing?

1277


What are the parameter we cannot use in procedure?

1116


Explain about ISPF/TSO Commands

1938


What parameter directs the output of the job log dataset?

1275


what is the purpose of coding notify parameter in job statement?

1156


What is the use of disp parameter?

1134


how can you check if a file is empty using jcl?

1414


How to run cobol program using jcl?

1219


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1453


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1158


How can unused space allocation be returned to the system when a dataset is closed?

1480


Explain how can return codes be tested before execution of a job step?

1316


How does jcl act on code(if you take a cobol program)?

1272


Explain the job statement in jcl?

1155