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 got a requirement where i would need to create a report from the copybook and there is no input file.
The copybook would be like:
01 LAYOUT. 05 FIELD-1 PIC 9 VALUE 1. 05 FIELD-2 PIC X(5) VALUE 'FOCUS'.
I would need to display the values given in the copybook. For the above example the output for the above copybook should be:
1 FOCUS
I have given the above copybook as example, but i have a copybook which has around 200 fields, i would need to display all the fields with the respective values.
Could anyone help me.This message has been edited. Last edited by: Vinay Kumar,
WebFOCUS 7.6.4, Mainframe Focus Windows XP, All Output Formats
... or maybe this ... Use SYSTABLE to create the master and (empty) datafile. I think this is platform independent. It works on my windows-based laptop.
-Fred-
TABLE FILE SYSTABLE
PRINT
COMPUTE LINE1/A250 = '';
BY NAME NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET XRETRIEVAL OFF
ON TABLE HOLD AS HLD1 FORMAT ALPHA
END
-RUN
-WRITE HOLDMAST FILENAME=HLD1 , SUFFIX=FIX ,$
-WRITE HOLDMAST SEGMENT=HLD, SEGTYPE=S0, $
-WRITE HOLDMAST FIELDNAME=LINE1, ALIAS=E01, USAGE=A250, ACTUAL=A250, $
-* --- Example copybook
-WRITE HLD1
-WRITE HLD1
-WRITE HLD1 copybook INQINTC
-WRITE HLD1 Channel name
-WRITE HLD1 01 INQUIRY-CHANNEL PIC X(16) VALUE 'inqcustrec'.
-WRITE HLD1 Container names
-WRITE HLD1 01 CUSTOMER-NO PIC X(16) VALUE 'custno'.
-WRITE HLD1 01 BRANCH-NO PIC X(16) VALUE 'branchno'.
-WRITE HLD1 01 CUSTOMER-RECORD PIC X(16) VALUE 'custrec'.
-WRITE HLD1 Define the data fields used by the program
-WRITE HLD1 01 CUSTNO PIC X(8).
-WRITE HLD1 01 BRANCHNO PIC X(5).
-WRITE HLD1 01 CREC.
-WRITE HLD1 02 CUSTNAME PIC X(80) VALUE 'FOCUS'.
-WRITE HLD1 02 CUSTADDR1 PIC X(80).
-WRITE HLD1 02 CUSTADDR2 PIC X(80).
-WRITE HLD1 02 CUSTADDR3 PIC X(80).
-SET &FINDWHAT = 'VALUE';
-SET &FINDLEN = &FINDWHAT.LENGTH;
DEFINE FILE HLD1
POS1/I2 = POSIT(LINE1, 250, '&FINDWHAT', &FINDLEN, POS1);
VAL1/A40 = SUBSTR(250, LINE1, POS1+&FINDLEN, 250, ( 250 - (POS1+&FINDLEN) ), VAL1);
CLEAN1/A40 = STRREP(40, VAL1 , 1, '''', 1, '', 40, CLEAN1);
CLEAN2/A40 = STRREP(40, CLEAN1, 1, '.' , 1, '', 40, CLEAN2);
CLEAN3/A40 = TRIM('B', CLEAN2, 40, ' ', 1, CLEAN3);
END
TABLE FILE HLD1
PRINT
VAL1
CLEAN3
WHERE LINE1 CONTAINS 'PIC' AND LINE1 CONTAINS 'VALUE';
END
-RUN