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: 94
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

Senior Member


Joined: 07 Feb 2009
Posts: 1275
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 Getting SOC4 while calling a Cobol DB... PL/I & Assembler 4
No new posts COBOL Program to search for five digi... COBOL Programming 4
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Search substring in internal table of... COBOL Programming 2
Search our Forums:

Back to Top