Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 2365
Location: Hampshire, 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 Problem while trying to manipulate re... amitc23 DFSORT/ICETOOL 3 Tue Jun 30, 2020 1:19 pm
No new posts how to convert Hex String t char hex Martylin PL/I & Assembler 6 Fri Jun 05, 2020 7:45 pm
No new posts Get next 5 numeric from a string of '... maxsubrat COBOL Programming 7 Fri Apr 24, 2020 2:30 pm
No new posts Sort on different fields, removing du... MOHIT KUMAR GUPTA SYNCSORT 8 Thu Apr 16, 2020 5:54 pm
No new posts Java Batch launcher JVMPRC86 does not... harisukumaran IBM Tools 2 Wed Apr 15, 2020 12:37 am

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