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 ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: help within FTP.....

  1. 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.D’QQ’
    I have tried different quotes around the QQ and still
    Can not get it……

    080818 is todays date ……


    Thanks,



  2. 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.D’QQ’
    > * * * * 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

  3. 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

  4. 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!!

  5. 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.D’QQ’
    > * * * * 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;*

  6. 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.


  7. 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.

+ Reply to Thread