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

Find & Replace string in CA-SORT


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 51
Location: India

PostPosted: Fri Mar 30, 2018 12:58 am
Reply with quote

Hi There,
I am trying to find & replace a string using CA-SORT

I see examples for DFSORT & SYNCSORT but not for CA-SORT.

Is there any option available in CA-SORT for find & replace like OUTREC FINDREP?

I am trying this.

1.
Code:


17207 18:59:57 STC87010 COADMST
17217 20:38:07 STC87010 COADMST
17222 19:41:34 STC87010 COADMST
17226 19:01:52 STC87010 COADMST

 OUTREC FIELDS=(25,08,     
                66X,       
                C'00001#')
 SORT FIELDS=COPY         


2.
Code:


COADMST                                                                   00001#
COADMST                                                                   00001#
COADMST                                                                   00001#
COADMST                                                                   00001#
COADMST                                                                   00001#

SORT FIELDS=(1,8,CH,A)
SUM FIELDS=(76,5,ZD)   


3.
SUM FIELDS is giving the SUM with alphabet as the ending character

Code:

COADMST                                                                   0002D#
COAD001                                                                   0003D#
COAD002                                                                   00001#


4.
I want to replace say D with 4


Code:

SORT FIELDS=COPY                   
OUTREC FINDREP=(IN=C'B#',OUT=C'2#')
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Mar 30, 2018 3:52 am
Reply with quote

Wjhat does the CA Sort manual say? Just because other products have a feature does not mean that your product has that feature or the same syntax. Always check the product's manual FIRST.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top