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

Active User


Joined: 31 Oct 2006
Posts: 131
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: 1306
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top