|
Adding the Month and Year to a File Send Command |
| Question. How
can I send an Electronic Fund file Transfer referenced as GDF with the
month and year as part of the name of the file?
Answer. You can create a file that has a form such as GDFmmyy.EFT, where "mm" was the two-digit month and "yy" was the two digit year. The first three lines shown below should precede your .SEND command. Much of this is case-sensitive, so I recommend that you do everything in upper case:
The first line sets a variable "$TEMP" to the system date variable. The second and third lines set the variables $MONTH and $DAY to substrings of the $TEMP variable. The spaces are required. The last line concatenates the two variables to the constant "GDF" and then appends ".EFT." Note the use of the @ sign when referencing the variables. You could also precede the "GDF" with a directory path.
|