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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Help with GETTOK
 Login/Join
 
<Thiru>
posted
Hi,

I have these three lines code and not able to get my desired output.

-SET &PARAMS = 'START=END;CUSPART=NMP 437L429;RPTFMT=HTML;';

-SET &MYPARAM = GETTOK(&PARAMS, 42, 2, ';',1000, 'MYPARAM');

-TYPE &MYPARAM

-EXIT

I only got "CUSPART=NMP 437L4"

I need to get "CUSPART=NMP 437L429' (between the second and third ; seperator)

Any idea?

--Thiru
 
Report This Post
Gold member
posted Hide Post
What I see first is, that you are working in Dialog Manager. There you usually have to specify the format of the return value and not the target variable name. MAYBE this is the reason for your problem.
quote:
Originally posted by Thiru:
[qb]
-SET &MYPARAM = GETTOK(&PARAMS, 42, 2, ';',1000, 'MYPARAM');
[/qb]
So the above should be something like this:
-SET &MYPARAM = GETTOK(&PARAMS, 42, 2, ';',42, 'A42');
I took 42 instead of 1000 because this is the maximum possible size of one token. It cannot exceed the length of the whole string.
 
Posts: 54 | Location: Switzerland | Registered: May 13, 2003Report This Post
<Thiru>
posted
Thanks Roland!

That worked well.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders