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     [CLOSED] Noob question: Uploading data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Noob question: Uploading data
 Login/Join
 
Member
posted
Newbie here.

I have a need to take data out of one Oracle table and put it into another Oracle table. I know how to do this with SQL. My question how do you accomplish the same thing in Webfocus code. I don’t have any problems. I just want to know what commands to use to get the job done.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
 
Posts: 12 | Registered: June 01, 2017Report This Post
Virtuoso
posted Hide Post
Do you have access to the Reporting Server Console? If so, you can use either Quick Copy or Custom Copy to accomplish this.

Alternatively, you can write a WebFOCUS request that has the answer set you want and add

ON TABLE HOLD AS tablename FORMAT SQLORA

https://webfocusinfocenter.inf...source/oracle376.htm


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
You can use SQL PASSTHRU to accomplish that. Using this you write your code in SQL and then use FOCUS the execute.

You could also use MODIFY which is something developed by IB to Insert and Update DB.

Or even use
TABLE FILE "myOldOracleTbl"
...
ON TABLE HOLD AS "myNewOracleTbl" FORMAT SQLORA
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Master
posted Hide Post
There is a product called Maintain whose main purpose is to Update date to the database.
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Platinum Member
posted Hide Post
There's also MODIFY.

This focexec runs every night updating a SQL Server table DateRange.

TABLE FILE DR2
SUM
  DR_MIN_DATE AS 'DR_MIN_DATE'
  DR_MIN_TIME AS 'DR_MIN_TIME'
  DR_AVE_DATE AS 'DR_AVE_DATE'
  DR_AVE_TIME AS 'DR_AVE_TIME'
  DR_MAX_DATE AS 'DR_MAX_DATE'
  DR_MAX_TIME AS 'DR_MAX_TIME'
BY DR_YEAR AS 'DR_YEAR'
BY DR_PROJECT AS 'DR_PROJECT'
BY DR_RELEASE AS 'DR_RELEASE'
BY DR_SYSTEM AS 'DR_SYSTEM'
BY DR_SPECIES AS 'DR_SPECIES'
BY DR_RELEASESITE AS 'DR_RELEASESITE'
BY DR_RELEASEDATETIME AS 'DR_RELEASEDATETIME'
BY DR_ORDER AS 'DR_ORDER'
ON TABLE HOLD AS DATERANGE_HOLD
END
-RUN

-******************************************************************************
MODIFY FILE DATERANGE
LOG DUPL MSG OFF
FIXFORM FROM DATERANGE_HOLD
MATCH DR_YEAR DR_PROJECT DR_RELEASE DR_SYSTEM DR_SPECIES
ON MATCH UPDATE *
ON NOMATCH INCLUDE
DATA ON DATERANGE_HOLD
END
-******************************************************************************

DateRange.acx
 SEGNAME=DATERANGE, TABLENAME=GPUD_Reporting.dbo.DATERANGE, 
   CONNECTION=SunhillowSqlServer, KEYS=5, $

DateRange.mas
FILENAME=DATERANGE, SUFFIX=SQLMSS  , $
  SEGMENT=DATERANGE, SEGTYPE=S0, $
    FIELDNAME=DR_YEAR, ALIAS=DR_YEAR, USAGE=A4V, ACTUAL=A4V, $
    FIELDNAME=DR_PROJECT, ALIAS=DR_PROJECT, USAGE=A10V, ACTUAL=A10V, $
    FIELDNAME=DR_RELEASE, ALIAS=DR_RELEASE, USAGE=A4V, ACTUAL=A4V, $
    FIELDNAME=DR_SYSTEM, ALIAS=DR_SYSTEM, USAGE=A4V, ACTUAL=A4V, $
    FIELDNAME=DR_SPECIES, ALIAS=DR_SPECIES, USAGE=A2V, ACTUAL=A2V, $
    FIELDNAME=DR_RELEASESITE, ALIAS=DR_RELEASESITE, USAGE=A2V, ACTUAL=A2V, $
    FIELDNAME=DR_RELEASEDATETIME, ALIAS=DR_RELEASEDATETIME, USAGE=HYYMDs, ACTUAL=HYYMDs,
      MISSING=ON, $
    FIELDNAME=DR_ORDER, ALIAS=DR_ORDER, USAGE=I6, ACTUAL=I2, $
    FIELDNAME=DR_MIN_DATE, ALIAS=DR_MIN_DATE, USAGE=HYYMDs, ACTUAL=HYYMDs, $
    FIELDNAME=DR_MIN_TIME, ALIAS=DR_MIN_TIME, USAGE=A5, ACTUAL=A5, $
    FIELDNAME=DR_AVE_DATE, ALIAS=DR_AVE_DATE, USAGE=HYYMDs, ACTUAL=HYYMDs, $
    FIELDNAME=DR_AVE_TIME, ALIAS=DR_AVE_TIME, USAGE=A5, ACTUAL=A5, $
    FIELDNAME=DR_MAX_DATE, ALIAS=DR_MAX_DATE, USAGE=HYYMDs, ACTUAL=HYYMDs, $
    FIELDNAME=DR_MAX_TIME, ALIAS=DR_MAX_TIME, USAGE=A5, ACTUAL=A5, $


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 115 | Location: Seattle, WA | Registered: April 07, 2015Report 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     [CLOSED] Noob question: Uploading data

Copyright © 1996-2020 Information Builders