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
 
sharing PLI storage

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

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Mon Oct 16, 2017 10:11 pm    Post subject: sharing PLI storage
Reply with quote

I have a rexx program that calls several PLI programs. I would like to allocate storage in one PLI program and have it persist so that a subsequent PLI program can use it.

I use DCL abc .... BASED(abcptr)
then use ALLOCATE abc

but the storage is released when the first program ends. Is there a way to make it persistent?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Mon Oct 16, 2017 10:24 pm    Post subject: Reply to: sharing PLI storage
Reply with quote

try passing to the program a workarea, in the style of IGGCSI00
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1067
Location: Oostende, Belgium

PostPosted: Tue Oct 17, 2017 1:57 am    Post subject: Re: sharing PLI storage
Reply with quote

Pedro wrote:
I have a rexx program that calls several PLI programs. I would like to allocate storage in one PLI program and have it persist so that a subsequent PLI program can use it.

I use DCL abc .... BASED(abcptr)
then use ALLOCATE abc

but the storage is released when the first program ends. Is there a way to make it persistent?

No, if you invoke separate PL/I programs you cannot do this, you would have to write out your data to an intermediate file, and read it back in in the next PL/I program.

Can you provide more details as to what you want to achieve, and how much data you want to carry over?

I have no experience passing a workarea to a PL/I main program, but my guess is that you could also get this to work, you just have to use another calling convention, as the standard ones (char(100) var for batch, ptr for CICS and IMS) probably won't do.
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 Iterative use of a REXX script causin... bryonyh CLIST & REXX 4 Fri Jul 28, 2017 12:52 pm
No new posts GETMAIN / FREEMAIN versus STORAGE OBT... steve-myers PL/I & Assembler 8 Wed Feb 01, 2017 1:45 am
No new posts How storage is calculated for AN-Edit... Raghu navaikulam COBOL Programming 2 Wed Mar 09, 2016 3:51 pm
No new posts How can amount of the Storage Usage b... esduman61 CICS 6 Wed Mar 09, 2016 1:19 pm
No new posts CEE0813S Insufficient storage was ava... kishpra COBOL Programming 18 Mon Nov 09, 2015 8:37 pm

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