Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

sequence in reort writing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Fri Jan 09, 2009 11:39 am    Post subject: sequence in reort writing
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 09, 2009 12:09 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Fri Jan 09, 2009 4:46 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Fri Jan 09, 2009 6:12 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 10, 2009 3:44 am    Post subject:
Reply with quote

Hello,

What happens when you remove the "*" from the "SEQUENCE" statement?
Back to top
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Mon Jan 12, 2009 11:10 am    Post subject:
Reply with quote

it says cannot understand the word sequence
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jan 12, 2009 9:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us