IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FILEXFER service failed because there is no connection to WS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chowdhrykapildev

New User


Joined: 05 Aug 2009
Posts: 44
Location: Hyderabad

PostPosted: Tue Sep 29, 2009 8:53 pm
Reply with quote

I'm trying to run a XFER command through my pgm and I'm getting the following error.

ISPX010

Transfer failed
The FILEXFER service failed because there is no connection to the
workstation.

Current dialog statement:
ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)

The following is my code:
Code:

IPADDR = '9.184.106.106'                                         
 OUTFILE = 'IN16592.SRM.REXXPDS'                                   
 WSFN = 'C:\srm\file183.pds.xmit'                                 
           /* WSCON - CONNECT TO THE WSA */                       
 "ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP" 
 IF RC>0 THEN                                                     
 "ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"               
 IF RC>0 THEN                                                     
 SAY SUCCESS
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Tue Sep 29, 2009 9:09 pm
Reply with quote

I do not understand these statements:
Code:
"ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
IF RC>0 THEN
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"

Why do the FILEXFER when WSCON return code is non-zero? What return code are you getting?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Sep 29, 2009 10:32 pm
Reply with quote

And, is the Workstation Agent active and is that the correct TCP/IP address for it?
Back to top
View user's profile Send private message
chowdhrykapildev

New User


Joined: 05 Aug 2009
Posts: 44
Location: Hyderabad

PostPosted: Wed Sep 30, 2009 12:34 pm
Reply with quote

Hi all,

The command
"ISPEXEC WSCON IP(IPADD) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
will establish the connection. Yes the connection agent is active.

Actually I am trying to receive a file from mainframes to desktop. And I am using this command.
WSFN = 'C:\DOCUMENTS AND SETTINGS\FTP'
OUTFILE =DSNAME /* the file which i want from mainframes */
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(WS)"

But its not working.

Kindly suggest me on this...
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Wed Sep 30, 2009 7:30 pm
Reply with quote

Quote:
Why do the FILEXFER when WSCON return code is non-zero? What return code are you getting?


My earlier question was not about WSCON, but about the IF statement. I question why you issue the FILEXFER only after nonzero return code. It seems like it is should be done on rc=0.

Nor did you answer what return code you are getting.

Nor did you answer SuperK's question about the IP address being current.
Back to top
View user's profile Send private message
chowdhrykapildev

New User


Joined: 05 Aug 2009
Posts: 44
Location: Hyderabad

PostPosted: Thu Oct 01, 2009 6:17 pm
Reply with quote

Hi Pedro,

Yes I have made some corrections and it went fine. The next problem I am seeing is posted as "extract member name for a given PDS".
I have explained about my problem in detail in that post. I kindly request you all to have a look into it.

Thanks a lot in advance.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts CICS-Db2 connection issue CICS 1
No new posts Convert Service Unit to CPU Seconds All Other Mainframe Topics 1
No new posts How to avoid duplicating a CICS Web S... CICS 0
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:


Back to Top