When the documentation for an LPDSERV/LPDDEST/LPDFILE parameter specifies &xnol any of the following formats can be used:
&x / &xn / &xno / &xnol
where:
The & subparameter specifies that dynamic value assignment must be used.
The x subparameter specifies which of the following input control lines or data header lines must be used:
The optional n subparameter specifies which word within the control line parameter must be used. If the n subparameter is not specified, format &x is being used, alphanumeric characters are copied from the input control line to the output file attribute.
If specified, the n subparameter has the following meaning:
The optional o subparameter specifies the offset; this is where the copying of alphanumeric characters from the input control line word to the output file attribute is to begin.
The optional l subparameter specifies the number of alphanumeric characters to be copied from the specified input control line word to the output file attribute.
Note: The &xnol parameter can be specified up to four times per LPDSERV/LPDDEST/LPDFILE parameter.
Examples
|
Syntax Sample Code |
Interpretation |
|---|---|
|
FNAME=&P |
Use the control line P user ID as the output filename. |
|
FNAME=&N0 |
Use the last word in control line N as the output filename, unless it is a commonly used file extension. |
|
FNAME=&P102&P152&F1 |
Set the output file name to the first character 1-2 and 6-7 of control line P user ID followed by first control line N word. |
|
FHEADER='Job Name : ', |
Let a data header line start after first occurrence of string 'Job Name : ' in the first data buffer, if found. Set the output file name and writer name to the first word within the data header line. |
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|