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

by using IDCAMS utility u can do this.

//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) SKIP(100)
/*

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of SDLC u followed? Why?

1494


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

671


What is link edit in cobol?

699


What the difference is between continue and next sentence?

630


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

672






How do we get current date from system with century in COBOL?

758


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1559


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

381


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

743


A table has two indexes defined. Which one will be used by the SEARCH?

723


What is inspect in cobol ?

776


What are all the divisions of a COBOL program?

639


Can a Search can be done on a table with or without Index?

772


i need a small 3d program using inline and outline.

1614


What is a SSRANGE and NOSSRANGE?

785