Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only
  • 1.  Compound Document - naming sheets differently

    Posted 10/03/21 04:46 PM

    Hi,

    I have successfully used the Compound Document technique to have a single spreadsheet with 6 different reports, each in a different sheet.

    The problem is that each sheet is named the same as the spreadsheet name with (1), (2) etc. as the suffix. I need to distribute the spreadsheet so that it's clear what each sheet contains. The example I followed was from an article by Gene Cobb where it looked like the sheets were named appropriately with no extra effort:

    https://www.mcpressonline.com/analytics-cognitive/db2/techtip-db2-web-query-and-excel-spreadsheets-easy-as-pie-part-ii






    #Db2
    #Support
    #SupportMigration


  • 2.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/04/21 04:02 PM

    Hi Thomas,

    You can change the name of each report in the document, then when the document is run, the name of the report will be the name of the sheet.

    You can change the name of a report as follows:

    1. Open the report in InfoAssist.
    2. In the query panel, right click on 'Report' and click 'Rename'.
    3. Enter the title for your report and click 'OK'.





    #Db2
    #Support
    #SupportMigration


  • 3.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/04/21 07:01 PM

    Hi Ann,

    Thanks very much for your response. I might be wrong but maybe this is the issue. For me, the query panel is blank. I would attach a screen shot but I'm not sure if this is possible within the forum.

    Kind regards,

    Thomas






    #Db2
    #Support
    #SupportMigration


  • 4.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/04/21 07:33 PM

    Thomas,


    Are you looking at the query panel in the document (that contains all the reports)? Or the query panel in one of the reports used in the document?


    If your document is made up of existing reports, the query panel in the document will be blank. You will need to edit each of the existing reports by opening them in InfoAssist and changing the name as described.


    Best,


    Ann Ciesla






    #Db2
    #Support
    #SupportMigration


  • 5.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/05/21 08:21 AM

    Hi Ann,

    I'm looking at the query panel in the document, not in the individual reports. In fact within InfoAssist I can't see any mention of the reports within the document. I only know they're there by looking in the TextEditor.

    Is there something I can do directly in the TextEditor?

    Many thanks,

    Thomas






    #Db2
    #Support
    #SupportMigration


  • 6.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/05/21 01:17 PM

    Thomas,


    You will need to look at the query panel for the individual reports, NOT the document. Changing the name in the query panel of an individual report will cause that name to show up on the sheets when the document is run.


    That is, you must edit each individual report by opening it in InfoAssist, right clicking on 'Report' in the query panel, clicking 'Rename', then entering the title for your report and clicking 'OK'. Once you have done this for all of the reports used in the document, when you run the document the sheets will be named as expected.






    #Db2
    #Support
    #SupportMigration


  • 7.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/06/21 10:45 AM

    Hi Ann,

    Sorry - it looks like I got confused. Your solution works beautifully!

    Many thanks for your help.

    Kind regards,

    Thomas






    #Db2
    #Support
    #SupportMigration


  • 8.  RE: Compound Document - naming sheets differently
    Best Answer

    Posted 10/06/21 12:29 PM

    Thomas,


    Glad to hear it!


    Best,


    Ann






    #Db2
    #Support
    #SupportMigration