View previous topic :: View next topic |
Author |
Message |
mainfrae Beginner
Joined: 17 Feb 2006 Posts: 17 Topics: 9
|
Posted: Tue Dec 12, 2006 7:09 am Post subject: squeezing out spaces in a file |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Tue Dec 12, 2006 10:00 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Frank Yaeger Sort Forum Moderator
![Sort Forum Moderator Sort Forum Moderator](images/ranks/profrat.jpg)
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Tue Dec 12, 2006 11:42 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
krisprems Beginner
![](images/avatars/gallery/members/tidda.gif)
Joined: 13 Dec 2006 Posts: 101 Topics: 4 Location: india
|
Posted: Thu Dec 14, 2006 12:17 am Post subject: use bnds |
|
|
mainfrae,
you can use BNDS command (if u could edit that file)... _________________ cHEERs
krisprems |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|