On Wed, 27 Aug 2014 07:27:49 -0500, Elardus Engelbrecht wrote:

>John McKown wrote:
>
>>A legacy program can read or write a z/OS UNIX file via QSAM via a normal DD 
>>statement by using the PATH= instead of DSN=. 
>
>Define 'legacy'. That is a dirty word for me. I don't really like it 'they' 
>say mainframe is 'legacy'. :-[
>
A major automobile manufacturer successfully markets hereabouts
a model trademarked "Legacy".

>>I really wonder if this would be of any use in a z/OS environment.
>>//INPUT DD URL='file:///etc/resolv.conf'
>>//INPUT DD URL='http://some.web.site/download/filedata.txt'
>>//INPUT DD URL='ftp://user:password@host/download/filedata.txt'
>
The following works for me:

    ALL_PROXY=http://$PROXY:80 \
    curl http://www.cbttape.org/ftp/cbt/CBT854.zip |
        _UNIX03=NO cp -B -P'SPACE=(TRK,200,NORLSE),BLKSIZE=0' /dev/fd/0 
//TEMP.CBT854.ZIP

(But it was a struggle to get the SPACE attributes right to avoid SD37.  And a 
PITA
that the error is reported in SYSLOG, not to the OMVS console.)

Security?  Curl employs our proxy; I suppose that's all my employer requires.
Outbound might be trickier.

Awww, go all the way.  Why not:

    //SYSUT1 DD FILEDATA=BINARY,RECFM=VB,LRECL=1028,
    //  POPEN='ALL_PROXY=http://$PROXY:80 curl 
http://www.cbttape.org/ftp/cbt/CBT854.zip'

... ?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to