Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Analyzing input strings with &SUBSTR - the SUBMITFQ CLIST z/OS TSO/E CLISTs SA32-0978-00 |
|
You can use the &SUBSTR built-in function to analyze input from the invoker and to modify the input if necessary. The SUBMITFQ CLIST, shown Figure 1, determines whether the data set name supplied by the invoker is a fully-qualified name or not. If the data set name is not fully qualified (does not include a user ID), the SUBMITFQ adds the user ID and submits the data set name in the correct form on a JCL statement. SUBMITFQ determines whether the data set name is fully qualified by comparing the first character in &DSN to a single quote ('). If the logical comparison is true, the CLIST assumes a fully-qualified data set name and removes the quotation marks. (Unlike on the ALLOCATE command, fully-qualified data set names are not enclosed in singquotation marksle quotes on JCL statements.) If the first character of &DSN is not a single quote, the CLIST assumes the data set name is not fully qualified and prefixes the character string "&SYSUID.." to the value of &DSN. In either case, &DSN contains a fully-qualified data set name when referred to in the SYSUT1 JCL statement. Figure 1. The SUBMITFQ
CLIST
|
Copyright IBM Corporation 1990, 2014
|