[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Export SQR Report Data to Excel File - Problem inpopulating data in different Cells
- Subject: [sqr-users] Export SQR Report Data to Excel File - Problem inpopulating data in different Cells
- From: Jinesh Shah <jinesh_78in@yahoo.com>
- Date: Wed, 22 Jun 2005 12:38:02 -0700 (PDT)
- Delivery-date: Wed, 22 Jun 2005 14:39:09 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;b=HnPXsljP8FYo8+NW5ir6fTt4FO/SykamAnf2geYWvRyNNJiMOFpMt+hKimIQM3rcb26x1lpirjYOk4z0/u+dkskjh373nzrEcSWq8HWEq+A7eKYwj5490tUAC6MIM7MaKgzzzc7MZ5DUHZihirJ1ZagiPOg82iB8s66HQEI0HAQ=;
- In-reply-to: <42B99F1D.F50E3DB6@umuc.edu>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Hi All,
Any one could help me to create a SQR report, which
will generate a report with the data to be exported in
the Excel sheet.
Here I could able to Create Excel sheet by using ,
OPEN , CLOSE and WRITE function of SQR Language.
But could not able to write differen fields value in
separate cells in the excel sheet. Is there any
delimiter, I need to used beetween two values ?
Following Code I have used in my SQR :
*****************************************
BEGIN-PROCEDURE CREATE_EXCEL
OPEN 'C:\EQUIP_LIST.xls' as 1 for-writing
record=1000:vary status=#filestat
IF #filestat != 0
PRINT 'Unable to Create EQUIP_LIST.xls file on
C:\' (+1,1)
END-IF
END-PROCEDURE
*****************************************
BEGIN-SELECT
eqnum &eqnum
description &description
PRINT &eqnum (+1, {Col1})
PRINT &description ( , {Col2})
LET $eqnum = &eqnum
LET $desc = &description
LET $s = $eqnum || ';' ||$desc
!WRITE 1 FROM $eqnum $desc
WRITE 1 FROM $s
LET #rows_selected = #rows_selected + 1
from [$schema]equipment
where [$where] and rownum < 100
order by 1
END-SELECT
*******************************************
Thanks in advance.
Regards
Jinesh Shah
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users