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.
WHERE ( INV_INVOICE_DATE_Y GE '&StartYRMTH' ) AND ( INV_INVOICE_DATE_Y LT '&EndYRMTH' );
I don't know what FOC_NONE01 is, but the error message is very clear:
THE FORMAT OF THE TEST VALUE IS INCONSISTENT WITH FIELD FORMAT
Check the Master of the table you are accessing for the format of the column INV_INVOICE_DATE_Y. The coding of the WHERE statement is highly dependent on the formal of the column.
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
Hi francis, How can we check the format of the columns in the master file with out going into the .mas file,i think there is a command to see the formats of all the columns in .mas file.. please tell...........
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
Good, that's your answer then. You seem to be concatenating 'FOC_NONE' and '01' which results in the invalid WHERE condition being sent to the database.
Fix that keeping in mind Francis' suggestion about your data field format and your retrieval will work. How will you fix it? well, for starters, how about you use a -DEFAULT value for each of those values different from FOC_NONE? Or, you could attempt something like replacing:
Swati, why are you setting the two date variables to FOC_NONE, if its not a date, then its not going to work.
To see the column formats, you can issue several commands.
? HOLD {master} (for an active hold file)
?FF (inside a TABLE for DEFINE)
?FF {master}
TABLE FILE SYSCOLUM
PRINT SEG.NAME
WHERE TBNAME EQ '{master}'
END
Hi waz, what should i replace the FOC_NONE with for the start and end dates..?
it is declared by the other developer that start and end dates are with FOC_NONE.so as you told that dates are not suppose to use FOC_NONE then what should i declare for the dates...?
please help....
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
Waz, what u told is correct that the dates are sent from launch page through drop downs. the dates are in the format YYYYMM in the launch page i.e; eg 201005,201004....
i checked using ?FF (MASTER) i got the formats for all the columns and the funniest thing is that i dont see the column named INV_INVOICE_DATE_Y,But i see a column called INV_INVOICE_DATE,and the format of it YYMD.
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
I guess i think we need to modify this following line for getting the output bcoz i am having he default StartYRMTH AS FOC_NONE,so this getting concatenated to 01 and resulting in FOC_NONE01 which is resulting to invalid where condition as njsden posted earlier,so what should i modify the below line...
-SET &StartYRMTH = &StartYRMTH | '01';
But EndYRMTH looks gus as it is using EDIT STMT as below..
if i remove the below where clause the report is running fine...
WHERE ( INV_INVOICE_DATE_Y GE '&StartYRMTH' ) AND ( INV_INVOICE_DATE_Y LT '&EndYRMTH' );
but i am getting the total data in some 300 pages irrespective of any date range i pick,so my question How to alter the dates in such way that if i pick start date,enddate as 201001,201002 i need to get the corresponding data between those 2 monthe rather than all the data....
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
Hi tony,no i dont have any formal training... I JUST CLICKED ON THE START AND END DATES DROPDOWNS AND IN THE PROPERTIES BOX I GOT StartYRMTH EndYRMTH as the name of those start and enddates...
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
If you haven't had any formal training to do what you are being asked to do, then it is unfair on you.
Do you have someone in your vicinity to ask these questions? Hopefully someone who has developed these interfaces? If you do then badger them with your questions and perhaps your management might relent and give you some formal training.
You wouldn't give a child a bike and expect them to ride it on a road without giving them support would you? - and I don't mean asking some body who lives across the road who knows how to ride a bike.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004