Hello folks,
I put together a small process that runs an IEBPTPCH to generate a stream
from one of our JCL Libraries.
Then I ran a small DFSORT to pull out the combinations of JCL Member Name
and the PROC Names that are executed from the JOB.
Everything is fine.
I do not understand the high level flow of events though.
First I do an INCLUDE to select MEMBER NAME Records and records with " EXEC
" but not "PGM="
Then I do an INREC IFTHEN BUILD to reformat the input records.
Then I do an OUTPUT FNAMES so I can see the intermediate file contents.
Then SORT.
Then OUTFILE with BUILD.
Everything is fine here.
I believe I have understood this.

Now when I started down the path, I had the INCLUDE, and the INREC IFTHEN
BUILD sequence.
Then a SORT and then finally, an OUTREC IFTHEN BUILD.
This is where I became confused.
The SORT step failed because my intermediate file format no longer matched
the record length I expected.
I removed the OUTREC IFTHEN BUILD and made it OUTREC BUILD and things ran
fine.

I was under the impression that
1) Do the INREC processing assembling intermediate file records to release
to the SORT
2) Do the Sort
3) Process the SORT Records and generate the SORTOUT Formatted file.

When I have an INREC IFTHEN BUILD and I do not have an OUTREC IFTHEN BUILD,
I get an intermediate file before the SORT.
Once I add the IFTHEN to the OUTREC statement, it seems that my
intermediate file format has changed.

Maybe it is just something dumb like where I have put the OUTFILE(TRACELOG)
statement I use to capture the intermediate file contents?

This is not an urgent burning question. Everything is working fine for me
now.
But apparently, I do have a knowledge gap here.
This is just something I would like to understand a bit better.

Thanks,

.......Cameron

I have an UTPUFT FNAMES

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to