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
 

 

Facing problem in call from CICS to PLI having macros

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
anjuraj

New User


Joined: 04 Aug 2007
Posts: 1
Location: Pune

PostPosted: Fri Feb 18, 2011 4:59 pm    Post subject: Facing problem in call from CICS to PLI having macros
Reply with quote

I am facing the issue in VAG-EGL migration. The problem is that when the EGL program(COBOL CICS) calls PLI program the parameter is not passing properly. The EGL program A calls PLI pgm B with some parameters.The PLI program validates the parameter passed and returns the flag.If flag is equal to Y then only the screen will come properly. Otherwise the screen will display with error.

We have analyzed the issue and found that we need to add the COMM_AREA in the program using COMM_PTR and refer the parameter using pointer.
But the problem is that in PLI program first line should start with procedure PROC OPTIONS(MAIN). We need to add the option REENTARNT in PROC options.
In PLI program B the first line of the program is a macro which will expand and generate the procedure statements and last line of pgm is also a macro which ends the procedure. We compiled the program using PLICICS JCL and link edit the PLI program B and copy the load that points to CICS library. The screen is abended with CICS Abend APCT.

When we comment out the macro and execute the program using PLICICS compiler and copy the load to CICS library screen is getting executed successfully.
Since we need macro to be executed and cannot take risk to change the macro since it is being used by so many programs which makes an impact to other programs too.
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 Feb 18, 2011 8:23 pm    Post subject:
Reply with quote

Hello,

Quote:
Since we need macro to be executed and cannot take risk to change the macro since it is being used by so many programs which makes an impact to other programs too.
If this needed quickly, you might consider creating a new macro with a different name and migrate the existing code to this new macro over time. . .
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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