Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SFTP JCL failiure - help required

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: SFTP JCL failiure - help required
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

Site Director


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

PostPosted: Tue Dec 16, 2008 12:46 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Dec 16, 2008 1:07 am    Post subject: Reply to: SFTP JCL failiure - help required
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Dec 16, 2008 1:12 am    Post subject: Reply to: SFTP JCL failiure - help required
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Dec 16, 2008 1:29 am    Post subject: Reply to: SFTP JCL failiure - help required
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    Post subject: Reply to: SFTP JCL failiure - help required
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Dec 16, 2008 4:49 pm    Post subject: Reply to: SFTP JCL failiure - help required
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Dec 16, 2008 6:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SFTP to primary and secondary servers mallik4u JCL & VSAM 4 Tue Jun 07, 2016 12:52 pm
No new posts Replacement FTP to SFTP Vasili Koipish All Other Mainframe Topics 1 Wed May 11, 2016 3:10 pm
No new posts FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm
No new posts Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us