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: 91
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: 1263
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 how to convert and use 1 bit hex-numb... COBOL Programming 10
No new posts VB file copy COBOL program gives erro... COBOL Programming 3
No new posts Cobol program to determine the sequen... COBOL Programming 2
No new posts COBOL 6.2 vs 6.3 COBOL Programming 1
This topic is locked: you cannot edit posts or make replies. COBOL-Common routine that contains al... COBOL Programming 4
Search our Forums:

Back to Top