Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calling a Main program from a COBOL in BATCH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vjeya

New User


Joined: 05 Jul 2007
Posts: 1
Location: Denmark, Copenhagen

PostPosted: Fri Jul 06, 2007 1:54 am    Post subject: Calling a Main program from a COBOL in BATCH
Reply with quote

I am currently working a program(PGMA) wherein it should call a main program(PGMB) in it. This PGMB will accept a one INPUT FILE and ONE creates one output file.

PGMA has a cursor and for each row it will generate an input file for PGMB.
PGMB should be called for all the rows fetched by the cursor and generates one output file for each call.

PGMB is a standalone program. I heard like throuh tso commands in the PGMA I can make a call. But I am not clear how to allocate the input file for PGMB.

I would like ur to know ur suggestions and solutions for this.

Jeya
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jul 06, 2007 2:25 am    Post subject:
Reply with quote

Hello and welcome to the forums,

Typically, the main prorgrm does the calling - it is not usually called.

In a normal cobol/batch execution, there is usually no need for tso commands.

How much cobol experience do yo have?

Please describe what kind pf process you need to support. If you will describe the required process, we may be able to offer suggestions. If you show some examples of your input and output(s), that will help.

Also, this appears to be more of a programming question than a jcl question and it you perfer, i will move it to COBOL. Just let me know.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us