|
In a CL program, what's the best way to get
the job number of a job that was just submitted.
This is what we are currently doing...
SBMJOB CMD(CALL PGM(program))
RCVMSG MSGTYPE(*LAST) MSG(&RMSG) MSGID(&MID)
IF COND(&MID *EQ 'CPC1221') THEN(DO)
CHGVAR VAR(&JOBNO) VALUE(%SST(&RMSG 5 6))
ENDDO
This works fine, but sometimes the message text
will be in Spanish and the job number is in
a different position. Is there a better way
to do it so that it doesn't matter what
language is used????
I'm SORRY - I mean the JOB NUMBER - not the spooled file number.mailing
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Nick W Mart
Sent: Wednesday, May 14, 2008 9:24 AM
To: Midrange Systems Technical Discussion
Subject: Re: CPYSPLF - but don't know the spooled file number
Don,
There are other entries for the spooled file number parameter. These
include *ANY, *ONLY, and *LAST.
HTH,
Nick
----- Original Message -----
From: "Don Cavaiani" <dcavaiani@xxxxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, May 14, 2008 9:14 AM
Subject: CPYSPLF - but don't know the spooled file number
Greetings,CODE.
I run a menu step which is a CLP I created and which CALLS an
Outside_Print_Package_Program (CLP & RPG) for which I have no SOURCE
processing. I
The program which loads up requests options, and may then be run
interactively or in batch.
I would prefer this to run in batch all the time, but then I need to
CPYSPLF the printer spooled output file and do some further
want to automatically retrieve and fill in the required CPYSPLFcommand
options, but I don't think I will know or have access to the "spooledfile
number" (unless I manually look it up) when the job is submitted tobatch.
Is that correct? Am I missing something simple here?
TIA
Don
Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063
"It's amazing what you can accomplish if you don't care who gets the
credit." Harry S. Truman
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
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.
No virus found in this incoming message Checked by PC Tools AntiVirus
(4.0.0.26 - 10.072.008).
http://www.pctools.com/free-antivirus/
No virus found in this outgoing message Checked by PC Tools AntiVirus
(4.0.0.26 - 10.072.008).
http://www.pctools.com/free-antivirus/
--
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.
--
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.