Jeff Wilson
"Jeff Wilson" <JeffW...@aol.com> wrote in message
news:72bf9d04.04040...@posting.google.com...
example of use
test cl
dcl &user *char 10
RTVJOBA USER(&USER) TYPE(&TYPE)
ovrdbf input tofile(ftp) mbr(billzipI)
ovrdbf output tofile(ftp) mbr(billzipO)
FTPNOTE
ftp...
ftpnote 'Job Completed'
ftpnote cmd (calls ftpnoter)
cmd prompt('add note to ftp output')
PARM KWD(TEXT) TYPE(*CHAR) LEN(60) MIN(0) +
EXPR(*YES) CASE(*MIXED) CHOICE('Message +
to put in output') PROMPT('(opt.) Message')
ftpnoter
** Write a line to the FTP output file
** textline automatically starts with the current date/time
** file OUTPUT should be overridden to correct file/mbr before call!
Foutput o e disk rename(ftp:ftprec)
D Now s z
D test s 6s 0
c time now
c eval srcdta = %char(now)
** timestamp format: 2003-02-20-11.37.19.479000
** x'22 is highlight, x'20 is normal
c eval srcdta = x'22'
c + %subst(srcdta:6:6)
c + %subst(srcdta:6:6)
c + %subst(srcdta:1:4)
c + ' '
c + %subst(srcdta:12:8)
c + x'20'
** change 02-20-2003 11.37 into 02/20/2003 11:37
c '.-':':/' xlate srcdta srcdta
c if %parms = 1
C *entry plist
C parm message 60
c eval test = %len(message)
c eval test = %len(%trim(message))
c eval srcdta = %trim(srcdta)
c + %trim(message)
c endif
c write ftprec
c eval *inlr=*on
example of use
test cl
dcl &user *char 10
RTVJOBA USER(&USER) TYPE(&TYPE)
ovrdbf input tofile(ftp) mbr(billzipI)
ovrdbf output tofile(ftp) mbr(billzipO)
FTPNOTE &user
Thanks..a very nice idea. I was hoping for an actual FTP
command...something that I could insert in all of my scripts instead
of having to change code and recompile and restest all of my existing
programs. It's hard to believe that there isn't something that simple
in the FTP client, but I guess not. I saw another message from someone
who does a PUT of a temp file and then a DIR to see the time. Again, i
was hoping for a simple command. I think I am out of luck on this one.
Thanks again!
Jeff Wilson