Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to read accounting information in COBOL from jobcard

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 85
Location: brisbane

PostPosted: Mon Sep 21, 2020 9:57 am    Post subject: how to read accounting information in COBOL from jobcard
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: 1220
Location: Vilnius, Lithuania

PostPosted: Mon Sep 21, 2020 4:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to read duplicate rows from tabl... Poha Eater DB2 2 Wed Oct 07, 2020 11:08 pm
This topic is locked: you cannot edit posts or make replies. Missing Negative sign in COBOL jzhardy COBOL Programming 6 Sat Sep 26, 2020 11:32 am
No new posts Read 4MB message and split into multi... myselfsk15 COBOL Programming 9 Fri Sep 25, 2020 7:24 am
This topic is locked: you cannot edit posts or make replies. Control-M Information. Vineet CLIST & REXX 1 Mon Sep 21, 2020 6:32 pm
No new posts COBOL reading from SYSIN jzhardy COBOL Programming 1 Mon Sep 21, 2020 2:37 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us