You need to continue this discussion in IBM-MAIN. Within a SELECT statement, only the first WHEN clause that evaluates TRUE will be executed. Your SELECT statement starts with test against POOL_GDAPP. Five WHENs later is the first test (against VALUNIT) that might result in assigning a non-SMS volume. However, you claim that that the allocation specified 3390 units so this test should fail. The next test checks the VOLSER. You didn't tell us what the allocation specified, if anything. If the allocation specified one of the volumes that matches VOL_NONSMS, then the dataset will not be SMS managed.
The same point is true for the next test against VOL_BANQ. Ten tests later you test against DSN_MISNT. This test checks for a subset of datasets whose HLQ is TEST. If it is true, the dataset will not be SMS managed. Finally you test against GDVX_DSN. This test will catch any remaining datasets whose HLQ is TEST. If it is true, the dataset will be assigned to an SMS volume. You need to look at the allocation request (probably in the JCL) and determine which WHEN is the first to evaluate TRUE. That will tell you why the dataset is or is not SMS managed. It would also be worth checking if the ACS routine you posted is the one in actual use. If you still cannot resolve the problem, post the complete DD statement or other source of the allocation. ________________________________ From: willie bunter [mailto:snip] Sent: Tuesday, April 29, 2008 11:28 AM To: Schwarz, Barry A Subject: Re: SMS PUZZLE Barry, I didn't realise that the alloction for TEST.** is overriden with the TEST.MISNT. I noticed that several of the dsns which are being written out to non-SMS disks start with the HLQ TEST.CNSA, TEST.XD008A5 etc. Just for my understanding that even though TEST.MISNT is hard coded, anything following e.g. TEST.** will be allocated on a non-sms vol? Would this occur only if a volser is coded or not coded on the jcl? I noticed that when I executed my tests if I coded the volser of the dasd, the dataset was allocted on the given non-SMS pack. However, if I did not code the volser, the dsn TEST.TESTING for example was allocated on a SMS managed volume. Can you please help me understand this? ---------------------------------------------------------------------- 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