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 Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 0 Wed Jul 26, 2017 5:19 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


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