MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2014

Re: Using variables instead of constants in AJS



fixed

Hi Paul

I don't know about doing this in AJS but there's no reason you can't design
the CL so it can re-run from a designated sequence number.
Just add sequence as a parameter to the CL and then put a sequence tag
against the restores in the CL.
If no sequence is specified default the program to start from the beginning.



On Fri, Apr 25, 2014 at 1:55 PM, Steinmetz, Paul <PSteinmetz@xxxxxxxxxx>wrote:

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/

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.









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