using GETMAINs across programs w/ SET ADDRESS OFs

Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer
paulmac1968
Posts: 23
Joined: Fri Aug 10, 2012 8:42 pm
Skillset: cobol db2 cics
Referer: internet search

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

BillyBoyo
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

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

Yep, should be unproblematic.

Daniel9999
Posts: 5
Joined: Tue Feb 09, 2021 2:03 am
Skillset: System programmer
Referer: Research

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

enrico-sorichetti
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

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


  • Similar Topics
    Replies
    Views
    Last post