Opened 11 years ago
Closed 11 years ago
#350 closed help (fixed)
info to help with a bottom script please
Reported by: | mjm | Owned by: | jeff |
---|---|---|---|
Component: | UM Model | Keywords: | |
Cc: | Platform: | ||
UM Version: | 4.5 |
Description
Hello
I want to have a bottom script, run after UM jobs.
It needs to distinguish between the last job and a job in the middle of a CRUN series of jobs.
Can you give me a bit of guidance about how to make that distinction please?
thanks
Mike
Change History (2)
comment:1 Changed 11 years ago by jeff
- Owner changed from um_support to jeff
- Status changed from new to accepted
comment:2 Changed 11 years ago by jeff
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
Hi Mike
There is a variable in the history files called RUN_RESUBMIT which is set to either 'Y' or 'N' and this determines whether the model will be resubmited. After the model is finished qsfinal is run and this runs qshistprint which runs qxhistreport which reads the .phist file and writes out a file called $TEMP/rsub.$$. This file looks like this
So variable RUN_RESUBMIT is now FLAG in this file.
After running qshistprint qfinal will run qsresubmit, this takes the rsub file and changes it to look like this
so it can load these variables into the environment. It uses $FLAG to determine whether to resubmit the model.
Some relevent UM decks are
HPRINT1 - compiled to create qxhistreport small exec
WRITRSU1 - called by HPRINT, writes out rsub file
SETHIST1 - detemines whether target run length is reached and sets RUN_RESUBMIT
I hope this gives you enough information to do what you need.
Jeff.