SELECT A.FIELDNAME , A.LANGUAGE_CD , A.LONGNAME FROM PSDBFLDLABLLANG A , PSDBFLDLABL B WHERE B.DEFAULT_LABEL = 1 AND A.FIELDNAME = B.FIELDNAME AND A.LABEL_ID = B.LABEL_ID AND B.FIELDNAME IN ( SELECT C.FIELDNAME FROM PSRECFIELDDB C WHERE C.RECNAME = 'FDM_PROD_SBR') AND ( EXISTS ( SELECT 'X' FROM PS_CF_COBOL_PGM WHERE PS_PRODUCT = B.FIELDNAME) OR EXISTS ( SELECT 'X' FROM PS_CF_CRYSTAL_PGM WHERE PS_PRODUCT = B.FIELDNAME) OR EXISTS ( SELECT 'X' FROM PS_CF_NVISION_PGM WHERE PS_PRODUCT = B.FIELDNAME) OR EXISTS ( SELECT 'X' FROM PS_CF_SQR_PGM WHERE PS_PRODUCT = B.FIELDNAME) OR EXISTS ( SELECT 'X' FROM PS_CF_SQR_PGM WHERE PS_PRODUCT = B.FIELDNAME))
|