Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

secure file copy to mainframe

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have to do a secure file copy from a linux box to mainframe. I am using Jsch API for this. The authentication has to happen through public key. The account is set on both the machines. I was successfully able to connect to the Mainfarme and the authentication is fine.

Now when I try to copy the file from the linux box to mainframe using the Jsch API, I am getting errors from Mainframe. From Jsch once the connection has happened we have to open a "exec" and send commands through it. Now when I send the commands I am getting errors like "wrong fileid.." or "abend code 013.." etc.

The code is given below


If I execute the above piece of code I get error saying "Wrong fileid..", if I change the command and give "scp -p -t abc.def.ghi" I get the error "abend code 013..". This code 013 means the dataset not available, but the in the mainframe side the file is with a fileid. So I am totally confused how to ftp the file.
If someone can point me to a good resource that would be great. I am more confused because the target system is a mainframe.

Any help on this is very much appreciated.

Thanks in advance.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am eagerly waiting for all your replies. Someone please reply or atleast through some light on the same.
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An ABEND013 does not necessarily mean the data set does not exist.

The 013 part means that SVC X'13' (decimal 19) was in control when the error occurred. SVC X'13' is OPEN.

On the mainframe, there will be many 'reason code's that accompany a particular ABEND code. The reason code gives you more information about why. If you can display a reason code, you should, and research it.

I think you should explore whether the User ID you connect with actually has the security rights to create and write to a data set with the name 'abc.......'.

Security violations can be (and frequently are) emitted from OPEN.

HTH, Guy
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic