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 have used CTRAN to translate the ~ decimal value (127) to a new line (10) and even tried a carriage return (13), but this is not working?
Can I not edit a field that way? How can i parse this information so that it will appear on multiple lines/rows?
Can anyone help?
I was thinking I would need to loop through the string, but I am not sure how I would do that and still be able to get them on different lines.This message has been edited. Last edited by: slfmr,
Dev, SIT, UAT, Production:7.6.6 Dev Sandbox:7.6.11
MAIL_CSZ/A50 = IF E09 EQ 'US' OR ' ' THEN (E06 || (', ' | E07 | ' ' | ZIP)) ELSE (E06 || (' ' | E07));
E09 is country E06 is City E07 is state
The above on a mailing line from really old code to concatenate fields.
The name routine is our standard expand then I have a really fancy one that uses the lower case word function and overlay to get things like Macaffee to me MacAffee.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
Thanks for the response. Is there anyway you can show me what your original string looked like and what it looks like now? OR what the values in all of the defined fields are.
Then I would do some more edits etc... I don't know how long any string will be so it's hard to say what to extract. Also a person might not have any Ins so that row might not be there. All I know is that the ~ will separate a new line.
I will be looking into your post and trying it out.
Thank you!This message has been edited. Last edited by: slfmr,
Dev, SIT, UAT, Production:7.6.6 Dev Sandbox:7.6.11
Here is an example, I usually put to a spreadsheet, so the '/' indicates the 'cell' Of course I had to change real data.
DESIREABLE TRISTEN BACHMAN/2600 ANYSTREET RD/APT 2-B/ANY CITY, IA 51599
The following are fields in our data base
BACHMAN, DESIREABLE TRISTAN - name 2600 ANYSTREET ROAD - street line 1 APT 2-B - street line 2 ANY CITY - city IA - state code 51599 - zip (we can store international and correctly formatted Canadian as well here.)
In this case country would be blank
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
Here's an example to set you off. All it does is takes your example layout (as I have no data for it ) and creates a temporary master file with three defines to identify the required fields within your CLOB. You could just place these in your master and be able to access them from any report without having to bother with copying the define each time or using an include etc.
I understand that a temporary master file is created, but I have a few questions:
"You could just place these in your master..."
Would I place the new define fields in the master file? Also I thought the master file was temporary so I'm not sure where to place what. I guess I don't know what "these" refers to . "These" as in those lines of code placed in the original master file for the table that contains the CLOB or "these" as in just the defined fields...
Also what is this? (LRECL 4096 RECFM F This comes after the FILEDEF... I have used FILEDEF but the only thing I put after that is an APPEND.
And your CLOBTEST name does that refer to my master file with the CLOB format or is that just a new name we are creating?
Thank you sooo much for responding. There aren't many posts on CLOB's so I was afraid I was going to totally be in the dark. Thank you for all your clarifications!This message has been edited. Last edited by: slfmr,
Dev, SIT, UAT, Production:7.6.6 Dev Sandbox:7.6.11
By these I mean the actual DEFINE lines, just append them to the end of your master file description to be able to have instant access to them in any fex that accesses the .mas -
The only reason that my example showed a -WRITE using them is that I was trying to supply a possible solution without leaving around residual code that I no longer require! Also to give an entirely funtional example without any changes. As I do not have the .mas that you use I tend to use temporary .mas files to build the temporary files required to mimic your requirement, in this case I called it CLOBTEST for want of a better name! That is why we will often ask for an example using one of the sample files from IB (CAR, GGSALES etc.) so that we know we are using the same data as you.
I hope you find your solution.
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
If you want more specific assistance then PM me and I'll reply when I can. I have added you to my buddies so that you can use PM to me. Sorry about that, but I had to restrict my PM as I was getting some directly from members instead of them raising a new topic!
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
Hi Tony and Leah, thanks so much for all your help. I went ahead and took the route suggested by both. I used GETTOK suggested by both parties and went ahead and also placed my defines in my master file, per Tony's suggestion.
This has been an extremly helpful post and I thank you both. Everything is working as I need it.
Again, thank you!
Dev, SIT, UAT, Production:7.6.6 Dev Sandbox:7.6.11