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

How to parse string in CA Easytrieve®


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

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Mon Mar 31, 2008 3:22 pm
Reply with quote

how can we parse a particular string, while reading a set of 10 lines.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Mar 31, 2008 8:00 pm
Reply with quote

Hello,

You need to post some meaningful info if you want some useful suggestion(s).

Show examples of your "input" and how you want the process to operate on the example data. What is a "set of 10 lines"?
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 Apr 04, 2008 12:23 pm
Reply with quote

Suppose input is like
==============================
VA2PETL010#ACM_DEALS_DEDUPE_XML
FOLLOWS ACM_DEALS_LOCKOUT_NRT
VA2PETL010#MART_DEALS_XML1
FOLLOWS XML_ACM_CIBR_DEALS_2,
XML_ACM_CIBR_DEALS_3
========================================
and i want output like
ACM_DEALS_DEDUPE_XML ACM_DEALS_LOCKOUT_NRT
MART_DEALS_XML1 ,XML_ACM_CIBR_DEALS_2, XML_ACM_CIBR_DEALS_3
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Apr 04, 2008 7:37 pm
Reply with quote

Hello,

You need to post the processing "rules". Sometimes the result values have commas, sometimes not. Sometimes the # appears to be a delimiter, sometimes there is no #, but somehow processing continues. What about FOLLOWS?

If there are no rules neither you nor anyone here can make a proper suggestion - in any coding language.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Denomination counts by using PARSE in... DFSORT/ICETOOL 8
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts ICETOOL to SUM String DFSORT/ICETOOL 1
No new posts Mark Previous & next lines when a... DFSORT/ICETOOL 9
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
Search our Forums:


Back to Top