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

Facing problem in call from CICS to PLI having macros


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Feb 18, 2011 8:23 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top