IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP Issue - Data was truncated


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Jul 22, 2009 8:57 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 22, 2009 9:25 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 23, 2009 6:00 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top