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.
I am new to this forum.I use FOCUS 7.0.8R on ZOS 390 Mainframes to create reports.I am facing the below problem. I need to accept current date and then compare with gregorian date but the if condition to check is failing. Details are below : The following code is used to convert date into Greg date GREGT/I8=GREGDT(LNDTENTERD,GREGT); and I am accepting current date in A10 format which comes as CCYY/MM/DD , which then I convert to I8. The following condition always fail when I pass FMT dates as Alphanumeric OR as I8 tried both ways. IF GREGT GE STR-DATE IF GREGT LE END_DATE but this condition works fine when I pass hard coded value for example IF GREGT GE 20100301 IF GREGT LE 20100331 I tried displaying GREGT in spool values comes as 40200635 , dont know the reason.Please help me. I need to accept current date , based on which I calculate STR_DATE and END_DATE and then need to compare with GREGT , I cannot hard code years.This message has been edited. Last edited by: Kerry,
FOCUS for mainframes FOCUS 7.0.8R Z/OS 390 Mainframes basic mainframe output only, either direct it to SPOOL or create .txt formats
Do you receive an error message? Can you also show us the code for converting the current date into start date and end date?This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Thank you all for replying to my query. My apologies for writing a LONG mail , as I want to be descriptive in explanation.
What I am really interested to know here is why the date is getting displayed as 40200635 when I display it in greg format i.e. I8 but same field if I convert to A8 and display it gives 20100326.(26 March2010) What I have done is I have converted my FMT dates as mentioned in last mail to I8 gregformat by first converting it to Julian and then passing julian to Greg.Conversion happens fine , but to my surprise again the date is displayed as 40200xxx where xxx is a number forgot to save last time. Even though when I compare this greg date with GREGT date I get following error (FOC006) THE FORMAT OF THE TEST VALUE IS INCONSISTENT WITH FIELD FORMAT: My requirement is simple a.) accept the current date b.) based on which find first day and last day of previous month c.) Then compare with GREGT ( I Cannot change this value) as follows IF GREGT GE STR-DATE IF GREGT LE END_DATE where STR_DATE and END_DATE should be first day and last day of month in format ccyymmdd. GREGT is derived as follows GREGT/I8=GREGDT(LNDTENTERD,GREGT);
I will try with Kofi reply and see if it works.
FOCUS for mainframes FOCUS 7.0.8R Z/OS 390 Mainframes basic mainframe output only, either direct it to SPOOL or create .txt formats