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     Date field ouput into XML is appearing twice

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Date field ouput into XML is appearing twice
 Login/Join
 
<DGW>
posted
I am using SQL Passthru to retrieve data from a SQL 2000 database. The date field being retrieved is in the HYYMDs format and needs to be reformated to YYMD. When the field is not formated and is part of the XML output, all though it is to long, it appears as it should in the output file. When I reformat the date useing HDATE and put the variable field to the XML in stead of the original field, the date appears twice in the same line:
<td colnum="c7" rawvalue="20070731">20070731</td>


This is the relevant reformat and output code:
DEFINE FILE SQLOUT
DATEFRMT/YYMD=HDATE(insurancelapsedate, 'YYMD');
END

TABLE FILE SQLOUT
PRINT
	TRADINGASNAME
	ADDRESS1
	ADDRESS2
	CITY
	STATE
	ZIPCODE
	DATEFRMT
	insurancetype
BY NAME


I can't fifure out why the date is appearing twice in the XML output.

Other than this, this works as desired and produces the correct output.

Any insight/suggestions will be greatly appriciated.


Regards.

- D

This message has been edited. Last edited by: Kerry,
 
Report This Post
<DGW>
posted
I forgot to provide a sample of the incorrect output:

<td colnum="c7" rawvalue="20070731">20070731</td>

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
DGW,

In your SQL, why not SELECT DATE(insurancelapsedate) AS 'WHATEVER',


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
Have you tried:

SET HOLDLIST=PRINTONLY


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Expert
posted Hide Post
Might also use DISTINCT in your SQL...

Also, it is well documented not to do anything with SQLOUT data except dump into a ftm file:

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS H1
END
-RUN

Then, do the data manipulation...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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     Date field ouput into XML is appearing twice

Copyright © 1996-2020 Information Builders