John In spite of your later excuse, what was asked this time is much the same as last time[1][2] - except that somehow or another John McKown didn't manage to extend David Bond's (last time) and Ray Overby's (this time) suggestion to a single expression to be used within the macro. Was this actually tested - as something which passes the assembler - or is it being proposed only as a possibility?
It's noticeable that the first response in this thread - just as many responses in the previous thread did - implies throwing these "weird and wonderful" macros away and using the tried and tested method of simply manipulating the fundamental control blocks as we have always done and as we will doubtless continue to do while trying to forget that VTAM and VSAM development were ever so presumptuous as to suggest that there could or should ever be any other way! All that said, the DD-name is surely one of the parameters that was supported from the very beginning and so should be supported with whatever level of flexibility is reasonable - and the presented requirement looks very reasonable. Note that it was only when I tried using these macros with - at the time, 1982 or so - recent enhancements that I shamed VTAM development into confessing that these macros had been thrown on the scrap heap, sorry, "functionally stabilised"! - [1] "VarIabLe DD names in VSAM." on "Tue, 7 Feb 2012 22:17:00 +0000" as Tony Harminc reminded us. Actually I remembered the thread just not the perpetrator - although since I check these things he (or it might have been a "she") wouldn't have escaped detection for long! [2] Has anyone bothered to check whether or not VSAM development actually still pretends to support these xxxCB macros 30 years after its erstwhile "partner in crime" VTAM development abandoned them? - Chris Mason ----- Original Message ----- From: "Bodoh John Robert" <[email protected]> To: <[email protected]> Sent: Wednesday, March 07, 2012 10:05 PM Subject: Non-Flexible VSAM macros 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
