I feel like a bit of a dolt asking this but for many moons, my shop frowned on GETMAINs. Don't know why. Just weren't used. Well... I want to use it to pass more data than is allowed in the 32K DFHCOMMAREA. However, finding practical examples on the net hasn't been easy. Plenty of sample GETMAINs. Plenty of SETs. But find how they work together has been difficult. So here's what I want to do.
Program A is my first program. In this program I want to do my GETMAIN of a 01 level in Linkage other than my DFHCOMMAREA and store the address in a pointer variable housed within my DFHCOMMAREA. So I'm going to say Prog A needs to execute both a GETMAIN and a SET. What would a simple GETMAIN and SET look like?
Program B would then have control sent to it via an EXEC CICS LINK. How would I bring in the memory GETMAIN'd in Prog A? Just a SET command in Prog B? Would I need another GETMAIN statement?
Thanks.
Paul M.