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...

i want to use only first 100 records from a file.plz tell
me how to write JCL for this(for read,copy,write
operations).plz give me details of all posible JCL
utilities?

Answer Posted / santy

Hi,

U can use only first 100 records from a file by using the
IDCAMS utility.

JCL to perform this operation is as below,

//JOBNAME JOB ,, Notify=User_id
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INDATA DD DSNAME=DATA1
//OUTDATA DD DSNAME=DATA2
//SYSIN DD *
REPRO
INFILE(INDATA) OUTFILE(OUTDATA)
START(0) COUNT(100)
/*


COUNT variable in JCL with start counting a record from
start position 0 and count first 100 record.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want a program using by if, evaluate , string, unstring, perform, occurs?

4716


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1220


how do you reference the rrds file formats from cobol programs

1567


Are you comfortable in cobol or jcl?

1038


What is a SSRANGE and NOSSRANGE?

1458


What guidelines should be followed to write a structured cobol prgm?

1144


What are the different open modes available in cobol?

1181


What is the difference between perform … with test after and perform … with test before?

1437


What is the usage of comp fields in cobol?

1178


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

1091


Write a cobol program making use of the redefine clause.

1163


How do you get the data to code the BMS macro?

1961


What is Pic 9v99 Indicates in COBOL?

1253


State the various causes of s0c1, s0c5 and s0c7.

1075


Why did you choose to work with ibm mainframe cobol programming?

1091