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.
Doesn't INSTR/A50V constrict the length of the string to 50 characters? I don't know how long my string will be... can I somehow specify the length of the string at runtime? or to just specify that the parameter is of type string with an undetermined length?
You should be able to use anything in the A50V upto the maximum length permissible within WebFOCUS. I only used 50 because I cba to type more
Note: I haven't tried using variable length fields in a function so it may not even be possible .
The only other thing I would try is using amper variables. However, I think that you would have to reload the function each time in case the variable value changed. That defeats the object of a variable value though .
Keep the Forum posted if you manage to get it working.
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, 2004
dtrang, try using either ARGLEN function or just the dos attribute &MYVAR.LENGTH to see how long the inbound is. say you measure a variable &INLEN then you can format a variable MYVAR/A&INLEN I read inbound character strings and have to surround them in quotes, and the || doesn't do it, so i use this technique often. -SET &AL1 = ARGLEN(25,&HDCUST1,'I2'); -SET &AL2='A'|&AL1; -SET &HDCUST1 = TRIM('T',&HDCUST1,25,' ',1,'&AL2');This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003