|
Sender: |
The Revised LISTSERV Distribution List <LSTSRV-L@DEARN> |
From: |
Ross Patterson <A024012@RUTVM1> |
Date: |
Mon, 12 Oct 87 09:32:41 EDT |
In-Reply-To: |
Message of Fri, 09 Oct 87 23:12:51 CDT from <PHIL@UIUCVMD> |
Reply-To: |
The Revised LISTSERV Distribution List <LSTSRV-L@DEARN> |
It shouldn't be hard to parse out the Date: line in a Rexx exec, and
you already have the "set the date and time" program - LSVSDATE, shipped
as part of LISTSERV. Syntax is "LSVSDATE <fn> <ft> <fm> <yymmdd> <hhmmss>".
Yes, that's "yymmdd", not "mmddyy". Remember, Eric lives in France ;-)
Try something like:
/* FIXDATE EXEC - syntax: FIXDATE <fn> <ft> <fm> */
Arg FN FT FM .;
'EXECIO * DISKR' FN FT FM '(STEM L.';
Do I = 1 to L.0;
Parse upper var L.I Resent? 'DATE:' Day ',' DD Month YY HH ':' MM ':' SS .;
If L.I = '' then Leave;
If Resent? ^= '' & Resent ^= 'RESENT-' then Iterate;
MM = Find(Mon,'JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC');
If MM = 0 then Leave;
'LSVSDATE' FN FT FM YY || MM || DD HH || MM || SS;
If RC ^= 0 then Say 'Error(' || RC || ') from LSVSDATE';
Exit RC;
End;
Say 'Couldn't find Date: or Resent-Date: in headers of' FN FT FM;
Exit 100;
|
|
|