Focal Point
[SOLVED] Convert HYYMDm from Web Services Data

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/565105294

July 21, 2010, 09:31 AM
ColdWhiteMilk
[SOLVED] Convert HYYMDm from Web Services Data
The data source of my master files is some Web Services data, and I'm having trouble with one of the date fields.

The field format is HYYMDm.

The data in the field appears to be showing as: 2010-08-04T00:00:00.

No matter what I try, on my final results I get a "." for the original data, and a blank value for the translated format attempts.

I've tried these defines with no luck:

STOPDT/YYMD= HDATE(SART_GETFACILITIES.STOPDATE,'YYMD');
STOPDT2/A20= HCNVRT(SART_GETFACILITIES.STOPDATE,'(HYYMDm)', 26, 'A20');
STOPDT2/A13= HCNVRT(SART_GETFACILITIES.STOPDATE,'(HYYMDm)', 19, 'A13');


Can anyone help with the correct way to pull this data?

Thank you.

This message has been edited. Last edited by: Kerry,


Production - 7.6.4
Sandbox - 7.6.4
July 21, 2010, 09:53 AM
Efrem
You must add the following line to your FEX:

SET DTSTANDARD=STANDARD

You don't need any DEFINEs.

Let me know how it goes.
July 21, 2010, 10:10 AM
ColdWhiteMilk
That worked!

You rock!


Production - 7.6.4
Sandbox - 7.6.4
July 21, 2010, 06:13 PM
Waz
Why coudn't you have had this question a week ago, Smiler We just went through a Case with IBI to solve this.

The Date String is an XML standard date string, and WF won't read it if DTSTANDARD isn't set to STANDARD.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!