MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2014

Using variables instead of constants in AJS



fixed

I have several scheduled jobs that perform 20 RSTLIBBRM with Save level . . . . . . . . . . . > *CURRENT

90 RSTLIBBRM SAVLIB(BRCPGMS1) DEV(TAPMLB01) SAVLVL(*CURRENT)
100 RSTLIBBRM SAVLIB(BRCPGMS) DEV(TAPMLB01) SAVLVL(*CURRENT)
110 RSTLIBBRM SAVLIB(BRCPGMSN) DEV(TAPMLB01) SAVLVL(*CURRENT)

95% of the time, Save level *Current is ok.
There are times when Save level needs to be changed to SAVDATE followed by a date.
Cumbersome to change every sequence.
I would like to change the RSTLIBBRM, make save level a variable, load it once in the beginning of the job.

Is this possible within AJS?
I know it is possible if I put all the RSTLIBBRM in a CL.
Not the preferred solution.
If the job ever fails, the convenience of being able to restart the job a specified sequence is a requirement.
If not is there another solution?

Thank You
_____
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home

psteinmetz@xxxxxxxxxx
http://www.pencor.com/






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact