I have one GDG.
Everyday One new version is being created.Now I want to
split this created version in different files each having
1000 records.
Here Problem is I don't know How many records will be there
in new version of GDG?
that's why I don't know How many Out files we need to use .
Interesting??????????????
Answers were Sorted based on User's Feedback
Answer / ashl
Write a Clist that will take the input file read the first 1000 records and create
an output file. After 1000 records are created the next record should be
written to a new file. The Clist can allocate files during execution.
The timing of the file allocation will be handled logically by the program.
Keep a counter, once it reaches 1000, initialize the variable and and create a
new file.
The output file names will vary with each file.
Execute the Clist as a step in your job and once the step completes the
output should be different files with 1000 records.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / xx
Give your GDG base in the i/p DD name of SORt step. Use
SPLIT parameter in SORT to complete the task. When you use
GDG base all generation of that GDG will be considered.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shridhar
STEP001 : Selcopy/utility to count no of records in GDG.
Just mention GDG base in input to include all versions.
STEP002 : REXX step. define a stem of 1000. read input
batch of 1000 records or if not 1000 then for actual count.
Alloc a new file dynamically. Write these no of records.
Reduce actual count by no of records written.
Repeat procedure untill no of records <= 0.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / neelu
i think we need to generate a JCL through a cobol program
and then run the Created JCL.
| Is This Answer Correct ? | 0 Yes | 3 No |
How gdg are concatenated?
Can I send output of job to my remote device careerride123?
Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???
What are three major types of JCL statements? What are their functions?
There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.
Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?
What is order of searching of the libraries in a JCL?
I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended with bad records coming from unix. I recovered that by deleting the bad data. I need permenant solution how to fix the issue? The record is getting characters in in first 9 positions which it should not. Please provide me the solution how to skip the records if it finds the charcters in the first 9 positions. K
what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.
how to run JCL thru COBOL.
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent
What does a disposition of (NEW,CATLG,DELETE) mean?