MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

squeezing out spaces in a file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mainfrae
Beginner


Joined: 17 Feb 2006
Posts: 17
Topics: 9

PostPosted: Tue Dec 12, 2006 7:09 am    Post subject: squeezing out spaces in a file Reply with quote

hi all,

I am having a file like this..
Code:

0001|abc                              |1234
0002|abncd                          |1235


And I want my output to be like
Code:

0001|abc|1234
0002|abncd|1235

I want to remove the spaces in between.

I know we can do it by using dfsort utility functions like SQZ,JFY but latest version of dfsort utility is not available in our shop.

Could any one give me an idea of doing that in jcl

mainfrae
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Dec 12, 2006 10:00 am    Post subject: Reply with quote

You can use REXX's SPACE function.

O.
________
easy vape vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Dec 12, 2006 11:42 am    Post subject: Reply with quote

Quote:
but latest version of dfsort utility is not available in our shop.


To clarify, you do NOT need a new "version" of DFSORT to use SQZ and JFY. You just need to install the April, 2006 PTF for the version of DFSORT you have (z/OS DFSORT V1R5 or DFSORT R14).
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Thu Dec 14, 2006 12:17 am    Post subject: use bnds Reply with quote

mainfrae,
Arrow you can use BNDS command (if u could edit that file)...
_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group