Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shrink a dataset file to smaller column length

Status
Not open for further replies.

leo6

Programmer
Mar 2, 2005
22
US
Hi ,

Can a dataset file be shrinked by removing data between specific column locations using REXX in Mainframes?
For eg.,consider a dataset having 4 records as ,

abc defghijklmnopqrs
abc defghijklmnopqrs
abc defghijklmnopqrs
abc defghijklmnopqrs

I want the output file to be ,

abcdefghijklmnopqrs
abcdefghijklmnopqrs
abcdefghijklmnopqrs
abcdefghijklmnopqrs

which is after removing the space characters in column 3 and 4 for all records of the file..
Is it possible using overlay() function ?
Kindly advice.
 
if it has !!!
Code:
Update yourtable
set yourcolumn = replace(yourcolumn,' ','')

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top