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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Adding a New Field
 Login/Join
 
Gold member
posted
Hi guys,
Want to add a new columns which shows the Date. But I want to add this Date field as last column but restricting to only 1 row.

Below is sample data Format...

COUNTRY|SEATS|CurrentDATE|
ENGLAND|2 |2007/08/14 |
FRANCE |4 | |
ITALY |5 | |
JAPAN |6 | |


Know how to create using DEFINE and using IF condition like IF COUNTRY EQ 'ENGLAND' THEN &YYMD.
But COUNTRY|SEATS is a Hold file (Which is created depending on data - We can't use IF condition as data is not same for every RUN)

Any suggestions or work arounds is appreciated.

Thanks


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
Platinum Member
posted Hide Post
Here is adding the date to the first record.
Good luck!!



TABLE FILE CAR
PRINT SEATS
COMPUTE CNT1/I9=LAST CNT1 + 1; NOPRINT
COMPUTE DT/MDY=IF CNT1 EQ 1 THEN '081407' ELSE 0;
BY COUNTRY
END



COUNTRY SEATS DT
------- ----- --
ENGLAND 4 08/14/07
5
4
2
FRANCE 5
ITALY 2
2
4
2
JAPAN 4
4
W GERMANY 5
5
4
5
5
5


FOCUS 7.6 MVS PDF,HTML,EXCEL
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report This Post
Gold member
posted Hide Post
Thank you.


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders