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

FTP few files from a WINDOWS server onto Mainframe


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Thu Aug 04, 2005 6:08 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Aug 05, 2005 12:27 am
Reply with quote

Did you try using:

>racf-id password

on the same line?
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Fri Aug 05, 2005 7:14 pm
Reply with quote

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
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Fri Aug 05, 2005 7:24 pm
Reply with quote

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
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Thu Aug 11, 2005 7:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top