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
 
How to Invoke a S03 program from an SRC program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to Invoke a S03 program from an SRC program
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

Site Director


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

PostPosted: Thu Oct 04, 2007 1:29 am    Post subject:
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    Post subject: How to Invoke a S03 program from an SRC program
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Oct 04, 2007 8:07 pm    Post subject: Reply to: How to Invoke a S03 program from an SRC program
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

Site Director


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

PostPosted: Thu Oct 04, 2007 8:16 pm    Post subject:
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: 147
Location: Columbia, MO

PostPosted: Thu Oct 04, 2007 8:21 pm    Post subject: Reply to: How to Invoke a S03 program from an SRC program
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    IBMMAINFRAMES.com Support Forums -> CICS 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 write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

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