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
 

 

remove trailing spaces after/before FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Wed Jan 16, 2008 5:46 pm    Post subject: remove trailing spaces after/before FTP
Reply with quote

Hi,

I am using a Fixed length file & it has single record... i want to remove the trailing spaces after/before the FTp step

ie when i FTp a file i am getting it as below
³AC³72268195³³³20080104³³³140015027~POC³000000955³QD³1³1³EA³³³VP³M56920~REF³ZZ³IA~CTT³1~SE³6³000200003~GE³3³20~IEA³1³000000112~-----------------------------------------------------------
(i represented blanks with icon_cool.gif

i am getting the spaces at the end, this is becoz the mainframe file is not fully occupied (the file is of length 150 but only 120 is occupied)...but i want to remove these trailing spaces after/before the FTP since in my notepad file the spaces are not accepted...

How to remove these trailing spaces in mainframes

Thanks n Regards
Prasad

Thanks n Regards
Prasad
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 5:49 pm    Post subject:
Reply with quote

If the file is FB, and if the last 30 positions do not contain data, then they must contain spaces. What else is there to fill in those bytes.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 5:55 pm    Post subject:
Reply with quote

Hi There,

U can copy these FILEA( length -150) to FILEB( length-120) by using below sort card & then ftp the FILEB

Code:
OPTION COPY
OUTREC FIELDS=(1,120)
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jan 16, 2008 6:14 pm    Post subject:
Reply with quote

Are you transferring to the mainframe? Then define your file to be the right size. Are you transferring from the mainframe? Then define your file to be the right size. Why are you padding 30 bytes at the end
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: Wed Jan 16, 2008 6:22 pm    Post subject: Reply to: remove trailing spaces after/before FTP
Reply with quote

I think you can also do the opposite of this previous topic, which deals with retaining the spaces, not truncating them. I think you want to set TRAILingblanks FALSE.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Remove header only knobi SYNCSORT 5 Mon Feb 15, 2016 10:42 pm
No new posts Append to file, but also remove old r... Garry Carroll JCL & VSAM 3 Mon Jan 25, 2016 8:05 pm


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