Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SELCOPY - How to remove the spaces in a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: SELCOPY - How to remove the spaces in a file
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    Post subject: Re: How to remove the spaces in a file
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    Post subject: Re: How to remove the spaces in a file
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    Post subject: Re: How to remove the spaces in a file
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us