IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to read accounting information in COBOL from jobcard


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 89
Location: brisbane

PostPosted: Mon Sep 21, 2020 9:57 am
Reply with quote

I have a batch program PROG1 that is executed from JCL such as:

Code:
//JOBID JOB (XYZ,W), ...
..
//JOB1 EXEC PGM=JOB1 ...


PROG1 calls program PROG2.

within PROG2 I need to be able to read the accounting info (XYZ,W) on the job card. An important constraint is that it needs to be done inline, ie - without calling any external programs / subprograms

can this be done ?
Back to top
View user's profile Send private message
prino
Warnings : 1

Senior Member


Joined: 07 Feb 2009
Posts: 1245
Location: Vilnius, Lithuania

PostPosted: Mon Sep 21, 2020 4:17 pm
Reply with quote

Yes, and there are probably plenty of examples of control-block chasing around in the REXX/Clist and/or PL/I sections. Just adapt them to Cobol.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Cobol-db2 : SQL query is running for ... DB2 4
No new posts How to read unpacked field created in... DFSORT/ICETOOL 11
No new posts COBOL/CICS Emulators CICS 4
No new posts Remove additional information in SUPE... TSO/ISPF 10
This topic is locked: you cannot edit posts or make replies. Passing a field name to COBOL program COBOL Programming 10
Search our Forums:

Back to Top