Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us