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 / madhuri tungal
Use IDCAMS program.
//.........JOB........
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INDATASET(INPUT FILE) OUTDATASET(OUTPUT FILE)
SKIP(0) COUNT(100)
/*
| Is This Answer Correct ? | 37 Yes | 2 No |
Post New Answer View All Answers
What are the various section in data division and briefly explain them.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
how do you reference the variable block file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
What is a report item?
What is report-item in COBOL?
Explain the configuration section of a cobol program with examples of syntax.
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
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between next sentence and continue in cobol programing language?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What are the rules of the move verb?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
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
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?