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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Need a help how to replace a string i... gurunath82 CLIST & REXX 12 Tue Jul 26, 2016 11:43 pm


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