Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 0 Wed Nov 22, 2017 10:23 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

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