Hello.
Below is a small program that is has an input primary file and an input secondary file. They point to the same file and that file has two records in it that have different values, so the control break will happen for each record.
The first time through the program *IN01 is on and the we hit total time, so XHM is executed. When the second (and last) row is read for the primary file *IN01 is on until it gets to the control break where it is shut off and *IN02 in turned on, so XHM2 is executed. Shouldn't *IN01 stay on? I seem to remember a long time ago someone saying that record indicators don't belong in the total section, so maybe that has something to do with it (?).
Thanks in advance,
Mike
Below is a small program that is has an input primary file and an input secondary file. They point to the same file and that file has two records in it that have different values, so the control break will happen for each record.
The first time through the program *IN01 is on and the we hit total time, so XHM is executed. When the second (and last) row is read for the primary file *IN01 is on until it gets to the control break where it is shut off and *IN02 in turned on, so XHM2 is executed. Shouldn't *IN01 stay on? I seem to remember a long time ago someone saying that record indicators don't belong in the total section, so maybe that has something to do with it (?).
Thanks in advance,
Mike
Code:
FINPUT1 IP E K DISK F RENAME(HAZMATR:INPUT1R) FINPUT2 IS E K DISK F RENAME(HAZMATR:INPUT2R) IINPUT1R 01 I HMCO I HMID L1 IINPUT2R 02 I HMCO XXCO I HMID XXID L1 C 01 ADD 1 LR01 7 0 C 02 ADD 1 LR02 7 0 CL1 01 EXSR XHM CL1 02 EXSR XHM2 C************************************************* *************** C XHM BEGSR C MOVE HMCO HMCO01 2 C ENDSR C************************************************* **************** C XHM2 BEGSR C MOVE XXCO XXCO02 2 C ENDSR C************************************************* ****************
Comment