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
Mention the guidelines to write a structured cobol program?
What do you understand by psb and acb?
Write a program to enter and display the names of students in a class using the occurs clause.
What is comp-1 and comp-2?
What kind of error is trapped by on size error option?
Which Search verb is equivalent to PERFORM…VARYING?
What is amode(24)?
What is an in line perform? When would you use it? Anything else you wish to say about it.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are the cobol coding sheets?
What are the different open modes available in cobol?
What type of SDLC u followed? Why?
Difference between array and sub-script ?