View previous topic :: View next topic
|
Author |
Message |
Vidya Bhama
New User
Joined: 17 Sep 2008 Posts: 41 Location: Chennai
|
|
|
|
Hi,
I have used the below JCL to perform a SFTP from mainframes to Unix server. But when I ran, it gave me a JCL error as shown below.
//STEPNAME EXEC PGM=BPXBATCH,
// PARM='sh sftp -b sftp-batch userid@somewhere.edu'
//SYSPRINT DD SYSOUT=*
//STDOUT DD PATH='/home/userid/bpxout.txt',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),PATHMODE=SIRWXU,
// PATHDISP=(KEEP,DELETE)
//STDERR DD PATH='/home/userid/bpxerr.txt',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),PATHMODE=SIRWXU,
// PATHDISP=(KEEP,DELETE)
//*
ERROR:
STEP020 STDOUT - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
ATTEMPT TO OPEN A HFS FILE FAILED, RETURN CODE IS (00000081) REASON CODE IS (00000081) REASON CODE IS (0594003D)
FILENAME IS '/home/userid/bpxout.txt'
The bpxout.txt is the filename that has to come in the UNIX server.
Can anyone please help me on this.
Thanks very much,
Vidya |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
When you post diagnostic information, you need to post the message ids as well as the message text.
The error posted is not from the jcl posted.
Did you actually receive a "jcl error"?
Suggest you talk with your system support people as others may have had this same error on your system. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it would be wise also to review Your logic
//STDOUT and //STDERR are the output datasets that get allocated for any C/C++ application
it just does not look right to sftp/ftp a dataset which gets created in the same step
when You look at the masseages and codes what do the
Quote: |
RETURN CODE IS (00000081) REASON CODE IS (00000081) REASON CODE IS (0594003D) |
suggest as problem determinatio / resolution ?? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
follow on...
I have the poor habit of looking always at the messages and do the reading for lazy posters
Quote: |
errno = 129 (X'00000081'), reason code = 0594003D, message =
'EDC5129I No such file or directory.'
|
You should have gotten also something on that line in the jcl log
the message is self explaining
You are trying to access something that does notexist
( congruent with the broken logic ) |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
another follow on..
and it did not even take long to find out the RC RSNC meaning..
a simple google with 0594003D gave back a lot of links |
|
Back to top |
|
|
Vidya Bhama
New User
Joined: 17 Sep 2008 Posts: 41 Location: Chennai
|
|
|
|
Thanks for all your repies.
I am trying to only post a seq DSN (created by another jcl) to a UNIX server via SFTP connection. My team has not done this before and so one has any information on this.
Can you plz tell me if the parm parameter that is used is right.
Also the msg id is
IEF344I STEP020 STDOUT - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM
IGD17501I ATTEMPT TO OPEN A HFS FILE FAILED, RETURN CODE IS (00000081) REASON CO(00000081) REASON CODE IS (0594003D)
FILENAME IS '/home/userid/bpxout.txt' |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
posting again the same info will not help debugging the issue
did You meditate a bit on the info I gave You
and on the incongruencies of the info You posted
You show a
//STEPNAME EXEC PGM=BPXBATCH......
as the jcl You submitted, but then You post a
STEP020 STDOUT as the starting of the error message
run a test and post data congruent
by the way SFTP is an ftp extension, and I do not remember that something looking as an email address would be ever needed |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the Ported Tools manual:
Quote: |
Due to limitations in the SECSH protocol with regards to EBCDIC platforms, sftp used with OpenSSH protocol version 1 is only supported from z/OS to z/OS. |
Assuming you're trying to go to another z/OS machine, the supported formats are:
Quote: |
sftp — Secure file transfer program Format sftp [–vC1] [–b batchfile] [–o ssh_option] [–s subsystem | sftp_server] [–B buffer_size] [–F ssh_config] [–P sftp_server_path] [–R num_requests] [–S program] host
sftp [[user@]host[:file[file]]]
sftp [[user@]host[:dir[/]]]
sftp -b batchfile [user@]host |
so what does your sftp-batch file contain? And does bpxout.txt already exist -- if so, are the permissions set appropriately for it? |
|
Back to top |
|
|
|