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

How to Invoke a S03 program from an SRC program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mssraju44

New User


Joined: 19 Sep 2007
Posts: 2
Location: USA

PostPosted: Thu Oct 04, 2007 1:22 am
Reply with quote

Hi, I have an already existing SRC COBOL program in production. As per our new business requirement, I need to invoke a new S03 program with CICS EXEC statement in it from the above SRC program. When I do the same, I am getting ASRA abend when I refer to the variables in the linkage sections.

Please advise.

Thanks,
Vijay
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: Thu Oct 04, 2007 1:29 am
Reply with quote

Hello Vijay and welcome to the forums,

I am not familiar with the terms "SRC COBOL" and "S03 program".

If you provide a bit more clarification, we may be able to offer suggestions.
Back to top
View user's profile Send private message
mssraju44

New User


Joined: 19 Sep 2007
Posts: 2
Location: USA

PostPosted: Thu Oct 04, 2007 8:02 pm
Reply with quote

Hi, thanks for the response.
Sorry about the ambiguity. I wrote it in the layman terms. I think what I have written below is also in layman terms.

Both SRC and S03 programs are cobol programs. SRC programs do not have any CICS commands in them whereas S03 programs have CICS commands in them. By default an SRC program on compilation will produce only the batch load module. We need to relink the batch load module to create the cics load module which will be executed in the cics environment. An S03 program will create cics load module by default upon recompilation. The problem we are facing is, when the cics load module of the SRC program invokes the cics load module of S03 program, its abending.


Thanks,
Vijay
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 04, 2007 8:07 pm
Reply with quote

Quote:
We need to relink the batch load module to create the cics load module


A batch load module uses system services NOT ALLOWED in a CICS module

Unless You were confused in Your description of the problem, it looks like Your
organization is taking a wrong approach

regards

e.s
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: Thu Oct 04, 2007 8:16 pm
Reply with quote

Hello,

As Enrico mentions, there are batch components that cannot run in CICS.

Many organizations create 2 modules that provide similar functionality - one for online and one for batch.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Thu Oct 04, 2007 8:21 pm
Reply with quote

Go to concur with enrico.

Besides, per your definition:

Quote:

an SRC program on compilation will produce only the batch load module


So how on earth can you expect:

Quote:

when the cics load module of the SRC program invokes the cics load module of S03 program


to happen?

Either you have misstated your situation or the person who planned this application doesn't have a clue about CICS.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top