Can someone please help us in getting the following script to have an output of 80 characters…in order to load the text file it must have a fixed width of 80 characters but we don’t see a way of doing this…we are currently on version 12.07. Any help would be greatly appreciated
select ‘"’||‘CA’||’"’||’,’||’"’||substr(PWCUSTOM.PWC_OU_MAPPING.TERRITORY,1,3)||’"’||’,’||’"’||substr(PWCUSTOM.PWC_ACCOUNT_MAPPING.GLOBAL_FIN,1,5)
||’"’||’,’||’"’||‘2016’||’"’||’,’||’"’||‘02’ ||’"’||’,’||’"’||substr(PWCUSTOM.PWC_OU_MAPPING.GLOBAL_OU,1,3)||’"’||’,’||sum
(APPS.IPR_PWC_ACCT_INQ_SUMMARY.ENTERED_YEAR_TO_DATE_NUM) Global_Financials
FROM PWCUSTOM.PWC_ACCOUNT_MAPPING
INNER JOIN APPS.IPR_PWC_ACCT_INQ_SUMMARY ON PWCUSTOM.PWC_ACCOUNT_MAPPING.ACCOUNT = APPS.IPR_PWC_ACCT_INQ_SUMMARY.SEGMENT3
INNER JOIN PWCUSTOM.PWC_OU_MAPPING ON PWCUSTOM.PWC_OU_MAPPING.OU = APPS.IPR_PWC_ACCT_INQ_SUMMARY.SEGMENT2
WHERE APPS.IPR_PWC_ACCT_INQ_SUMMARY.PERIOD_NAME = ‘Aug-15’
AND SEGMENT3 >= ‘30000’ AND SEGMENT3 <= ‘89999’
AND APPS.IPR_PWC_ACCT_INQ_SUMMARY.ACTUAL_FLAG = ‘A’
AND ENTERED_YEAR_TO_DATE_NUM <> ‘0.00’
AND PWCUSTOM.PWC_ACCOUNT_MAPPING.GLOBAL_FIN IS NOT NULL AND APPS.IPR_PWC_ACCT_INQ_SUMMARY.CURRENCY_CODE = ‘CAD’
Group by substr(PWCUSTOM.PWC_OU_MAPPING.TERRITORY,1,3),substr(PWCUSTOM.PWC_ACCOUNT_MAPPING.GLOBAL_FIN,1,5),substr(PWCUSTOM.PWC_OU_MAPPING.GLOBAL_OU,1,3)
Order by substr(PWCUSTOM.PWC_OU_MAPPING.TERRITORY,1,3),substr(PWCUSTOM.PWC_ACCOUNT_MAPPING.GLOBAL_FIN,1,5),substr(PWCUSTOM.PWC_OU_MAPPING.GLOBAL_OU,1,3)