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?

Answers were Sorted based on User's Feedback



How to fetch even records from one file to another file by using ICETOOL in JCL?..

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

How to fetch even records from one file to another file by using ICETOOL in JCL?..

Answer / mdv

Both solutions given above are right.

Is This Answer Correct ?    1 Yes 0 No

How to fetch even records from one file to another file by using ICETOOL in JCL?..

Answer / rajvee

Step01 exec pgm=sort
.
.
.
sysin dd *
sort fields=copy
outfil fnames(out1,out2),split

first rec will be in out1 file, second in out2,third in
out1 and so on..

so out2 will have even number recs.

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More JCL Interview Questions

I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

0 Answers  


Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?

2 Answers  


What is model dataset label(Model DSCB)?

1 Answers  


what are the symbolic parameters? why do we use symbolic parameters ?

2 Answers   IBM, TCS, UST, Xansa,


What is DATACOM db?

2 Answers  


what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......

2 Answers  


How to execute step2,step1,step3 when step1,2&3 are in order

6 Answers   TCS,


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.

4 Answers   IBM,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


what happens in conversion stage in job processing?

0 Answers   IBM,


is step name is compulsory in jcl ?

2 Answers  


Categories