On 6 May 2010 16:53:34 -0700, in bit.listserv.ibm-main you wrote:
>On 6 May 2010 17:35, Paul Gilmartin <[email protected]> wrote:
>> On Thu, 6 May 2010 17:14:07 -0400, Tony Harminc wrote:
>
>>>JCL doesn't restrict the characters allowed in a DSNAME, as long as
>>>the DSNAME is quoted. But if it's quoted, it can't be catalogued.
>>>
>> Strange rule; I wonder what motivated it?
>
>It's been that way "forever". Since before there were catalogues, I
>believe. I think the "can't be catalogued if it's quoted" just means
>that the comparison of the DISP=(...CATLG...) is done before the
>syntax check
Probably the rule goes back to the CVOL catalogs where the name was
stored level by level and each piece had to be 8 bytes or less in
length. Bill Fairchild and others are able to give a more accurate
explanation.
>
>> But not in JCL:
>>
>> 3 //STEP0 EXEC PGM=IEBGENER
>> 4 //SYSPRINT DD SYSOUT=(,)
>> 5 //SYSIN DD DUMMY
>> 6 //SYSUT1 DD DISP=SHR,DSN=SYS1.MACLIB('SPLEVEL')
>> 7 //SYSUT2 DD SYSOUT=(,)
>> //*
>> STMT NO. MESSAGE
>> 6 IEF640I EXCESSIVE NUMBER OF POSITIONAL PARAMETERS IN THE DSNAME
>> FIELD
>>
>> WTF?
>
>I wasn't imagining that you could quote the member name on its own.
>But then of course what if you want parentheses in your
>(non-partitioned) DSNAME? Sigh... Maybe this predates PDSs, or are
>they primordial?
>
>In any case, the whole thing is effectively moot these days, because
>SMS rejects funny names:
>//DD DD DSN='Weird&&Funny Characters',
>// UNIT=SYSALLDA,VOL=SER=ZOSL10,
>// SPACE=(TRK,(1,1)),DISP=(NEW,KEEP)
> 3 IGD01018I DATA SET Weird&Funny Characters
>HAS A NONSTANDARD DATA SET NAME AND IS NOT ELIGIBLE TO BE SMS-MANAGED
> 3 IGD301I DATA SET ALLOCATION REQUEST FAILED -
>DATA SET Weird&Funny Characters
>IS NOT ELIGIBLE FOR ALLOCATION ON SMS-MANAGED VOLUME ZOSL10
>
>and naturally an attempt to bypass SMS with e.g. STORCLAS=NOSMS fails
>differently:
> 3 IGD310I DATA SET ALLOCATION REQUEST FAILED -STORAGE CLASS
>NOSMS SPECIFIED FOR
>DATA SET Weird&Funny Characters
>WHICH IS NOT ELIGIBLE TO BE SMS-MANAGED
>
>If you are able to allocate on a non-SMS system, you may get the
>original results.
>
>Tony H.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [email protected] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html