Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to parse string in CA Easytrieve®

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How to parse string in CA Easytrieve®
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

Site Director


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

PostPosted: Mon Mar 31, 2008 8:00 pm    Post subject:
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    Post subject: Reply to: How to parse string in CA Easytrieve®
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

Site Director


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

PostPosted: Fri Apr 04, 2008 7:37 pm    Post subject:
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts XML Parse for large file muralikrishnan_new COBOL Programming 3 Mon Jun 12, 2017 12:50 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us