Please enable JavaScript to view this site.
This program will check the validity of a file name for either the IFS or QDLS. If you specify a Replacement character in PARM2 then any invalid characters found in the file name 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. Note: This program doesn't check for the existence of the file just that its file name is valid. If you wish to check for the existence of a file then please use COBCHKPATH.
The file name 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 |
File name |
132 |
Return File name |
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 file name invalid. Note: If an “L” is returned then no other validity checking is performed and the returned file name will be identical to the input file name.
#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
$ # @ _ . -