using GETMAINs across programs w/ SET ADDRESS OFs



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

using GETMAINs across programs w/ SET ADDRESS OFs

Postby paulmac1968 » Thu Oct 02, 2014 9:01 pm

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
paulmac1968
 
Posts: 23
Joined: Fri Aug 10, 2012 8:42 pm
Has thanked: 0 time
Been thanked: 1 time

Re: using GETMAINs across programs w/ SET ADDRESS OFs

Postby BillyBoyo » Thu Oct 02, 2014 9:36 pm

Yep, should be unproblematic.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: using GETMAINs across programs w/ SET ADDRESS OFs

Postby Daniel9999 » Wed Feb 10, 2021 2:53 pm

You, you can. It the program is not in the same region you must use GETMAIN SHARED
bye
Daniel9999
 
Posts: 5
Joined: Tue Feb 09, 2021 2:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: using GETMAINs across programs w/ SET ADDRESS OFs

Postby enrico-sorichetti » Wed Feb 10, 2021 3:42 pm

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-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post