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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report on Output for each comma delimited parameter.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report on Output for each comma delimited parameter.
 Login/Join
 
Member
posted
Hi,

Requirement :-
Users provide a comma delimited list of policies [&POLICIES]( some valid - return a result
Others - do not return a result)
I have a procedure, that uses the &POLICIES and returns a report. - &POLICIES contains a comma separated list of policy numbers.
E.g. POLICIES =123,456,897
Assume that policy no.s 123, 456 return a row ( I have SQL that does that)
But Policy 897 does not.
The users would like the output result to retunr
Policy No Status ColD11 ColDtl2 ....
123 Valid 10 1000
456 Valid 20 987
897 NotFound - -

How would I go about doing something like this ?
Thanks,
Saurabh


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
Member
posted Hide Post
Can you change your SQL to return 'NotFound' if the row does not exist?


WebFOCUS 760 HPUX - Using MRE, Report Caster, Dashboard and Self Service.
 
Posts: 16 | Location: California | Registered: April 18, 2007Report This Post
Member
posted Hide Post
I am sure, how I would do this.
Just to understand, let us say my query is
Select policy, details
from policytable
where policy in (123,456,897)
-
Now Query shall return details for policies 123,456.
However I want to track the status for all 3 i.e I want to include a row for 897 and indicate that notfound.
Can I do this ?


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
Member
posted Hide Post
Saurabh,
I am not a SQL guru so I cannot tell you how to do it in SQL (although I think it is possible). But, it can be done in FOCUS using -READs and -WRITEs within a loop.
It is difficult to explain here, but if you look up -READ NOCLOSE and -WRITE commands, you will get the idea.
Basically, the plan is to begin a loop, read the comma delimited file, and pass the policy number to a &variable. Then do a table request against your policytable and if the &variable equals the policynumber in the table hold the results. If &RECORDS is 0 and no value is returned, then -WRITE to the HOLD file and append the &variable + 'Not Found'. Go to top of loop and -READ until there are no more &variables.
You will have to filedef the HOLD file as appendable.
I have done things like this before. It takes some effort, but it works.


WebFOCUS 760 HPUX - Using MRE, Report Caster, Dashboard and Self Service.
 
Posts: 16 | Location: California | Registered: April 18, 2007Report This Post
Member
posted Hide Post
Thanks for you help.
here is what I have done and it works.
Step1:
I created a Temporary table to store a list of all the policies that were input by the user.
Step2: I ran the report and queried the temporary table to track, which policies returned a report and which did not.
Step3: Based on step2, I now had information to update the status..

Thanks again for taking the time to discuss the issue.
Saurabh


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report on Output for each comma delimited parameter.

Copyright © 1996-2020 Information Builders