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.
It would appear that the field called KIND in a check file hold ouput file has a format of U4 (U4B) .... I THINK this field is used to denote the type of field. EG DEFINEd field is 07000000 and DEFINEd field with MISING ON is 07080000. Trouble is I cannot seem to reference this field in an IF/DEFINE to flag DEFINEd fields. anyone know a way round this ? Any hints/tips would be appreciated !This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6, Windows, unix
Posts: 3 | Location: UK | Registered: June 15, 2011
Found this on the internal site, might help depending on what you actually are trying to do.
DEFINE FILE SYSCOLUM DEF_TYPE/A15 = DECODE DEFINE('C' 'Computes' 'F' 'Filters' 'Y' 'Defines' ELSE 'Fields '); END TABLE FILE SYSCOLUM PRINT NAME AS '' ALIAS AS '' USAGE AS '' WHERE TBNAME EQ 'EMPLOYEE' BY DEF_TYPE ROWS Fields OVER Defines OVER Computes OVER Filters END
Thanks very much I can work around this now! There is a field called DEFINE and DEFTEXT in the table which gives me a flag creator and something to work with. If anyone out there does know anything about the 'KIND' field I would still appreciate the knowledge on how to read it but this will enable me to achieve what I need to do. TVM
WebFOCUS 7.6, Windows, unix
Posts: 3 | Location: UK | Registered: June 15, 2011
U format is unformatted hexadecimal. So if your field looks like 07080000, for screening you can use:
DEFINE FILE HOLD
IG /A1 = HEXBYT(7, 'A1');
UG /A1 = HEXBYT(8, 'A1');
AH/A1 = IF KIND CONTAINS IG THEN 'Y' ELSE 'N';
AY/A1 = IF KIND CONTAINS UG THEN 'Y' ELSE 'N';
END
TABLE FILE HOLD
PRINT KIND IG UG AH AY
-*WHERE KIND CONTAINS IG
-* OR KIND CONTAINS UG
END
To see exactly what happens, try
DEFINE FILE HOLD
NEWKIND/U8 = KIND;
END
TABLE FILE HOLD
PRINT KIND NEWKIND
IF NEWKIND CONTAINS ' '
END
TABLE FILE HOLD
PRINT KIND NEWKIND
IF NEWKIND OMITS ' '
END
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007