|
View previous topic :: View next topic
|
| Author |
Message |
chowdhrykapildev
New User
Joined: 05 Aug 2009 Posts: 44 Location: Hyderabad
|
|
|
|
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 |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| And, is the Workstation Agent active and is that the correct TCP/IP address for it? |
|
| Back to top |
|
 |
chowdhrykapildev
New User
Joined: 05 Aug 2009 Posts: 44 Location: Hyderabad
|
|
|
|
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 |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
| 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 |
|
 |
chowdhrykapildev
New User
Joined: 05 Aug 2009 Posts: 44 Location: Hyderabad
|
|
|
|
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 |
|
 |
|
|