Transfer file from MF to Windows PC on a shared drive



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: Transfer file from MF to Windows PC on a shared drive

Postby arpitsharma27 » Sat Dec 24, 2011 12:41 am

Hi
I had tried using OPEN 99.999.999.99
This is what i have written:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//FTPLOC EXEC PGM=FTP
//OUTPUT DD SYSOUT=*,RECFM=FB,LRECL=0,BLKSIZE=0
//SYSPRINT DD SYSOUT=*
//INPUT DD *
OPEN MY_SHARED_DRIVE_IP_ADDRESS
MY_COMPUTER_USER_ID
MY_COMPUTER_PASSWORD
cd SMA Tech Team/xx
PUT 'MAINFRAME_FILE_NAME' a.txt
CLOSE
QUIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I get the following error:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
EZA1736I FTP
EZY2640I Using 'SYS1.TCPPARMS(FTPDATA)' for local site configuration parameters.
EZA1450I IBM FTP CS V1R10
EZA1456I Connect to ?
EZA1736I OPEN MY_SHARED_DRIVE_IP_ADDRESS
EZA1551I Unknown host: OPEN
EZA1460I Command:
EZA1618I Unknown command: 'MY_COMPUTER_USER_ID'
EZA1619I For a list of the available commands, say HELP
EZA1460I Command:
EZA1736I California9
EZA1618I Unknown command: 'MY_COMPUTER_PASSWORD'
EZA1460I Command:
EZA1736I cd SMA Tech Team/xx
EZA1457I You must first issue the 'OPEN' command
EZA1460I Command:
EZA1736I PUT 'MAINFRAME_FILE_NAME' a.txt
EZA1457I You must first issue the 'OPEN' command
EZA1460I Command:
EZA1736I CLOSE
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
arpitsharma27
 
Posts: 5
Joined: Fri Dec 23, 2011 4:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Transfer file from MF to Windows PC on a shared drive

Postby BillyBoyo » Sat Dec 24, 2011 1:05 am

Did you talk to your support people?

The response to the Connect to? I believe should be your IP address.

Change your password now.

If you start your cards:
ip address
username
password


you might get in if all of those are OK. Else you are still in the same place and we don't know anything to help, but your support people do.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Transfer file from MF to Windows PC on a shared drive

Postby arpitsharma27 » Sat Dec 24, 2011 1:26 am

Hi
The username/password should be my computer username/password or anything else?
If it is my computer username password than i have it correct.

ERROR: "(errno2=0x769F0442)"

I have this written:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//FTPLOC EXEC PGM=FTP
//OUTPUT DD SYSOUT=*,RECFM=FB,LRECL=0,BLKSIZE=0
//SYSPRINT DD SYSOUT=*
//INPUT DD *
MY_SHARED_DRIVE_IP_ADDRESS
MY_COMPUTER_USER_NAME
MY_COMPUTER_PASSWORD
cd /C/TEMP
PUT 'MAINFRAME_FILE_NAME' a.txt
CLOSE
QUIT

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I get the following error:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
EZA1456I Connect to ?
EZA1736I MY_SHARED_DRIVE_IP_ADDRESS
EZA1554I Connecting to: MY_SHARED_DRIVE_IP_ADDRESS port: 21.
EZA2590E recv error from getNextReply - EDC8128I Connection refused. (errno2=0x7
69F0442)
EZA1475I Connection with MY_SHARED_DRIVE_IP_ADDRESS terminated
EZA1460I Command:
EZA1618I Unknown command: 'MY_COMPUTER_USER_NAME'
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
arpitsharma27
 
Posts: 5
Joined: Fri Dec 23, 2011 4:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Transfer file from MF to Windows PC on a shared drive

Postby Robert Sample » Sat Dec 24, 2011 4:21 am

Some of my research indicates you may need to change your FTP.DATA parameters to include
SECUREIMPLICITZOS FALSE
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Transfer file from MF to Windows PC on a shared drive

Postby NicC » Sat Dec 24, 2011 12:11 pm

why that strange dcb info on a sysout dataset? lrecl=0??. Just remove the dcb info and you might get some meaningful messages.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Transfer file from MF to Windows PC on a shared drive

Postby BillyBoyo » Sat Dec 24, 2011 8:12 pm

The username/password should be the one given to you to access the server on the PC system. It will depend on your site policy whether this will be forced to be the same, forced to be different or whether it doesn't matter either way.

We don't know the answer for your site.

You are getting "connection refused" before you get as far as your username, so don't worry about username yet.

At the risk of repeating myself - talk to your support.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post