Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] "SPLIT" of string

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] "SPLIT" of string
 Login/Join
 
Member
posted
Esteemed wizards,

for an internal report shedding light on which MRE domains are linked to what application directories, I use the MREXTRACT.BAT and read the information from IBIMRDOM, FIELD=DOMAIN_DESC.
Unfortunately, the information is one single string (A256), where the application directories are seperated by "%20".

Example:

TABLE FILE IBIMRDOM
BY HIGHEST 1 DOMAIN_HTM
BY HIGHEST DOMAIN_PROP
END

yields the output:

[securiti/securiti.htm][node=EDASERVE,appname=seccrm%20bankview%20baseapp]

where "securiti/securiti.htm" is the domain_htm and seccrm, bankview, baseapp are the application directories.

How can I split up the string into several records? The obvious way for me was to subsequently look for occurences of %20 with POSIT and get the substrings with SUBSTR; alas, given the length of the string there could potentially be about 20 application paths connected (we do have that many) and my cumbersome, but working, routine of POSIT-SUBSTR
has proven to be too cumbersome (and not working anymore) since our upgrade form 7.610 to 7.703.

Any sensible suggestion would be appreciated, my colleague and I tried OCCURS and DELIMITER but were too inexperienced to get any results.

If someone knows a more elegant way, by the way, to produce a report showing the connection of MRE-fexes to application directories, please feel free to show me the light (unless it would be "resource analyzer"- we have literally like a thousand reports and about 50 application directories and resource analyzer does not really perform).

Thanks,

Tom

This message has been edited. Last edited by: Tom1311,


prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7
 
Posts: 4 | Location: Amsterdam | Registered: May 04, 2007Report This Post
Expert
posted Hide Post
Tom,

Think about using GETTOK with the -1 parm to get last occurence delimited by '='. Take the resultant string and, again, use GETTOK to get the three items.

You might need to use STRREP to change '%20' to something more useful (like '~'?).

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Tony,

Thanks a lot for the suggestion, works like charm! Shame on me, I did not know the GETTOK function (looked through the functions for something like it but to no avail...)

Thx, Cheers!


prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7
 
Posts: 4 | Location: Amsterdam | Registered: May 04, 2007Report This Post
Expert
posted Hide Post
Glad to hear it helped Tom. Sometimes all it needs is that thought seed Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] "SPLIT" of string

Copyright © 1996-2020 Information Builders