Examples of Holding Long File Names

When you are working with long file names, you might experience a problem where your symbolic parameter goes over the 120-byte character limit. The following two examples show how to hold a long file name by using two variables:

SET %RF = "/data/b2b/JPB/SENDING/Final/JUNE/"
SET %RF = %RF + "PGPMFOUT.ENCRYPTED-FILENM.PGPO9156ARMPFN"
SET %RF2 = ".D" + %GDATE
SET %RF2 = %RF2 + ".T"
SET %RF2 = %RF2 + %TIME
QUOTE OFF
PROCESS ....
....
RFILE="%RF.%RF2"
...
Note: The QUOTE OFF parameter is important because it tells the script program not to include quotation marks when performing variable substitution.
SET %RF = "/data/b2b/JPB/SENDING/Final/JUNE/"
SET %RF = %RF +"PGPMFOUT.ENCRYPTED-FILENM.PGPO9156ARMPFN"
QUOTE OFF
PROCESS ....
....
RFILE="%RF..D%GDATE..T%TIME"
...
Note: For the ".." in the RFILE parameter, the first dot indicates the end of the variable, while the second dot is part of the file name.