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
What type of SDLC u followed? Why?
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?
What is link edit in cobol?
What the difference is between continue and next sentence?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do we get current date from system with century in COBOL?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
A table has two indexes defined. Which one will be used by the SEARCH?
What is inspect in cobol ?
What are all the divisions of a COBOL program?
Can a Search can be done on a table with or without Index?
i need a small 3d program using inline and outline.
What is a SSRANGE and NOSSRANGE?