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: 4648
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 Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm


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