cURL / Mailing Lists / curl-users / Single Mail

curl-users

CURL SFTP wriitng Generations Data Sets(GDG) in MVS

From: Masso Jr, James <jim.masso_at_uconn.edu>
Date: Wed, 9 Apr 2008 10:08:55 -0400

Greetings:

 

  I am currently trying to write a shell script in UNIX using CURL SFTP
to write a new generation (+1) to a file in MVS. Is it possible to
write to a GDG in MVS using CURL and SFTP from UNIX to MVS in a shell
script?

 

This is the command line in the shell script:

/usr/local/bin/curl -v -k -B --ftp-ssl -T
/apps/home/prgmteam/hrpsoft/ftpdata/jgmftp_TEST1.txt
ftp://xxxxxmvs.ucxxxx.edu/'../UATGENS.xxxxxx.wwwwwwww(+1)' --user
password:logiin

 

User password:login is for MVS

 

The error message states the file cannot be created.

 

> STOR UATGENS.xxxxxxx.wwwwwww(+1)

< 550-SVC99 Return code=4 S99INFO=0 S99ERROR=1164 HEX=048C S99ERSN code
X'00000000').

< 550 Unable to create data set UATGENS.xxxxxxx.wwwwwww.G0045V00 for
STOR command.

* Failed FTP upload: 550

* Remembering we are in dir ../

* Uploaded unaligned file size (0 out of 316017 bytes)

  % Total % Received % Xferd Average Speed Time Time Time
Current

                                 Dload Upload Total Spent Left
Speed

 

  0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:--
0* Closing

 

However, using the less secure FTP without CURL I can write to the
generation data set by using quote and listing the file size, DCB,
volume, etc.

CURL doesn't recognize the quote command.

 

 

 

 

Peace

 

James G Masso

Senior/Programmer Analyst

University of Connecticut ITS

860-486-1374

jim.masso_at_uconn.edu

 
Received on 2008-04-09