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
 

 

File truncation using FTP to SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
bansal

New User


Joined: 03 Jan 2007
Posts: 27
Location: Hyderabad

PostPosted: Fri May 18, 2007 4:05 pm    Post subject: File truncation using FTP to SQL
Reply with quote

I am FTPing a file which of 80 bytes to SQL. That file contains 45 bytes of data and rest are spaces(fillers). When SQL guys recieve that file, it is of 45 bytes only. Can anyone please help in this regards?
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 May 18, 2007 5:51 pm    Post subject: Re: File truncation using FTP to SQL
Reply with quote

First of all, if the FTP server site is using the Windows OS, then what you are seeing is normal. There is a setting to override this.

What level of z/OS are you running so I can post the appropriate manual link?
Back to top
View user's profile Send private message
bansal

New User


Joined: 03 Jan 2007
Posts: 27
Location: Hyderabad

PostPosted: Fri May 18, 2007 7:59 pm    Post subject: Re: File truncation using FTP to SQL
Reply with quote

Hi Superk,

Thanks for your quick reply.

I am using this config

ISPF_--------ISPF FOR Z/os 01.06.00
OS Name .---Z/OS
OS version ----------------01.06.01
and level

JES2 ---------JES2 z/os 1.5



But Superk, our target system uses Windows OS only, So can u plz tell what override options are there? Due to which that file is getting truncated..

I am doing this FTP in TEST region. But in PROD region, i am using INFOMOVE or NDM, So i am not sure whether the file will truncate in those cases also.

Thanks for your help..
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 May 18, 2007 8:24 pm    Post subject: Re: File truncation using FTP to SQL
Reply with quote

You'll want to set the TRAILingblanks option of the LOCSIte command as described here in the section 5.34 LOCSIte subcommand--Specify site information to the local host of the z/OS V1R6.0 CS: IP User's Guide and Commands.

Of course, the setting can always be permanently set in the FTP.DATA (SYSFTPD) dataset as described in the manual.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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