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 have the code here to give me a count but, if there is only one occurance 0, if more than 1 first occurance =1 then counter+1. Not sure what function to use? Would I need to use a loop?
DEFINE FILE HLD_SC_CHANGE_TICKETS COUNTER/I9=; COUNTER/I9=IF SYSTEM_AFFECTED EQ LAST SYSTEM_AFFECTED THEN COUNTER+1 ELSE 0; END TABLE FILE HLD_SC_CHANGE_TICKETS WRITE COUNTER PRINT COUNTER SYSTEM_AFFECTED AS 'System Affected' SUPPORTTEAM AS 'Support Team' APPROVAL_STATUS AS 'Approval Status' RISK_ASSESSMENT AS 'Risk' PLANNED_START AS 'Planned Start' PLANNED_END AS 'Planned End' ORIG_OPERATOR AS 'Original Operator' INSTALL_GROUP AS 'Install Group' C_NUMBER AS 'CM Number' CHANGE_DESRIPTION AS 'Description' APPLICATION AS 'Application' WHERE ( PLANNED_START CONTAINS '&PLANNED_START.(FIND PLANNED_START IN hld_plannedstartrolling3months).PLANNED_START.' ) AND ( SUPPORTTEAM EQ '&SUPPORTTEAM.(FIND SUPPORT_TEAM IN hld_supportteams).SUPPORTTEAM.' ); ON TABLE SET PAGE-NUM OFF ON TABLE SET BYDISPLAY ONThis message has been edited. Last edited by: Kerry,
You'll never get more than 1 for your COUNTER field because you reset it with every record. Take out the COUNTER/I9=; - it isn't necessary.
There is no such thing as a loop when you're referring to reading records. You can't co-mingle Dialogue mMnager commands with fields/field values.
Looping only refers to generating additional code based on the values of &variables.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007