IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SFTP JCL failiure - help required


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidya Bhama

New User


Joined: 17 Sep 2008
Posts: 41
Location: Chennai

PostPosted: Mon Dec 15, 2008 6:16 pm
Reply with quote

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,
icon_sad.gif icon_sad.gif Vidya
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Dec 16, 2008 12:46 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 1:07 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 1:12 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 1:29 am
Reply with quote

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
View user's profile Send private message
Vidya Bhama

New User


Joined: 17 Sep 2008
Posts: 41
Location: Chennai

PostPosted: Tue Dec 16, 2008 3:51 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 4:49 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 16, 2008 6:24 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts How do I SFTP a ADRDSSU file from mai... IBM Tools 4
No new posts SFTP replacement for LOCSITE ASA in FTP All Other Mainframe Topics 7
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts How to remove remote file older than ... All Other Mainframe Topics 4
Search our Forums:

Back to Top