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: 2002
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Replace last name by first name anatol DFSORT/ICETOOL 10 Thu Mar 15, 2018 3:43 pm
No new posts How to Generate JCL using Sort naveen katkuri DFSORT/ICETOOL 7 Tue Mar 13, 2018 3:50 pm
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm

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