View previous topic :: View next topic
|
Author |
Message |
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi there,
I need to FTP few files from a WINDOWS server onto Mainframe, I use a batch file and a command file (both MS-DOS based). When the batch file is executed it in turn executes the command file, but this actually asks for the password for your racf id. Now my requirement is to hard cord the password, i.e, it should not prompt for the password (it should accept the hard coded password).
Does anyone know how to achieve this?
Please find the sample command file below:
verbose
open XXXX (the mainframe region)
yyyy (the racf id)
bin
literal site cy
literal site pri=10
literal site sec=10
literal site lrecl=561
put C:\CCL\file\agent.file 'TFXZ.AGENT.SP1.FILE'
quit
What this does is, it opens the XXXX region and asks for the password for yyyy; what I need is, it should not ask for the password.
Thanks,
Twissi. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Did you try using:
>racf-id password
on the same line? |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi Superk,
Thanks for your reply, but it didn't work; I've tried all different combinations of racf-id and password, ie on the same line and on two lines but nothing did work.
What else could be done here?
Thanks,
Twissi. |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
I don't know.
I usually run the DOS command:
ftp -s:ftp.txt
where Use [URL] BBCode for External Links contains:
open ftpserver
logon-id
password
ascii
cd directory
put filename
dir
qui
and I never run into any problems. |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi Prandip,
I tried it here (offshore) without success but it was successfully carried out at onshore.
Thanks for the script.
Cheers,
Twissi. |
|
Back to top |
|
|
|