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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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