View previous topic :: View next topic
|
Author |
Message |
Velkumar
New User
Joined: 23 Apr 2007 Posts: 18 Location: India
|
|
|
|
I have the file structure like
DATA 1234 DATAB 45678--Input file
The output file should look like
DATA 1234 DATA 145678
I want to remove the extra spaces between 1234 and DATAB with one space
Using selcopy can we achieve this... If so can you provide me the sloution. |
|
Back to top |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Hi,
Your requirement is not so clear to me. Still with assumptions I'm providing following.
Code: |
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1,9,X,12,11)
/*
|
|
|
Back to top |
|
|
Velkumar
New User
Joined: 23 Apr 2007 Posts: 18 Location: India
|
|
|
|
Hi Parag
Thanks for the reply. I will make my query more clear. My input file contains one record. The structure is as below
*********************************************
MACHINE 10.145.61.99 DATA 123456
****** ***************************************
The output file has to remove the extra space between 10.145.61.99 and DATA. Finally I need the output file like
*********************************************
MACHINE 10.145.61.99 DATA 123456
****** ***************************************
I think now my query is clear to you.
Advance thanks.
Vel |
|
Back to top |
|
|
Velkumar
New User
Joined: 23 Apr 2007 Posts: 18 Location: India
|
|
|
|
Hi Parag
The additional spaces between 10.145.61.99 and DATA is not coming in the Text editor. Consider the input file is having more than one space(10 to 20 characters blank). I need, the output file should not contain the extra spaces between them. I need to achieve this through selcopy. Can we do it. |
|
Back to top |
|
|
|