help within FTP..... - VMS
This is a discussion on help within FTP..... - VMS ; $ DAY = f$cvtime()
$ p1 = F$extract (2,2,DAY)
$ p2 = f$extract (5,2,DAY)
$ p3 = F$extract (8,2,DAY)
$ QQ = ("''p1'"+"''p2'"+"''p3'")
$ show symbol QQ
080818
$ ftp ftp-box /user=ftptest/pass="*********"
cd Test
pwd
dir TEST1.D'QQ'
Question,
How do ...
-
help within FTP.....
$ DAY = f$cvtime()
$ p1 = F$extract (2,2,DAY)
$ p2 = f$extract (5,2,DAY)
$ p3 = F$extract (8,2,DAY)
$ QQ = ("''p1'"+"''p2'"+"''p3'")
$ show symbol QQ
080818
$ ftp ftp-box /user=ftptest/pass="*********"
cd Test
pwd
dir TEST1.D'QQ'
Question,
How do I parse the variable within ftp so that it
Show me the file TEST1.D080818 instead of TEST1.DQQ
I have tried different quotes around the QQ and still
Can not get it
080818 is todays date
Thanks,
-
Re: help within FTP.....
On Aug 18, 10:49*am, magalet...@hotmail.com wrote:
> $ DAY = f$cvtime()
> $ p1 = F$extract (2,2,DAY)
> $ p2 = f$extract (5,2,DAY)
> $ p3 = F$extract (8,2,DAY)
> $ QQ = ("''p1'"+"''p2'"+"''p3'")
> $ show symbol QQ
> 080818
> $ ftp ftp-box /user=ftptest/pass="*********"
> cd Test
> pwd
> dir TEST1.D'QQ'
>
> Question,
>
> * * * * How do I parse the variable within ftp so that it
> * * * * Show me the file TEST1.D080818 instead of TEST1.DQQ
> * * * * I have tried different quotes around the QQ and still
> * * * * Can not get it
>
> * * * * 080818 is todays date
Symbol substitution is not done in data that goes to an application.
You can either put the data into a temporary command procedure using
write statements, or use the command
$ dir/ftp ftp-box"ftptest ftpassword"::"TEST1.D''QQ'"
Ken
-
Re: help within FTP.....
In article , magalettac@hotmail.com writes:
> $ ftp ftp-box /user=3Dftptest/pass=3D"*********"
> cd Test
> pwd
> dir TEST1.D'QQ'
>
> How do I parse the variable within ftp so that it
> Show me the file TEST1.D080818 instead of TEST1.D=92QQ=92
> I have tried different quotes around the QQ and still
> Can not get it=85=85
>
> 080818 is todays date =85=85
>
Write out a file with the FTP commands and then use ftp/input={filename}
(assuming the UCX stack).
Simon.
--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980's technology to a 21st century world
-
Re: help within FTP.....
On Aug 18, 11:11*am, clubley@remove_me.eisner.decus.org-Earth.UFP
(Simon Clubley) wrote:
> In article , magalet...@hotmail.com writes:
>
> > $ ftp ftp-box /user=3Dftptest/pass=3D"*********"
> > cd Test
> > pwd
> > dir TEST1.D'QQ'
>
> > * *How do I parse the variable within ftp so that it
> > * *Show me the file TEST1.D080818 instead of TEST1.D=92QQ=92
> > * *I have tried different quotes around the QQ and still
> > * *Can not get it=85=85
>
> > * *080818 is todays date =85=85
>
> Write out a file with the FTP commands and then use ftp/input={filename}
> (assuming the UCX stack).
>
> Simon.
>
> --
> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> Microsoft: Bringing you 1980's technology to a 21st century world
Thanks worked great!!
-
Re: help within FTP.....
On Aug 18, 10:49*am, magalet...@hotmail.com wrote:
> * * * * How do I parse the variable within ftp so that it
> * * * * Show me the file TEST1.D080818 instead of TEST1.DQQ
> * * * * I have tried different quotes around the QQ and still
> * * * * Can not get it
Either use Ken's method ($DIR/FTP) or generate a scratch file with the
commands that contain the translated name and use that as input to
FTP.
Something like:
$ open /write tmp sys$scratch:ftpstuff.ftp
$ write tmp "cd test"
$ write tmp "pwd"
$ write tmp "dir test1''QQ'"
$ close tmp
$ ftp ftp-box /user=whoever /password=whatever /input=sys
$scratch:ftpstuff.ftp
$ delete sys$scratch:ftpstuff.ftp;*
-
Re: help within FTP.....
In article , magalettac@hotmail.com writes:
> $ DAY =3D f$cvtime()
> $ p1 =3D F$extract (2,2,DAY)
> $ p2 =3D f$extract (5,2,DAY)
> $ p3 =3D F$extract (8,2,DAY)
> $ QQ =3D ("''p1'"+"''p2'"+"''p3'")
> $ show symbol QQ
> 080818
> $ ftp ftp-box /user=3Dftptest/pass=3D"*********"
> cd Test
> pwd
> dir TEST1.D'QQ'
>
>
> Question,
>
> How do I parse the variable within ftp so that it
> Show me the file TEST1.D080818 instead of TEST1.D=92QQ=92
Answer,
You don't. This is definitely FAQ material.
-
Re: help within FTP.....
magalettac@hotmail.com wrote:
>
> On Aug 18, 11:11 am, clubley@remove_me.eisner.decus.org-Earth.UFP
> (Simon Clubley) wrote:
> > In article , magalet...@hotmail.com writes:
> >
> > > $ ftp ftp-box /user=3Dftptest/pass=3D"*********"
> > > cd Test
> > > pwd
> > > dir TEST1.D'QQ'
> >
> > > How do I parse the variable within ftp so that it
> > > Show me the file TEST1.D080818 instead of TEST1.D=92QQ=92
> > > I have tried different quotes around the QQ and still
> > > Can not get it=85=85
> >
> > > 080818 is todays date =85=85
> >
> > Write out a file with the FTP commands and then use ftp/input={filename}
> > (assuming the UCX stack).
> >
> > Simon.
> >
> > --
> > Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> > Microsoft: Bringing you 1980's technology to a 21st century world
>
> Thanks worked great!!
You can also PIPE the necessary commands to FTP and avoid the temp file.
D.J.D.