JebusRocks
Programmer
Hello all, I am new to Easytrieve and have a basic/general question. I have an existing program that reads records from a file and creates a report. I need to split the report into 2 reports based on a value of a field(the field can only have 1 of 2 values). So I have sorted the master file into 2 files, 1 for each of the 2 conditions. I now want to create 2 reports using these 2 new 'sorted' files. To do This I have coded the following 2 job statements, one after another.
JOB INPUT sortfile1 START INIT-TOTALS FINISH DISPLAY-TOTALS
PERFORM LOAD-REQUESTS
JOB INPUT sortfile2 START INIT-TOTALS FINISH DISPLAY-TOTALS
PERFORM LOAD-REQUESTS
within the PERFORM LOAD-REQUESTS proc there is an if statement to execute one of the 2 reports ie
IF condition = ‘Y’ THEN
PRINT REP1
ELSE
PRINT REP2
END-PROC
so my question is; will the first job statement execute to complition(run the finish proc called DISPLAY-TOTALS) before executing the second job statement?
thanks
JOB INPUT sortfile1 START INIT-TOTALS FINISH DISPLAY-TOTALS
PERFORM LOAD-REQUESTS
JOB INPUT sortfile2 START INIT-TOTALS FINISH DISPLAY-TOTALS
PERFORM LOAD-REQUESTS
within the PERFORM LOAD-REQUESTS proc there is an if statement to execute one of the 2 reports ie
IF condition = ‘Y’ THEN
PRINT REP1
ELSE
PRINT REP2
END-PROC
so my question is; will the first job statement execute to complition(run the finish proc called DISPLAY-TOTALS) before executing the second job statement?
thanks