Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about multiple job statements

Status
Not open for further replies.

JebusRocks

Programmer
Sep 14, 2004
30
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top