Okies; I was able to get something worked out here; instead of going through the drill of submitting a job to INTRDR or having a seperate step consisting of SORT, I re-designed the sloppy process a teensy-weensy bit, to get the job done without much rework.
Have modified the COBOL which was generating the original SORTOUT data, to create and subsequently submit the SORT step to SPOOL; this would remove the need for seperate JCL/Parm Member/TWS schedule/IEBGENER job for INTRDR submission/and a horde of other crap, which was an unnecessary addition in the original design; and this makes my code reusable with minimal changes in future (in case new file names are to be added in SORTOUT).
Stuck at one point now, the part where we build this JCL was piece of cake; the part which has to submit the job, is where am stuck now.Query
: is it possible to submit a JCL to SPOOL from a batch COBOL program? <Through CICS, yup, that is something I am aware of and have done quite a few times before; through batch, have never tried this one, and unfortunately don't have access to run this code at this moment, travelling over a long weekend
Has anyone tried this before??? A peek at the syntax would be really helpful.
I don't think we can use a EXEC CICS SPOOL%%%%
format with this one; have never done it before hence skeptical.
If this li'l piece gets working, I can call it a day.