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

SELCOPY - How to remove the spaces in a file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Velkumar

New User


Joined: 23 Apr 2007
Posts: 18
Location: India

PostPosted: Fri May 11, 2007 12:41 pm
Reply with quote

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
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri May 11, 2007 1:35 pm
Reply with quote

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
View user's profile Send private message
Velkumar

New User


Joined: 23 Apr 2007
Posts: 18
Location: India

PostPosted: Fri May 11, 2007 2:22 pm
Reply with quote

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
View user's profile Send private message
Velkumar

New User


Joined: 23 Apr 2007
Posts: 18
Location: India

PostPosted: Fri May 11, 2007 2:25 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top