View previous topic :: View next topic
|
Author |
Message |
anu_kannu
New User
Joined: 20 Sep 2005 Posts: 6
|
|
|
|
We need to FTP some file from one region REGION A to another region REGION B in MVS. We could do that only through personal ID and password on REGION B. I was told that the user ID on REGION A should be defined in REGION B. I absolutely have no idea about it. Could any one please help? |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Anu,
Can you please explain in detail such that your problem may be solved quickly. Since you got the User ID and pswd there should not be any problem. If you need to create a JCL to access FTP means plz have a look to this post:
ibmmainframes.com/viewtopic.php?t=6874&highlight=ftp
Else search for more post. i will get back to you if you still face the problem. |
|
Back to top |
|
|
graswant
New User
Joined: 29 Apr 2006 Posts: 93 Location: Singapore
|
|
|
|
I think you need to put User ID and Password of region B Id and transfer the File.... So you need an ID which have access to the data you want to transfer in region B.
Correct me if I am wrong. |
|
Back to top |
|
|
anu_kannu
New User
Joined: 20 Sep 2005 Posts: 6
|
|
|
|
Think, I need to clarify myself to make the problem at my end clear.
For using //FTP EXEC PGM=DVGIFBI
To code RSECURP, we give the personal user ID and its password on the receiving region.
when will we code the parameters as
RSECURP=('*','*') ?
Pls help |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Anu,
In addition to (and in accordance with) what have been said by Kamarutheen & Graswant, you may find the details below very useful:
The piece of JCL will have to be run on the region where you've the files existing.
Code: |
FTP EXEC PGM=FTP,REGION=4096K,
PARM='12.345.678.901 (EXIT',
COND=(4,LE,EXTRACT)
SYSTCPD DD DISP=SHR,DSN=SYS1.TCPPARMS(TCPDATA)
SYSFTPD DD DISP=SHR,DSN=SYS1.TCPPARMS(FTPDATAP)
NETRC DD DISP=SHR,DSN=SYS1.TCPIP.FTP.DATALIB(XXXXXXXX)
OUTPUT DD SYSOUT=*
SYSPRINT DD SYSOUT=*
INPUT DD DISP=SHR,DSN=OPCA.TCPIP.DATALIB(XXXXXXXY) |
SYS1.TCPIP.FTP.DATALIB(XXXXXXXX) should contain the user id, password and destination details.
You won't have access to that PDS (because it contains other user id & password details), you need to request IBM for that.
OPCA.TCPIP.DATALIB(XXXXXXXY) should contain the details of which file you would want to be FTPd to and other relevant details. See the details below:
Code: |
EBCDIC
MODE B
PUT 'SOURCE.FILE.NAME' 'TARGET.FILE.NAME'
SITE PRIMARY=20 SECONDARY=10
QUIT |
Hope this helps you.
Cheers, Twissi. |
|
Back to top |
|
|
|