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 is the difference between PIC 9.99 and 9v99 in COBOL?
Which Search verb is equivalent to PERFORM…VARYING?
How can you get the ksds file records into your cobol program?
how do you reference the printer file formats from cobol programs
What is perform what is varying?
Whats the difference between search & search ALL?
Explain what you understand by passing by value.
How do we get current date from system with century in COBOL?
What are different data types in cobol?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is report-item in COBOL?
Difference between array and sub-script ?
In COBOL, what is the different between index and subscript?
What is the difference between PIC 9.99 and PIC9v99?