× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Submit Job with OVRPRTF
  • From: Chris Bipes <rpg@xxxxxxxxxxxxxxx>
  • Date: Tue, 13 Jun 2000 21:21:38 -0700
  • Organization: CrossCheck, Inc

The override has to be executed _after_ the job is submitted to batch.  
Remember that the entire environment is not copied to the _new_ batch job.  We 
test CLP programs to see if they are running interactively, if so, they submit 
them selves to batch and end.  If they are in batch, they skip the submit and 
starting running the CL commands and rpg programs.

We use:
DCL VAR(&JOBTYPE) TYPE(*CHAR) LEN(1)
RTVJOBA TYPE(&JOBTYPE)
IF COND(&JOBTYPE = '0')  THEN(DO)
  insert submit command here
  RETURN
ENDDO
rest of CL program
ENDPGM

Give it a try.

Christopher K. Bipes            Mailto:chrisb@cross-check.com
Senior Programmer/Analyst    Http://www.cross-check.com
CrossCheck, Inc.                707 586-0551 x 1102
6119 State Farm Drive       707 586-1884  FAX
Rohnert Park, CA  94928
----- Original Message ----- 
From: "hartawan reksodiputro" <jeanhartawan@hotmail.com>
To: <RPG400-L@midrange.com>
Sent: Tuesday, June 13, 2000 7:32 PM
Subject: Submit Job with OVRPRTF


Hello everybody,

I have a CL that will submit a call to RPG program. But before that I need 
to override the PRTF. The problem is that the result is not effected by the 
OVRPRTF, but when I try to change SBMJOB to just CALL interactively it 
worked. I try to put the OVRPRTF inside the RPG program, I got the same 
result. Then I use OVRSCOPE(*JOB) for the OVRPRTF command, still the same 
result. Any suggestions?

TIA
Jean

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.