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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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