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

remove trailing spaces after/before FTP


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Wed Jan 16, 2008 5:46 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jan 16, 2008 5:49 pm
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: 1208
Location: Bangalore,India

PostPosted: Wed Jan 16, 2008 5:55 pm
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
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 16, 2008 6:22 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
Search our Forums:

Back to Top