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: 19244
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: 19244
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
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 file manager is doing string conversion IBM Tools 3
No new posts Search string in job at regular Spool... CLIST & REXX 0
Search our Forums:

Back to Top