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: 4650
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: 4650
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 editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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