a input file contains 1000 records, how to move the first
500 record into one out put file and how to move to second
500 records to anothere output file

Answer Posted / bvr

THIS IS FOR COPY FIRST 500 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) THIS IS FOR COPY FIRST 100 RECORDS
/*

THIS IS FOR COPY next 100 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
skip(500) -
COUNT(500)
/*

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need exexution process for JCL programs

1847


how do you access an uncataloged dataset in a jcl?

827


What is the purpose of dd * statement in jcl?

794


what is DSN parameter and DISP parameter is used for?

672


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

906






Explain dd statement in jcl?

640


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

741


how would you create a temporary dataset? And where will you use them?

764


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

846


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

778


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

793


Brief description of inline procedure of jcl.

681


Explain how can the disposition of sysout datasets be set for an entire jobstream?

634


How does the jcl specify the job to os?

687


what JCL Procedures?

697