Hi I tried to convert an integer field(I11) (201501) to an alpha or a date. I need to get the format of January 2015. I tried different functions and nothing seems to work. Can anyone help me. Below is the functions I used to get the date.
Thanks, Sherly The version I am using is 8.1.05 Windows 7 EnterpriseThis message has been edited. Last edited by: Sherly,
WebFocus 8.x Hyperstage
May 04, 2016, 10:56 AM
Francis Mariani
DEFINE FILE CAR
MY_INT_FIELD/I11 WITH COUNTRY = 201501;
MY_YYMI/I6YYM = MY_INT_FIELD;
MY_YYM/YYM = MY_YYMI;
END
TABLE FILE CAR
SUM
SALES
MY_INT_FIELD
MY_YYMI
MY_YYM
BY COUNTRY
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 04, 2016, 11:12 AM
Sherly
Hi Francis, Do I need to hardcode the value of the date? I tried the code below and the code failed
CStart_DT/I11 WITH PGIP_PHYSCIANSLIST = 201507; My value should come from the table.
Sherly
WebFocus 8.x Hyperstage
May 04, 2016, 11:18 AM
Vivian
Hi Sherly,
You might find answers to all those pesky date questions in Almost 1001 Ways to Work with Dates in WebFOCUS -- a handy book filled with examples! Available at www.aviter.com.
Vivian Perlmutter Aviter, Inc.
WebFOCUS Keysheet Rel. 8.0.2 (Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2 Focus since 1982 WebFOCUS since the beginning Vivian@aviter.com