View previous topic :: View next topic
|
Author |
Message |
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi all.
I am trying to pull a mainframe DS into my local drive. Below is the JCL i used but it's not transfering. Please help me on this
//STEP0100 EXEC PGM=FTP,PARM='(EXIT=8'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//FTPIN DD DSN=SSYG.USER.TEST.NEW1000,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
IP
USERID
PWD
QUOTE SITE TRAIL
GET 'SSYG.USER.TEST.NEW1000' TEST.JCL
QUIT
/*
Quote: |
EZA1736I GET 'SSYG.USER.TEST.NEW1000' TEST.JCL
200 Port request OK.
EZA1701I >>> RETR 'SSYG.USER.TEST.NEW1000'
125 Sending data set SSYG.USER.TEST.NEW1000 FIXrecfm 650
250 Transfer completed successfully.
EZA1617I 4564 bytes transferred in 0.010 seconds. Transfer rate 456.40 Kbytes/s
EZA2802I Data was truncated. |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
EZA1617I 4564 bytes transferred in 0.010 seconds. Transfer rate 456.40 Kbytes/s |
Contrary to your statement, the file was transferred as this quote from your post shows.
Go into ISPF, option 3.4, and type <USERID>.TEST and hit enter -- you'll probably see a <USERID>.TEST.JCL file, which is the file you transferred from the other server. The actual LRECL and BLKSIZE depend upon how your site defaults are set up.
Using a GET command in your JCL always transfers from the remote server to the mainframe -- never from the mainframe to the remote server. Your JCL did exactly what you said to do, so don't say the file wasn't transferred. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Also, if you want to transfer a file from the mainframe to your local drive, you will most likely need to use the ftp client on your local system to "get" the file rather than a mainframe job to "put" the file. . .
Most organizations do not permit individual local pc to run as an ftp server so the mainframe job would have nothing to connect to on your local system.
Quote: |
Using a GET command in your JCL always transfers from the remote server to the mainframe |
You accessed a mainframe server as the remote server. . . |
|
Back to top |
|
|
|