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

What is the difference between binary search and sequential search?

1043


What is the difference between next sentence and continue in cobol programing language?

1161


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2534


How to print 10 to 1 if the input have only 10 digit number?

1216


how to access the file from prodution from changeman tool and to submit a file to production

7441


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1174


In COBOL programming, what is PERFORM? What is VARYING?

1087


How you can read the file from bottom?

1084


How to know whether the module is dynamical or statistical?

1081


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1196


What is static and dynamic call in cobol?

1002


Explain what you understand by passing by value.

1099


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3206


Difference between cobol and cobol-ii?

1194


Write a program to explain size error.

1137