I'm trying to create several files from one file. lets say I had a file with 100 records and I waned it to copy the first 25 to one file then the next 25 to another then the next 25 to another...( I hope you get what I'm trying to do)
Do you want the job to dynamically determine the number of output files by dividing the count of records by 25, and then set up that number of output files and do the split to them? Or do you want something else?
What would a model output DD statement look like?
Are you allowed to have a job submit another job to the internal reader?
What is the RECFM and LRECL of the input file?
What is the approx. maximum number of input records you expect?
What I really want to do is create PDF files... However ( for some reason ) the PDF mainframe app. can not create more than 1,000 pages ( when the page # = 1,000 ). So what I did as a temp fix was to have the program write to a new output file every 1,000 pages of data.
If I could find out a way to have the JCL create files of 1,000 pages of data that would be great.
If You post more details, somebody might give more suggestions...
after Your last post ( about pdf creation ) I doubt that a split based on the record count might achieve what You need...
it would be necessary for all the pages to have exactly the same layout,
number of lines, sometimes even the same line pattern...
( a right justified 1 and a right justified 999999999999 might give different record length,
a character string with different non blank lengths might have the same problems,
and these things might give a different number of records )
I am pointing out things to meditate upon,
I do not know what software You are using to create the PDF' s ,
so I do not know the details of output sizes
I would analyze more in depth and maybe resort to some kind of dynamic
allocation of output PDF's
And again ( personal opinion ) a 1000 pages document is something not really handy to read and search...