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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] M-D date format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] M-D date format
 Login/Join
 
Gold member
posted
Need a quick way to format a date in M-D.

Like this: Dec-05

Or, how can I select this format in a chart?

thanks

BobV

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


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 93 | Registered: February 20, 2008Report This Post
Expert
posted Hide Post
Whats the field format ?


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!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Is thisw a DB Field? Or, a Amper Variable (Dialogur Manager)?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Have a look at
DATETRAN


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Report This Post
Platinum Member
posted Hide Post
Try this......

WMY/MtY = DATEXXXX;

where DATEXXXX is a smart date.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Master
posted Hide Post
  
TABLE FILE IBISAMP/EMPLOYEE
PRINT 
    COMPUTE HIRE_MDYY/MDYY = DATECVT(HIRE_DATE, 'I6YMD', 'MDYY') ;   
    COMPUTE HIRE_M-D/A6 = DATETRAN(HIRE_MDYY, '(MD)', '(t-)', 'EN', 6, 'A6');
BY LAST_NAME 
BY FIRST_NAME
BY HIRE_DATE
WHERE DEPARTMENT EQ 'PRODUCTION';
ON TABLE SET PAGE-NUM OFF
END


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Gold member
posted Hide Post
Solved
Thanks all. This DATETRAN worked:

PMT_DATE_MD/A40=DATETRAN (INIT_PMT_DT, '(MD)', '(-t)', 'EN', 40, 'A40');
Results:
Jan-03, Jan-04, Jan-05 etc

BobV


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 93 | Registered: February 20, 2008Report 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     [SOLVED] M-D date format

Copyright © 1996-2020 Information Builders