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 / arul anand.a
SORT FIELD=COPY,
SKIPREC=0 ( skip 0 records)
STOPAFT=100 (stop after 100 records).
so it will copy only first 100 records.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Mention the guidelines to write a structured cobol program?
What are the different rules to perform a Search?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Name the sections present in data division.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What type of SDLC u followed? Why?
How many bytes S(8) comp field occupy and its maximum value?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what happens if parmparameter passes zero bytes to the program
Which mode is used to operate the sequential file?
Name the divisions, which are available in a cobol program?
what is search and searchall?what is the diffrence between them?give an best example?