Please enable JavaScript to view this site.
This program will check the validity of a filename for either the IFS or QDLS. If you specify a Replacement character in PARM2 then any invalid characters found in the filename will be replaced with this character. If you will be writing the file to QDLS then specify QDLS in PARM3 as the validity checking is different.
The filename will be passed back in PARM1 either the same as was passed in or with invalid characters replaced if required.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
Filename |
132 |
Return Filename |
132 |
PARM2 |
Replacement character |
1 |
Error #1 |
1 |
PARM3 |
File Server, Blank or QDLS #2 |
4 |
|
|
PARM4 |
- |
|
|
|
PARM5 |
- |
|
|
|
PARM6 |
- |
|
|
#1 | "E” = Invalid characters found and they have NOT been replaced. |
“R” = Invalid characters found and have been replaced
“F” = Invalid replacement character
“L” = Length of filename invalid. Note: If an “L” is returned then no other validity checking is performed and the returned filename will be identical to the input filename.
#2 | If this parameter is blank then assumes IFS, for QDLS file checking enter QDLS. |
Invalid Characters for IFS
\ / : * ? " < > |
Valid Characters for QDLS
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
$ # @ _ . -