Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP few files from a WINDOWS server onto Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: FTP few files from a WINDOWS server onto Mainframe
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

Moderator Team Head


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

PostPosted: Fri Aug 05, 2005 12:27 am    Post subject: Re: FTP
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    Post subject:
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: 85
Location: In my tiny cubicle ...

PostPosted: Fri Aug 05, 2005 7:24 pm    Post subject: Re: FTP
Reply with quote

I don't know.

I usually run the DOS command:

ftp -s:ftp.txt

where ftp.txt 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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us