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.
So if I understand you correctly, you have one giant record with groups of fields hopefully with the same formats. For instance COUNTRY1 has the same format as COUNTRY2, etc. Please confirm that this is true.
The second thing to know is what kind of file it is? Fixed, relational,?
Even if relational, you can create a flat hold file out of it repeating the fields in order, i.e. COUNTRY1 CAR1 COUNTRY2 CAR2 COUNTRY3 CAR3 etc.
Create an alternate master for this file using the OCCURS clause and the ORDER field. Then you don't have to use OVER. You can simply say:
TABLE FILE filename
PRINT COUNTRY CAR
BY ORDER NOPRINT
WHERE COUNTRY NE ' '
END
Please let me know if you need more detail on this technique. It is a handy one to keep in your back pocket.
I like your idea. However, If I have 4 occurences and they are all blank then I get no records. I have other fields that are part of my query and I need to have those printed.
I have saved my data in a hold table and formatted as alpha.
Then put the other fields at the beginning of the record and the occuring ones at the end. Then use the alternate master. You can print the fixed fields and they will show up regardless of whether the other columns are blank or not.
You just need to be creative and arrange the data to suit your needs not the other way around.