So, is the following arrangement kosher? Meaning, if the caller
of my macro happens to code a double-apostrophe in one of these arguments,
will the following arrangement successfully prepare that value for the DC
statement? Obviously, I could test this, but I'm also interested in any
additional hints/suggestions that might accompany any confirmation.
&LABEL CSECT INITIATE CONTROL SECTION
USING &LABEL,15 ESTABLISH TEMP BASE
* ---------------------------------------------------------------
J HDR&LVL SKIP OVER CORE EYE-CATCHER
AIF (T'&BASE(1) EQ 'O').SKIP
DROP 15 DISESTABLISH TEMP BASE
.SKIP ANOP
*
DATA LOCTR
PGMNAME DC CL8'&LABEL' PROGRAM
&STR SETC DEQUOTE('&VERSION')
&STR SETC DOUBLE('&STR')
DC CL4'&STR' VERSION
&STR SETC DEQUOTE('&AUTHOR')
&STR SETC DOUBLE('&STR')
DC CL4'&STR' AUTHOR
&STR SETC DEQUOTE('&DATE')
&STR SETC DOUBLE('&STR')
DC CL8'&STR' DATE
*
CODE LOCTR
HDR&LVL DS 0H
...etc...
Sincerely,
Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************