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     Using HTML in SQLDBC

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using HTML in SQLDBC
 Login/Join
 
<Kalyan>
posted
I'm using the following lines to use SQLDBC.

REMOTE DEST=<server>

-REMOTE BEGIN

SQL SQLDBC

<query>

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS filename FORMAT FOCUS INDEX <fieldname>
END

Some JOIN....
....
...

TABLE FILE file
PRINT
..
..
..
END
-REMOTE END

I'm not able to use &LINES parameter...
Is there any other way to check if the number of records fetched is 0 or not ??
 
Report This Post
<Pietro De Santis>
posted
I'm not sure if this is going to work, but please give it a try.

-REMOTE BEGIN

...

TABLE FILE file
PRINT
...
...
...
END
-RUN
-SET &LINECOUNT = &LINES;
-REMOTE END

-TYPE &LINECOUNT
 
Report This Post
<Kalyan>
posted
no this does not work
any other workaround???
 
Report This Post
<WFUser>
posted
I think the problem is that &LINES is set on the server and there is no way to bring it down to the client. If you do a PCHOLD, then -REMOTE END, you can then do a
TABLE FILE ...
SUM CNT...
END
and then test &RECORDS
 
Report This Post
<Kalyan>
posted
Please look at the foll code:
SQL
select count(*) as count from table where cond1=--;
table hold as hold1
end
I want to set the value of the count in a amper variable. How do I do it?

Thanks,
kalyan.
 
Report This Post
<kj>
posted
Try this

Instead of HOLD use SAVE
ON TABLE SAVE
END
-RUN
-READ SAVE &COUNT.P11

Thanks,
kj
 
Report 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     Using HTML in SQLDBC

Copyright © 1996-2020 Information Builders