Answer Posted / kalpana
Using the sort card we can split the file.
//SYSIN DD *
SORT FIELDS=COPY,SKIPREC=56910,STOPAFT=25
/*
SKIPREC means how many records we need to skip and STOPAFT
means how many records we need to put in the
file.
Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
Differentiate between the joblib and the steplib statements?
How to alter the parameters for the existing gdg?
what are the types of abends that occur on job failure? And explain the possible causes of these
Why block size is multiple of lrecl in jcl?
Why include statement is used in a jcl?
a dd statement has 2 types of parameters. Name them?
Explain the purpose of dd dummy statement?
what is DSN parameter and DISP parameter is used for?
what sort card you will use to copy the data from one dataset to another dataset?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is job control language?
What is one line to pass PARM from JCL to COBOL?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What are hierarchy levels in jcl?