PRTTXT on the SBMJOB gives you 30 characters.
Vincent
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Robert Houts
Sent: July-30-12 10:12 PM
To: RPG programming on the IBM i / System i
Subject: RE: Seeking inspiration ...
Actually, the user index and data queue suggestions are both practical. You
only have to create one object for all jobs that use this function. As the
submitting jobs are either interactive or web pages, it's unlikely they
would submit multiple jobs rapidly, so both of the options are viable.
They're not as ideal as using an environment variable or the LDA, but as Jon
has clearly stated that neither is viable for him, IMO using a user index or
data queue are the only practical options left.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Mark Lazarus
Sent: Monday, July 30, 2012 11:29
To: RPG programming on the IBM i / System i
Subject: RE: Seeking inspiration ...
Don,
There are several restrictions in play:
1) The LDA cannot remain modified, at the point where any other program in
the job stream requires the original values.
2) No parm changes can be made. Since the second job is submitted from the
first, how would the submitter communicate to the submitted job which object
to look at? This is true regardless of whether the mechanism is a *DTAARA,
*FILE, *USRSPC, etc. QTEMPs aren't shared between jobs.
The only practical suggestions so far seem to be using an environment
variable (which requires a change to the SBMJOB command string) or saving
the LDA immediately before SBMJOB and restoring it immediately after the
SBMJOB is executed.
-mark
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.