Hi Caesar,

Easiest way would be to add a RTVJOBA command to your CL program instead of
passing it parameters. If the CL program can't be changed, the COBOL program
could call a CL program that did the RTVJOBA and then called the actual CL
program.

If you really need to get that info in the COBOL program, you can use the
QUSRJOBI API to do it.

I can dig up COBOL code to call that API if you need it.

Have fun!
Richard

-----Original Message-----
From: cobol400-l-admin@midrange.com
[mailto:cobol400-l-admin@midrange.com]On Behalf Of Cesar Altamirano
Sent: Wednesday, November 20, 2002 10:10 PM
To: COBOL AS/400
Subject: Job Parameters


Hi,
Is there any way or structure inside a COBOL program,
to obtain the Job Name, User Name, Job Number, etc.
like the SDS structure of an RPG program?
I need to invoke a CL program from COBOL
passing this parameters.

Thanks for any Help.
Regards,
Caesar A.



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-2022 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.