IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Calling a Main program from a COBOL in BATCH


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jul 06, 2007 2:25 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top