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.
Here is one that I use. You can copy the define to multiple programs or make a define function out of it.
DEFINE FILE WBF_BOTLOG
BOT_START/D14=EDIT(START_STAMP);
BOT_END/D14=EDIT(END_STAMP);
BASE_DATE/YYMD=19700101;
HBASE_DATE/HYYMDS=HDTTM(BASE_DATE,8,'HYYMDS');
BOTLOG_START/HYYMDS=
HADD(HBASE_DATE,'MILLISECONDS',BOT_START,8,'HYYMDS');
BOTLOG_END/HYYMDS=
HADD(HBASE_DATE,'MILLISECONDS',BOT_END,8,'HYYMDS');
PRT_START/HYYMDS=HADD(BOTLOG_START,'HOUR',-6,8,'HYYMDS');
PRT_YYMD/YYMD=HDATE(PRT_START,'YYMD');
PRT_END/HYYMDS=HADD(BOTLOG_END,'HOUR',-6,8,'HYYMDS');
DIFFMIN/D12.4=(HDIFF(PRT_END,PRT_START,'SECOND','D12.4'))/60;
BEGHR/I2=HPART(PRT_START,'HOUR','I2');
END
TABLE FILE WBF_BOTLOG
SUM
CNT.SCHED_ID AS 'Row Count'
BY PRT_YYMD AS 'Run Date'
HEADING
"BOTLOG on P2 as of <+0>&DATEMDYY<+0> "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
RIGHTGAP=0.125000,
$
TYPE=DATA,
BACKCOLOR=( RGB(217 179 255) 'WHITE' ),
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=HEADING,
FONT='ARIAL',
SIZE=12,
BACKCOLOR=RGB(196 136 255),
STYLE=BOLD,
$
ENDSTYLE
END
Mine is almost the same as yours but I added the PRT dates to adjust from GMT.
I don't know why my defines aren't working for you. I wrote this code when we were using 5.3.3 and we are now up to 7.6.2 and the code still works. BTW, WBF_BOTLOG is a synonym that we created for BOTLOG just in case that makes a difference.
Can you post your code so that I can compare it to mine?
Also, please update your profile signature to show your product suite, releases, and platforms so that we can better help you.
DOn,Your botlog is a focus repository? You don't say, actually. I don't know that it matters, Ginny,if yours is focus you shouldn't have to make your own master, you should be able to use the botlog.mas. or am i missing something? Don, Have a look at this article on reading botlog.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Mine is DB2 and I know I don't have to make a master. They were already in place when I got here so I just use them.
As for Don and Kevin's problem, Kevin's code works fine in my environment. But if Kev's repository is FOCUS, that might make a difference. Would have to see the master he is using. Kevin, can you post, please?
Kevin, try redefining those V fields rather than editing the master Do a straight dump PRINT E01 NEWJOBDESC E03 NEWUSER E05 E06 E07 E08 and then look at the records in a text file and see if they contain what you expect them to contain...
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I used your code in the article you submitted and I was able to get the "real dates" I needed! For some reason, I can't get the WebFOCUS date functions to get me anything except "1970/01/01 00:00:00".
I will use your logic to convert my START_STAMP and END_STAMP values in my BOTSCHED file.
Thank you to all who responded and contributed to this topic! These Date and Time topics can create some interesting threads.