Adding the Month and Year to a File Send Command

| Home Page |


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:

.SET,$TEMP = @DATE
.SET,$MONTH = @$TEMP (0:1)
.SET,$DAY = @$TEMP (3:4)
.SEND,GDF@$MONTH@$DAY.EFT

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.

Ted Egan
(941) 593-3677 (Voice or Fax)
(941) 598-2586 (Voice only)