home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxsendat.zip
/
fixdate.cmd
Wrap
OS/2 REXX Batch file
|
2000-01-02
|
858b
|
29 lines
/* Copyright Thomas of Pepper Head
Because some people cannot be bothered writing software thats Y2K complaint!
for
PMMAIL 1.95 etc
set this as your "Accounts -> Properties -> Rexx -> Rexx Send"
and at least the mail you send will say its being sent in 2000 rather than 00
*/
parse arg filename
say filename
i=0
fixneeded = "YES"
do until lines(filename) = 0
i=i+1
data.i = linein(filename)
if fixneeded = "YES" then do
if pos("Date: ",data.i) = 1 then do
parse value data.i with day ',' daynumber month year date
if year < 10 then year = year + 2000
data.i = day||',' daynumber month year date
fixneeded = "NO"
end
end
end
data.0 = i
do i = 1 to data.0
rc = lineout(filename,data.i,i)
end
rc = lineout(filename)