View previous topic :: View next topic
|
Author |
Message |
seshagiri.N Warnings : 1 New User
Joined: 05 Aug 2008 Posts: 16 Location: India
|
|
|
|
My requirement is to download a file from HOST. I tried using the "FILEXFER" Service. But when I execute the code, it is abending. Please have a look at code and abend message, and suggest me the way. Please tell me is there any other way to achieve my requirement.
CODE:
Code: |
/*REXX*/
VAR1 = 'NBDKYGS.ER0T.TEST.FILE'
VAR2 = 'D:\download\text1.txt'
ADDRESS ISPEXEC "VPUT (VAR1,VAR2)"
/*ADDRESS ISPEXEC "FILEXFER HOST(VAR1) WS(VAR2) TO(WS) TEXT"*/
CALL ISPLINK 'FILEXFER' VAR1 VAR2 'WS' TEXT
SAY 'RETURN CODE:' RC
|
ERROR:
Code: |
Command ===>
******************************************************************************
* ISPS101 *
* *
* Service name missing *
* No dialog service request name found. *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* Enter HELP command for further information regarding this error. *
* Press ENTER key to terminate the dialog. *
* *
* *
* *
* *
****************************************************************************** |
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
When you read the ISPF Services manual, it mentions 'command invocation' and 'Call invocation'. From rexx, you should use the 'command invocation'.
The call invocation is a call from an assembler program. The parameter list used by a rexx call is different than a z/OS call. It might work if you use a TSO call:
Code: |
Address TSO "CALL '*(ISPLINK)' 'your parms'" |
Though the recommendation is still through ISPEXEC. |
|
Back to top |
|
|
seshagiri.N Warnings : 1 New User
Joined: 05 Aug 2008 Posts: 16 Location: India
|
|
|
|
I tried even with
Code: |
ADDRESS ISPEXEC "FILEXFER HOST(VAR1) WS(VAR2) TO(WS) TEXT" |
but the result is same |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Part of your problem is that you've left out some steps. Before you can call the FILEXFER service, you need to make a connection to the workstation agent. The flow goes something like this:
Code: |
/* REXX */
ADDRESS ISPEXEC
IP = "IP ADDRESS OF YOUR WORKSTATION i.e. XX.XX.XX.XX"
HOSTFILE = "'NBDKYGS.ER0T.TEST.FILE'"
WSFILE = "D:\download\text1.txt"
"VPUT (IP HOSTFILE WSFILE)"
"WSCON IP(IP) NOGUIDSP PANEL(ONERROR)"
"FILEXFER HOST(HOSTFILE) WS(WSFILE) TO(WS) TEXT"
SAY "FILEXFER:"RC
"WSDISCON"
EXIT 0
|
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
but the result is same
|
Many errors will cause the 'dialog error box' to be displayed. But the text will be different. I doubt that the error messages were the same. When you get a dialog error, pay special attention to the text displayed within it. The first line is a message number that you can look up. |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Tried the above the following screen displayed
can someone tell me what are all the options i need to select and the
what i need to specify in ip address (whether host or ws ip)
what is appac address where we will get it
Code: |
Initiate Workstation Connection
Command ===>
More: +
/ Save values in system profile? (/=Yes)
Workstation Connection GUI Network Protocol
2 1. With GUI display 2 1. TCP/IP
2. Without GUI display 2. APPC
3. Use ISPDTPRF file
GUI Title
TCP/IP Address
11.123.17.137
APPC Address
142.172.120.1
Host Codepage . . . Host Character Set . . .
.------------------------------------------------.
GUI Window Frame | Invalid codepage and character set values were |
1 1. Standard (ST | specified. |
------------------ '------------------------------------------------' |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The TCP/IP address is the address of the workstation where the Workstation Agent (the WSA.EXE program) is running. |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
What is APPC address, how and where i will get it |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
thanks alot dick
its useful |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck
Someone should be here if thee are questions. . .
d |
|
Back to top |
|
|
|