Title: | FOCUS, from INFORMATION BUILDERS |
Moderator: | ZAYIUS::BROUILLETTE |
Created: | Thu Feb 19 1987 |
Last Modified: | Mon May 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 615 |
Total number of notes: | 1779 |
Does anybody know, how to remove trailing blanks from a Dialog Manager variable? I need this variable as Mail address. To send the Mail to an variable address, I have an input via CRTFORM. Example: -SET &MAILADR = ' '; -CRTFORM -" <&MAILADR " -VMS MAIL/SEND..........."MRGATE""RTO::&MAILADR""" The variable &MAILADR has 30 character. The problem is, if the input is shorter then the variable I get an mismatch. MAIL does not find the address with trailing blanks. In the SUBROUTINE LIBRARY USERS MANUAL I can't found any solution. Thanks for your help!!!! Annette
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
223.1 | Try this | MEMV03::SHELTRY | Rrruffles have rrranch? | Tue Jun 20 1989 23:13 | 20 |
The first problem may be your MAIL/SEND command (unless you mistyped your example. I used the following .FEX to send mail to myself and had no problem at all with the trailing blanks. It seems that they were ignored, since MEMV01::SHELTRY does not take up the full 30 characters. Also, try the <T.&MAILADDR instead of <&MAILADDR. I'd be interested in hearing if this works for you or not. From: MEMV04::SHELTRY_V5 "Wayne - MEM Finance IM&T - ACO/E50 - DTN 232-2526" 20-JUN-1989 22:09 To: MEMV01::SHELTRY CC: SHELTRY_V5 Subj: test file -SET &MAILADDR=' '; -CRTFORM -" " -"MAIL ADDRESS: <T.&MAILADDR" -RUN -VMS MAIL/SUBJECT="TEST FILE" TEST.FILE &MAILADDR Wayne |