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 Problem: Source dataset not found
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Tue Jun 02, 2009 11:11 pm    Post subject: FTP Problem: Source dataset not found
Reply with quote

Hi,
I know that there are pretty much posts here in this forum on FTP and the problems faced by users in using that. I could not get solution for my problem and hence i have started a new thread. Here's my problem:

I want to FTP a file from Mainframes to my local computer hard drive.
Below are the set of statements that i give to FTP:

FTP <Server name>
User id
Password
Get '<mainframe file name>' <local filename.txt>

When i press 'Enter' after the 'get' command above, i get an error message saying - 'Source dataset <mainframe file name> not found'
I gave the transfer format as ascii still i am getting the same error.

Could you please help me out where i am missing out.
Thanks.
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 Jun 02, 2009 11:27 pm    Post subject:
Reply with quote

Hello,

You have mis-spelled the mainframe file name. This may have to do with where you are "positioned" on the mainframe.

Suggest you use the fully qualified dataset name and place it in quotes.

Look at tso/ispf 3.4 and make sure you have the entire dsn in the GET.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Jun 02, 2009 11:31 pm    Post subject: Reply to: FTP Problem
Reply with quote

You've got the format of the "get" command incorrect. You need to use the proper format.

Update, sorry, you're using the wrong command. You need to "put" the mainframe file to the Server.
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 Jun 02, 2009 11:55 pm    Post subject:
Reply with quote

Hello,

Maybe i've misunderstood, but it appears that the pc ftp client is being used to pull a file from the mainframe to the desktop.

I still believe it is a simple matter of misspelling the dataset name (or possibly some security error - i don't know what happens when one tries to download a file they do not have permission to read).
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 12:01 am    Post subject:
Reply with quote

Hi Dick,

I have given the fully qualified dsn name, with proper high level qualifiers but still it is not accepting. Then i created a dataset with my own TSOID as the high-level qualifier, checked it through the 3.4 option. Then i gave it in the 'GET' command, Still it says, the dataset is not available.

Is there any thing like - i have to transfer in ascii mode etc..? i have changed giving the mode as ascii and tried again. But its not working.

P.S. I have the access to download a file from the mainframe's command prompt (start->6).
Pls help.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Wed Jun 03, 2009 12:09 am    Post subject:
Reply with quote

Show us your GET command -- copy and paste it using BBcode. Also, are you getting any FTP return code (such as 16550)?

Text (ASCII) versus binary mode has nothing to do with the problem you're having -- you can FTP successfully in either, and you can fail in either.
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: Wed Jun 03, 2009 12:13 am    Post subject:
Reply with quote

Hello,

As Robert asked - show us your GET using copy/paste and the "Code" tag.

A couple of thoughts:
Did you place quotes around the dsn?
Is it possibly in use and therefore not available?
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 12:17 am    Post subject:
Reply with quote

C:\Documents and Settings\sravic5\Desktop>ftp PORTNAME
Connected to PORT
220 Connection will close if idle for more than 5 minutes.
User: userid
331 Send password please.
Password:
230 userid is logged on. Working directory is "userid.".
ftp> get 'ABCD.RELEASE.JCL(ABCDATA)' abc.txt
200 Port request OK.
550 Data set ABCD.RELEASE.JCL(ABCDATA) not found
ftp>[/img][/code]
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Wed Jun 03, 2009 12:21 am    Post subject: Reply to: FTP Problem
Reply with quote

you can try
cd 'pds-name'
get member-name pc-file-name
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 12:21 am    Post subject:
Reply with quote

The dsn was available and it had quotes around it.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Wed Jun 03, 2009 12:32 am    Post subject:
Reply with quote

After your password, try these commands:
Code:
cd 'ABCD'
dir
cd RELEASE
dir
to see what the system thinks is available for both the high level and the next level of data set name. AND note the lack of quote marks around the cd RELEASE!
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 12:35 am    Post subject:
Reply with quote

@MBabu
Hi, If i give the way as you gave, the mainframe recognizes it as 'PDS Name.Membername' and says 'its not found'.
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: Wed Jun 03, 2009 12:59 am    Post subject:
Reply with quote

Hello,

Enter
CD 'ABCD.RELEASE.JCL'
DIR
Is a member list shown?

If yes,
GET ABCDATA

If no list, show us what happens.
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 1:13 am    Post subject:
Reply with quote

C:\Documents and Settings\sravic5\Desktop>ftp PORT
Connected to PORT
220 Connection will close if idle for more than 5 minutes.
User : userid
331 Send password please.
Password:
230 USERID is logged on. Working directory is "Userid.".
ftp> cd 'ABCD.RELEASE.JCL'
250 "'ABCD.RELEASE.JCL' "is the working directory name prefix.
ftp> dir
200 Port request OK.
550 No data sets found.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Wed Jun 03, 2009 1:16 am    Post subject:
Reply with quote

ABCD.RELEASE.JCL does not exist, which explains the FTP error -- you cannot FTP a file that doesn't exist.

What does ISPF 3.4 show if you enter ABCD.RELEASE?
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: Wed Jun 03, 2009 1:21 am    Post subject:
Reply with quote

Hello,

That is saying that there are no members in the dataset. . . or that the dataset does not exist. . .

I just did the same process here from a DOS prompt and when i enter dir, i get the list of members.

Are you sure this pds does have members?

Do you have a gui ftp client? I've not used command line ftp for a long, long time as all of the ftp clients i use have point-n-click built in.
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Wed Jun 03, 2009 2:38 am    Post subject:
Reply with quote

Robert,
I have the dataset when i put in 3.4. Its a common dataset for all our applications where we store the JCLs. I have been using it for months and i do not think that is the issue. Probably, my PC ftp client has something to do, as dick said.
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: Wed Jun 03, 2009 2:47 am    Post subject:
Reply with quote

Hello,

Are you sure that you are connected to the correct ftp server?

Given that there is also a problem with a dataset of "your own", it may be that this process has connected to some other ftp server. . . .

Possibly the network people can confirm the ip address or name.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Wed Jun 03, 2009 2:57 am    Post subject:
Reply with quote

Have you tried the cd and dir commands I posted earlier? If not, try the cd and dir commands to see what FTP thinks is there.

There's some reason your FTP is not finding the data set -- either you're not going to the system you think you're going to, or you're entering something that doesn't point to the PDS you think it is. Instead of doing the FTP to the mainframe name, why not try the IP address?
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Fri Jun 05, 2009 9:41 pm    Post subject:
Reply with quote

Hi Robert,

The file is very much present and its a common dataset for lot of guys and so it is not deleted and it is an endevor dataset. I dont know why it is not displaying the member list when i type 'dir'.
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
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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