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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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