Simple question.....
Can I do a GETMAIN in program A, pass the pointer via linkage to program B and then in program B do a SET ADDRESS OF MY-FIELD TO PTR-FROM-PGM-A? I've seen plenty of examples of where it's all done in one program, but not across two. I'm thinking it shouldn't be an issue.
Thx.
Paul Mac
using GETMAINs across programs w/ SET ADDRESS OFs
-
- Posts: 23
- Joined: Fri Aug 10, 2012 8:42 pm
- Skillset: cobol db2 cics
- Referer: internet search
-
- Global moderator
- Posts: 3805
- Joined: Tue Jan 25, 2011 12:02 am
- Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
- Referer: Google
Re: using GETMAINs across programs w/ SET ADDRESS OFs
Yep, should be unproblematic.
-
- Posts: 5
- Joined: Tue Feb 09, 2021 2:03 am
- Skillset: System programmer
- Referer: Research
Re: using GETMAINs across programs w/ SET ADDRESS OFs
You, you can. It the program is not in the same region you must use GETMAIN SHARED
bye
bye
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: using GETMAINs across programs w/ SET ADDRESS OFs
please stop resurrecting old and concluded topics
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Similar Topics
- Replies
- Views
- Last post
-
-
RC16 upon subsequent calls "Address LINKMVS ICEMAN"
by golemis » Thu May 27, 2021 6:07 pm » in CLIST & REXX - 2
- 2162
-
by golemis
View the latest post
Thu May 27, 2021 8:30 pm
-