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



I use the QUSRJOBI API, format name JOBI0400:

05  h1-RcvrVar.                                             
    10  filler           pic s9(09)                  Binary.
    10  filler           pic s9(09)  value 273       Binary.
    10  filler           pic  x(10).                        
    10  h1-RvJobUser     pic  x(10)  value spaces.          
    10  filler           pic  x(235).                       
    10  filler           pic  x(10).                        
05  h1-LenRcvrVar        pic s9(09)  value 273       Binary.
05  h1-FmtName           pic  x(08)  value 'JOBI0400'.      
05  h1-QlJobName         pic  x(26)  value '*'.             
05  h1-IntJobId          pic  x(16)  value ' '.             
05  h1-ApiErr.                                              
      10  filler         pic s9(09)  value 272       Binary.
      10  filler         pic s9(09)                  Binary.
      10  h1-AeMsgId     pic  x(07)  value spaces.          
      10  filler         pic  x(01).                        
      10  h1-AeMsgDta    pic  x(256) value spaces.        


call 'QUSRJOBI' using h1-RcvrVar      
                      h1-LenRcvrVar   
                      h1-FmtName      
                      h1-QlJobName    
                      h1-IntJobId     
                      h1-ApiErr       
move h1-RvJobUser  to h1-userid   


Terry Winchester 
Programmer/Analyst
________________________________
The Raymond Corporation
terry.winchester@xxxxxxxxxxxxxxx 

-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx 
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Rosinger
Sent: Tuesday, October 31, 2006 7:15 AM
To: cobol400-l@xxxxxxxxxxxx
Subject: [COBOL400-L] API from COBOL/ILE to get batch job info?

List,

Is there a way to get job information from a COBOL/ILE batch 
program during 
run-time? Things like jobname, user, etc? TIA

-- 
Regards,

Michael Rosinger
Systems Programmer / DBA
Computer Credit, Inc.
640 West Fourth Street
Winston-Salem, NC  27101
336-761-1524
m rosinger at cciws dot com 


-- 
This is the COBOL Programming on the iSeries/AS400 
(COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.



Confidentiality Notice:

The preceding e-mail message (including any attachments) contains information 
that may be confidential, protected by applicable legal privileges, or 
constitute non-public information. It is intended to be conveyed only to the 
designated recipient(s). If you are not an intended recipient of this message, 
please notify the sender by replying to this message and then delete it from 
your system. Use, dissemination, distribution or reproduction of this message 
by unintended recipients is 
not authorized and may be unlawful.





As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.