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
 
Find & Replace string in CA-SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 50
Location: India

PostPosted: Fri Mar 30, 2018 12:58 am    Post subject: Find & Replace string in CA-SORT
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: 2123
Location: UK

PostPosted: Fri Mar 30, 2018 3:52 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Joining 2 records to 1 using Sort cmuncan DFSORT/ICETOOL 1 Sat Dec 08, 2018 8:53 am
No new posts Silly question maybe - REPLACE member... Cloink TSO/ISPF 15 Thu Oct 25, 2018 6:38 pm
No new posts Find out which PSB is currently sched... Andi1982 IMS DB/DC 0 Mon Sep 24, 2018 3:16 pm
No new posts How to find if segment is read in any... Priyanka AR IMS DB/DC 12 Thu Sep 20, 2018 1:34 pm
No new posts UNSTRING a big string Apurva Ghogale COBOL Programming 16 Thu Sep 20, 2018 12:12 pm

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