The following SELECT statements:
OPTION SELECT DSN=A.B.FILE1,RET=30,CYC=0,DLA=0,MVSCAT=NO
OPTION SELECT DSN=A.B.FILE2,RET=30,CYC=0,DLA=0,MVSCAT=NO
OPTION SELECT DSN=A.B.FILE3,RET=30,CYC=0,DLA=0,MVSCAT=NO
can be replaced with the following statement, which uses masking:
OPTION SELECT DSN=A.B.FILE?,RET=30,CYC=0,DLA=0,MVSCAT=NO
Note: A.B.FILE? may select datasets beside A.B.FILE1, A.B.FILE2, and A.B.FILE3. For example, if you have a dataset named A.B.FILE9 to which you want to assign a retention other than 30 days, the statement above would not be appropriate.
Parent Topic |