Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP ying to MainFrame

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Unnikrishnan N

New User


Joined: 22 Jul 2008
Posts: 5
Location: Iceland

PostPosted: Wed Jul 23, 2008 4:42 pm    Post subject: FTP ying to MainFrame
Reply with quote

Hi,
I am trying to FTP a txt file to main frame. When I execute STOR command I get the following error, and the username is prefixed to the file name ( I am STORing the file to a directory having the name = username )
Error I get : 550-SVC99 RETURN CODE=4 S99INFO=0 S99ERROR=1156 HEX=0484 S99ERSN code X'00000FD6'. Unable to create data set BUF99NT.F1072353.TXT for STOR command.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 23, 2008 4:53 pm    Post subject:
Reply with quote

Post your FTP commands; it's hard to tell what the problem is without something to look at. The error message implies you're not able to create the dataset for some reason.
Back to top
View user's profile Send private message
Unnikrishnan N

New User


Joined: 22 Jul 2008
Posts: 5
Location: Iceland

PostPosted: Wed Jul 23, 2008 5:39 pm    Post subject:
Reply with quote

OK, Robert. Here are the commands. After establishing the connection (by sending IP and port - It wroks fine) I gave;
USER BUF99NT
PASS *******
QUOTE SITE FILE=JES
PORT <port number>
STOR <filename.txt>

Then it will hang for some time then I got the error mesasge as described above. Mean while I tried giving single quotes with the last command ie, STOR '<filename.txt>'. and got error message like
STOR fails: F1072339.TXT. User not authorized. but the user is actully authorised.
When we gave password then I got this response from Server.
BUF99NT is logged on. Working directory is "BUF99NT.".

Please shed some light. thanks in advance.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 23, 2008 5:44 pm    Post subject:
Reply with quote

First guess would be that there is no RACF profile for F1072339 so making it an unprotected resource, which of course fails.

Do you not have the option to store the file being transmitted as a valid mainframe dataset.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Wed Jul 23, 2008 5:54 pm    Post subject: Reply to: FTP ying to MainFrame
Reply with quote

I'm pretty sure that with FILE=JES the intent is to submit the file <filename.txt> for batch submission. I'm wondering if the use of STOR rather than PUT is causing the problem.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 23, 2008 6:14 pm    Post subject:
Reply with quote

When you say STOR 'F1072339.TXT' the system believes the high-level qualifier for the dataset is F1072339; if this identifier is not defined on the system you'd get an invalid user message.

When you say STOR F1072339.TXT the system prefixes the user id BUF99NT to the dataset name and attempts to create the file. The 550 response code in FTP means there's a problem -- the SVC99 classifies the problem. I suspect the problem is that you're not giving the system enough information to be able to define the dataset.

Before proceeding any further, decide (or identify) the LRECL, RECFM, BLKSIZE of the file you're building on the mainframe. You will also have to figure out how big the file is (primary and secondary space allocations) to create the correct size on the mainframe. Add the following line to your FTP before the STOR command:

Code:
QUOTE SITE RECFM=?? LRECL=????? BLKSIZE=????? PRI=?? SEC=?? CYLINDERS
where the question marks represent the values you determined earlier.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 23, 2008 6:18 pm    Post subject:
Reply with quote

Kevin: good catch on the FILE=JES; I missed that one. STOR and PUT are aliases of one another according to what I know of the RFC, so they should work the same.

Unnikrishnan: the question becomes, are you trying to copy a file to the mainframe or are you trying to submit a batch job to the mainframe? If you're trying to submit a batch job to the mainframe post the file contents for review to ensure the job makes sense; if you're trying to copy a file to the mainfframe the QUOTE SITE FILE=JES is absolutely wrong.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Jul 23, 2008 6:45 pm    Post subject: Reply to: FTP ying to MainFrame
Reply with quote

I might have gotten it wrong, but from the manual .... s99ersn

Quote:

FD6 (4054)
Meaning: The specified data set was not found.

Application Programmer Action: Ensure that the data set name was specified correctly, and that the data set is cataloged in the appropriate catalog. Contact the system programmer to check if the alias entries point to the catalog. Reissue the request.
Back to top
View user's profile Send private message
Unnikrishnan N

New User


Joined: 22 Jul 2008
Posts: 5
Location: Iceland

PostPosted: Wed Jul 23, 2008 6:50 pm    Post subject:
Reply with quote

Robert/Kevin,
I just wanted to copy a file from my hard disk to Mainframe..But even when I try removing the 'Quote Site File=jes' the stuff is not working.

When I use PUT instead of STOR like

PUT C:\Unni\test.txt F1072356.txt
it gave me 200 port request OK..then got hanged and after few minutes I got response like 'connection closed by remote host'
Back to top
View user's profile Send private message
Unnikrishnan N

New User


Joined: 22 Jul 2008
Posts: 5
Location: Iceland

PostPosted: Wed Jul 23, 2008 6:52 pm    Post subject:
Reply with quote

I tried this through command line not through code..:-). I mean the Put command
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 23, 2008 6:55 pm    Post subject:
Reply with quote

Have you taken a browse through the z/OS log to see if any extra information is being displayed.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 23, 2008 6:57 pm    Post subject:
Reply with quote

Suggestion: predefine the file on the mainframe, before you do the FTP. This will allow you to verify the FTP can work. If you can get the file on the mainframe using a predefined file, your problem is probably one or more of the parameters on the QUOTE SITE command I gave earlier is required for a new dataset but not defaulted by your system.
Back to top
View user's profile Send private message
Unnikrishnan N

New User


Joined: 22 Jul 2008
Posts: 5
Location: Iceland

PostPosted: Wed Jul 23, 2008 8:05 pm    Post subject:
Reply with quote

Thanks folks,
It worked like anything..
while working with command line you need to give quote command like..
QUOTE SITE FILE=JES
But through CODE ( I am using C sharp ) it requires only
SITE file=jes
;-)
File sent Successfully.. Issue Closed ..Thank you once again!!!!
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 Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us