Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Migrating Java application from JVM p... danik56 CICS 0 Sat Dec 23, 2017 1:42 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us