I wonder why the macro doesn't just put the normal LA 15,LIT1 in the expansion instead of that goofy DC and S-con.
On 3/7/2012 16:28, Ray Overby wrote:
Try the following: MVC LIT1,0(R3) SET THE DDNAME TO USE MODCB .....,DDNAME=(*,LIT1),..... In your working storage specify: LIT1 DS CL8 If you look at the MODCB code expansion it DC's a LA and then generates an SCON for LIT1 (last 2 bytes of the LA instruction). A MVC is then done from the target GPR of the LA instruction into the MODCB parameter area. I think that should do it for you. Ray Overby Key Resources, Inc. Ensuring System Integrity for z/Series^(TM) www.zassure.com (312)574-0007 On 3/7/2012 15:05 PM, Bodoh John Robert wrote:I have been trying to use the VSAM macros to generate and modify an ACB. One of the things I would like to modify is the DDNAME. The DDNAME actually comes into my program as a parameter so I would like to issue a MODCB ACB=...DDNAME=(R3) but I get an error because the DDNAME parameter is not a character string. How can I set the DDNAME in an ACB where the name is dynamic? I've also can not see a way to set the MACRF keyword dynamically. John [email protected]<mailto:[email protected]> Fredericksburg: 540-368-0196 Cell: 845-532-2079
