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
 

 

Removing unwanted characters from file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Fri Dec 28, 2007 1:48 pm    Post subject: Removing unwanted characters from file.
Reply with quote

Is there anf way to way to remove unwanted charcters from file.

EXAMPLE

INPUT

1DW3P.LKP.KBM
'DW4P.LKP.KBM'
#'DW5P.LKP.KBM'
!%#'DW6P.LKP.KBM'
*#'DW7P.LKP.KBM'

OUTPUT

DW3P.LKP.KBM
DW4P.LKP.KBM
DW5P.LKP.KBM
DW6P.LKP.KBM
DW7P.LKP.KBM



ACTUALLY STARTING POSITION IS NOT FIXED FOR THESE ENTERIES :- What i mean to say it not necessary that DW will start from 1 column only and any number of useless symbols can be there before actual name.

Can this be sort out using SORT utility.
Back to top
View user's profile Send private message

scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Fri Dec 28, 2007 1:53 pm    Post subject: Reply to: Removing unwanted characters from file.
Reply with quote

i try with normal sort utility nut i m not getting that desired result.
how wud i figure out while coding that alphabetic character has come
Back to top
View user's profile Send private message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Mon Dec 31, 2007 12:11 pm    Post subject: Reply to: Removing unwanted characters from file.
Reply with quote

so whats the solution for this ?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Fri Jan 18, 2008 9:13 pm    Post subject: Re: Reply to: Removing unwanted characters from file.
Reply with quote

scorp_rahul22 wrote:
so whats the solution for this ?


Have you referred your problem to the SYNCSORT technical support folks? I'm sure they could offer you a solution that will fit your needs.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Jan 18, 2008 10:01 pm    Post subject:
Reply with quote

If you have DFSORT, you can use the PARSE function to do what you asked for like this:

Code:

//S1    EXEC  PGM=ICEMAN                                       
//SYSOUT    DD  SYSOUT=*                                       
//SORTIN DD *                                                 
1DW3P.LKP.KBM                                                 
'DW4P.LKP.KBM'                                                 
#'DW5P.LKP.KBM'                                               
!%#'DW6P.LKP.KBM'                                             
*#'DW7P.LKP.KBM'     
/*                                         
//SORTOUT DD SYSOUT=*                                         
//SYSIN    DD    *                                             
  OPTION COPY                                                 
  INREC PARSE=(%01=(STARTAT=C'D',FIXLEN=44,ENDBEFR=C'''')),   
   BUILD=(%01)                                                 
/*
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
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


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