This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FTPing to the MVS System  RSS feed

 
John Travolta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone here used ftp library inside a java class to upload a file onto MVS system (390 Unix System)?
I can connect no problem, but when I try to upload it using put command I get an error:
Caught FTP exception: SVC99 Return code=4 S99INFO=0 S99ERROR=38668 HEX=970C S99E
RSN code X'000042CE'). Unable to create data set ABC.CDF.TEST for STOR command.
Where TEST is file name.
Any help is greatly appreciated.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings Mr. Travolta,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to conform with the JavaRanch Naming Policy. You can change it here:
Change your display name.
By the way, I've always admired your work. From the days of Vinny Barbarino, to Saturday Night Fever and my favorite Urban Cowboy.
Michael Morris
[ March 06, 2003: Message edited by: Michael Morris ]
 
Dean Reedy
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
Could you post how(code) you are connecting to the Unix server. I wanted to know that.
thanks,
Dean
 
John Travolta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thank you for your responses, but in the meantime it got solved.
The major thing is when you are using any ftp library and trying to connect to MVS mainframe, make sure that data source is correct.
for example:
ftp.put(<source_full_path>, <destination_full_path> will not work since MVS is not directory structured system, but rather a data source structured system.
So correct code is:
ftp.put(<source_full_path>, "'data.source'");
Make sure you have single quotes inside your String.
John
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!