View previous topic :: View next topic
|
Author |
Message |
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
Hi all,
I want to create a report using generate command I need to give sequence for 3 fields and control for two fields,I have a attched the piece of code which shows the report section.
My control command is not working in output shown it just dumping the input in report |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you re-post the info by using copy/paste/ and the "Code" tag.This is a much more readable format for your post. There is Preview which will show you how your post will appear to the forum. When you are satisfied with how the post appears, click submit.
Also, we have several members who cannot download attached files due to security reasons.
Please post a smal amount of the input data and what is produced as output. Then explain how the output should be different. |
|
Back to top |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
Code: |
***************************************************************
REPORT SECTION.
RD EE-RPT CONTROLS ARE FINAL, EE-UNCAT-CO, EE-UNCAT-ASSET
PAGE LIMIT IS 57
LINES HEADING 4.
* SEQUENCE IS UNCAT-CO UNCAT-ASSET UNCAT-VOU
01 EE-RPT-H TYPE PAGE HEADING.
05 LINE 1.
10 COLUMN 01 PIC X(15)
VALUE 'GE FIXED ASSETS'.
10 COLUMN 30 PIC X(33)
VALUE 'CAPITAL UNCATALOGUED ASSET REPORT'.
10 COLUMN 72 PIC X(09)
VALUE 'RUN DATE'.
10 COLUMN 84 PIC X(08)
SOURCE WS-RUNDATE.
10 COLUMN 121 PIC X(04) VALUE 'PAGE'.
10 COLUMN 125 PIC Z(7)9
SOURCE PAGE-COUNTER OF EE-RPT.
|
|
|
Back to top |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
Iam getting output as this
Code: |
********************************* Top of Data **********************************
GE FIXED ASSETS CAPITAL UNCATALOGUED ASSET REPORT RUN DATE
PGM : FER040 SORTED : CO-NO
CORP SORTED : 06RN
CO ASSET COST
NO NUMBER CTR BUS-CD BUS-FUNC GAP VOUCHER INV-NO
06RN 08EYUS612 YUS6 GEU N46 164 13088646
******************************** Bottom of Data ******************************** |
but I want like this
Code: |
********************************* Top of Data **********************************
GE FIXED ASSETS CAPITAL UNCATALOGUED ASSET REPORT RUN DATE
PGM : FER040 SORTED : CO-NO
CORP SORTED : 06RN
CO ASSET COST
NO NUMBER CTR BUS-CD BUS-FUNC GAP VOUCHER INV-NO
06RN 08EYUS612 YUS6 GEU N46 164 13088646
06RN 08EYUS612
06RN |
So could u tell me the syntax of control and sequence for report writing I had used generate command in the code |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What happens when you remove the "*" from the "SEQUENCE" statement? |
|
Back to top |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
it says cannot understand the word sequence |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
it says cannot understand the word sequence |
Bummer - that was just a guess. . .
Did you code SEQUENCE from some manual or other code that works?
If has been many years since i've seen the cobol report writer used and it is no longer in the cobol manual. I believe it is now an add-on product (rather than part of Enterprise COBOL). Whnich version of cobol are you using?
Is there more to the report definition that has not been posted? |
|
Back to top |
|
|
|