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.
I'm trying to take out trailing blanks using the squeez function, but as an argument of that function you have to specify the number of bytes of the new variable. So, if my number of bytes is longer than the actual text I want out of my original variable, isn't the new variable just going to be padded with trailing spaces? What is the point of this function?
and, continuing on from JG, you can use the ARGLEN function to determine how long the resulting field needs to be and put that number into your TRIM function, if you like. Are you in DM or in a Define?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
But the Trim function requires a number of bytes for the output variable also. Therefore, I would have the same problem. And I understand about the ARGLEN function as an argument of the Trim function, but wouldn't that just use the longest text value of that field as the variable length? Therefore, anything shorter would have trailing spaces.
My overall objective is to export a text file out of Webfocus using ON TABLE HOLD AS PCMHDET FORMAT COMT. When I do that, most of the fields are exactly as they should be: If there is a value in a field shorter than another value in that same field, then they look like this:
VARIABLE1 "ABCDEFGHE" "ABC"
But there is one field that is not coming over correctly. I define it as A50 in my program. It comes over with the ending quotes way off to the right, in other words, with trailing spaces.
Now there are other defined fields as A50, that come out just fine on the text file without those trailing spaces.
Thats why i asked if you were in DM or in a DEFINE. Its easy to handle the output format change...just tell me which environment you're in, and i'll show you how.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003