From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 01 00:00:43 2005 Date: Sat, 1 Jan 2005 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 01 15:21:38 2005 From: "Manuel Basil Arakkal" Subject: RE: [sqr-users] In DB2 $sql-error not displaying the complete error message Date: Sat, 01 Jan 2005 12:19:53 -0800 I had basically added the code with an error in it in my email to display the fact that $sql-error does not give the full description when an error is encountered. You have said that the error message gives enough information. However the error message with the full information was obtained without using the $sql-error. If we use the $sql-error then the error message is not displayed fully and that is my problem. We would like to have $sql-error display the full error message so that we could take action based on the error message. We could use on-error to get information on which row is being processed by the SQR. However since $sql-error does not display the full error in DB2 this is not possible. There should be no problem with using &variables within the SQL statement. These variables are used to pick up values from other SQL statements in the same SQL without assigning them to $variables. There should also be no problem in indenting FROM and WHERE clauses. Manuel RE: [sqr-users] In DB2 $sql-error not displaying the complete error message -------------------------------------------------------------------------------- Subject: RE: [sqr-users] In DB2 $sql-error not displaying the complete error message From: Bob Stone Date: Thu, 2 Dec 2004 08:39:49 -0600 Delivery-date: Thu, 02 Dec 2004 09:40:58 -0500 List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." -------------------------------------------------------------------------------- Well, I think there are a few problems in your code that should help you fix it. The error you get gives you enough information, you just have to read it. It says it found a '[' and the SQR doesn't know what the heck that is. So, you cant have the bracket in there...and, like the SQR, i'm not sure what that is either. It looks like you're trying to check a value, but dont know if it will exists. And if it does not exist, you want to stick the variable in there. Since I dont know DB2, i dont know what the fix is on that. In Oracle you can say select nvl(col1, $var1) ! <-- nvl - if no value (null value) of col1 then use $var1 from table where [$where_clause] -------------the problem of your SQL #ifdef MVS ,\$Incr_Effdt\ ,\#Job_Insert_Effseq\ #else ,[$Incr_Effdt] ,[#Job_Insert_Effseq] #end-if -------------- Another problem in your SQR is at the bottom. Recently someone reread the rules on indentation, and I've already forgotten them, BUT, i'm gonna go ahead and say that you shouldn't have indented the 'FROM' and 'WHERE'. I know its okay to indent the 'AND's (possibly the where too). It maybe be personal preference, but I like to keep my entire SQL statement flush to the left margin...it makes for more easily readable SQR (in my opinion). But the serious problem at the bottom are the &variables you're trying to match against...You cant match against &variables in a SQL clause...you need to have set them up as $variables. (let $var1 = &var1, etc). If you're trying to match them up as a 2 table where clause thing, then include both tables in the FROM, and match them up in the WHERE. Once you figure out that # \\ [] problem up top, unindent your FROM/WHEREs, and set up the variables as $variables, your SQR should work a lot better. You dont necesarily need to get a better error message, you just need to understand the one you got a bit better. When it says 'An unexpected token "[" was found following "" ' and you've got a [ character sitting in your SQL, that should be a clue that it doesn't like that. Also when it says 'SQL: ...WHERE EMPLID = ? AND EMPL_RCD = ? AND EFFDT = ? AND EFFSEQ = ?' you might realize that it couldn't figure out what those &variable were supposed to be. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Manuel Basil Arakkal Sent: Wednesday, December 01, 2004 5:35 PM To: sqr-users@sqrug.org Subject: [sqr-users] In DB2 $sql-error not displaying the complete error message We have this code in our program: Begin-Sql ON-ERROR=KP-SQL-ERROR('PS_JOB_EARNS_DIST - INSERT ',&JOB.EMPLID, #sql-status, $sql-error) INSERT INTO PS_JOB_EARNS_DIST SELECT EMPLID ,EMPL_RCD #ifdef MVS ,\$Incr_Effdt\ ,\#Job_Insert_Effseq\ #else ,[$Incr_Effdt] ,[#Job_Insert_Effseq] #end-if ,DEPTID ,JOBCODE ,POSITION_NBR ,GL_PAY_TYPE ,ACCT_CD ,SHIFT ,LOCATION ,ERNCD ,COMPRATE ,DIST_PCT ,STD_HOURS ,BUSINESS_UNIT FROM PS_JOB_EARNS_DIST WHERE EMPLID = &JOBI.EMPLID AND EMPL_RCD = &JOBI.EMPL_RCD AND EFFDT = &JOBI.EFFDT AND EFFSEQ = &JOBI.EFFSEQ End-Sql Begin-Procedure KP-SQL-ERROR($Table_Name, $Emplid, #sql-status, $sql-error) Let $sql-status = #sql-status Let $error_message = 'FATAL SQL ERROR. Table_Name:' || $Table_Name || 'Emplid: '||$Emplid||'Error: '||$sql-error||' - '||$sql-status Show $error_message Stop End-PROCEDURE which produces the following message in the log file: FATAL SQL ERROR. Table_Name:PS_JOB_EARNS_DIST - INSERT Emplid: KC0007 Error: SQL0518N The statement named in the EXECUTE statement is not in a prepared state or is a SELECT or VALUES statemen - -518.0000000000000000000000000000000000000000000000000 Error on line 3259: (SQR 3301) Program stopped by user request. SQR for PeopleSoft: Program Aborting. The $sql-error varaible does not give the complete error message. When the ON-ERROR code is removed then we get the complete error message from DB2: (SQR 5528) DB2 SQL PREPARE/DECLARE error -104 in cursor 37: SQL0104N An unexpected token "[" was found following "". Expected tokens may include: "( + - ? : CASE CAST USER CURRENT ". SQLSTATE=42601 SQL: INSERT INTO PS_JOB_EARNS_DIST SELECT EMPLID ,EMPL_RCD ,'2000-12-16' ,[? ,DEPTID ,JOBCODE ,POSITION_NBR ,GL_PAY_TYPE ,ACCT_CD ,SHIFT ,LOCATION ,ERNCD ,COMPRATE ,DIST_PCT ,STD_HOURS ,BUSINESS_UNIT FROM PS_JOB_EARNS_DIST WHERE EMPLID = ? AND EMPL_RCD = ? AND EFFDT = ? AND EFFSEQ = ? (SQR 5528) DB2 SQL OPEN/EXECUTE error -518 in cursor 37: SQL0518N The statement named in the EXECUTE statement is not in a prepared state or is a SELECT or VALUES statement. SQLSTATE=07003 Error on line 2536: (SQR 3735) Could not execute SQL. SQR for PeopleSoft: Program Aborting. Is there some way I could get the complete error message from DB2 using ON-ERROR? Thanks, Manuel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------------- Prev by Date: [sqr-users] Printing data in next page using on-break Next by Date: RE: [sqr-users] MAX() Query Previous by thread: [sqr-users] Printing data in next page using on-break Next by thread: [sqr-users] How to extract data in an SQR Indexes: [ Thread] [ Author] [ Date] SQR-USERS List and Archive Info SQRUG Home Page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 01 19:54:49 2005 From: "Steve Cavill" Subject: RE: [sqr-users] In DB2 $sql-error not displaying the complete errormessage Date: Sun, 2 Jan 2005 11:50:04 +1100 Hi Manuel, I think your problem is that you are getting 2 error messages from DB2 and SQR is only displaying the last of the 2. The FIRST error is that the SQL won't compile: (SQR 5528) DB2 SQL PREPARE/DECLARE error -104 in cursor 37: SQL0104N An unexpected token "[" was found following "". Expected tokens may include: "( + - ? : CASE CAST USER CURRENT ". SQLSTATE=42601 The SECOND error is that the SQL can't run (because it is not prepared) (SQR 5528) DB2 SQL OPEN/EXECUTE error -518 in cursor 37: SQL0518N The statement named in the EXECUTE statement is not in a prepared state or is a SELECT or VALUES statement. SQLSTATE=07003 The $sql-error does contain that whole message (although I don't know why it seems to cut off the "t" in "statement". Because there are two errors, the $sql-error from the first error gets overwritten by the 2nd error before SQR gets a chance to report the error. This is normal behaviour for SQR. $sql-error only ever contains the most recent error message. Can you trap the first (prepare) error? I doubt it. If you want to see the full error messages you could use the -s flag which sends to sql to the .err file for later analysis. Note that for runtime error checking I think you are better off using #sql-status, as the messages themselves can contain a lot of variable text which is hard to check for. In your case error -518 indicates the sql could not be compiled. This is not really a "runtime" error as the "[" in your sql will never compile. But you can still print out the values of all the variables yourself to determine what is wrong with the SQL, and keep processing further records. Regarding your actual SQL, I assume that $Incr_Effdt and #Job_Insert_Effseq are hardcoded values you want to use in your select. In which case you should be able to just use the variable names without the [] brackets. The [] syntax only applies in begin-select. And you are right the &variable are fine and the from, where formatting is all irrelevant in a begin-sql block, the special sql formatting rules only apply in BEGIN-SELECT. Cheers, Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Manuel Basil Arakkal Sent: Sunday, 2 January 2005 7:20 AM To: bstone@fastenal.com Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] In DB2 $sql-error not displaying the complete errormessage I had basically added the code with an error in it in my email to display the fact that $sql-error does not give the full description when an error is encountered. You have said that the error message gives enough information. However the error message with the full information was obtained without using the $sql-error. If we use the $sql-error then the error message is not displayed fully and that is my problem. We would like to have $sql-error display the full error message so that we could take action based on the error message. We could use on-error to get information on which row is being processed by the SQR. However since $sql-error does not display the full error in DB2 this is not possible. There should be no problem with using &variables within the SQL statement. These variables are used to pick up values from other SQL statements in the same SQL without assigning them to $variables. There should also be no problem in indenting FROM and WHERE clauses. Manuel RE: [sqr-users] In DB2 $sql-error not displaying the complete error message ---------------------------------------------------------------------------- ---- Subject: RE: [sqr-users] In DB2 $sql-error not displaying the complete error message From: Bob Stone Date: Thu, 2 Dec 2004 08:39:49 -0600 Delivery-date: Thu, 02 Dec 2004 09:40:58 -0500 List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." ---------------------------------------------------------------------------- ---- Well, I think there are a few problems in your code that should help you fix it. The error you get gives you enough information, you just have to read it. It says it found a '[' and the SQR doesn't know what the heck that is. So, you cant have the bracket in there...and, like the SQR, i'm not sure what that is either. It looks like you're trying to check a value, but dont know if it will exists. And if it does not exist, you want to stick the variable in there. Since I dont know DB2, i dont know what the fix is on that. In Oracle you can say select nvl(col1, $var1) ! <-- nvl - if no value (null value) of col1 then use $var1 from table where [$where_clause] -------------the problem of your SQL #ifdef MVS ,\$Incr_Effdt\ ,\#Job_Insert_Effseq\ #else ,[$Incr_Effdt] ,[#Job_Insert_Effseq] #end-if -------------- Another problem in your SQR is at the bottom. Recently someone reread the rules on indentation, and I've already forgotten them, BUT, i'm gonna go ahead and say that you shouldn't have indented the 'FROM' and 'WHERE'. I know its okay to indent the 'AND's (possibly the where too). It maybe be personal preference, but I like to keep my entire SQL statement flush to the left margin...it makes for more easily readable SQR (in my opinion). But the serious problem at the bottom are the &variables you're trying to match against...You cant match against &variables in a SQL clause...you need to have set them up as $variables. (let $var1 = &var1, etc). If you're trying to match them up as a 2 table where clause thing, then include both tables in the FROM, and match them up in the WHERE. Once you figure out that # \\ [] problem up top, unindent your FROM/WHEREs, and set up the variables as $variables, your SQR should work a lot better. You dont necesarily need to get a better error message, you just need to understand the one you got a bit better. When it says 'An unexpected token "[" was found following "" ' and you've got a [ character sitting in your SQL, that should be a clue that it doesn't like that. Also when it says 'SQL: ...WHERE EMPLID = ? AND EMPL_RCD = ? AND EFFDT = ? AND EFFSEQ = ?' you might realize that it couldn't figure out what those &variable were supposed to be. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Manuel Basil Arakkal Sent: Wednesday, December 01, 2004 5:35 PM To: sqr-users@sqrug.org Subject: [sqr-users] In DB2 $sql-error not displaying the complete error message We have this code in our program: Begin-Sql ON-ERROR=KP-SQL-ERROR('PS_JOB_EARNS_DIST - INSERT ',&JOB.EMPLID, #sql-status, $sql-error) INSERT INTO PS_JOB_EARNS_DIST SELECT EMPLID ,EMPL_RCD #ifdef MVS ,\$Incr_Effdt\ ,\#Job_Insert_Effseq\ #else ,[$Incr_Effdt] ,[#Job_Insert_Effseq] #end-if ,DEPTID ,JOBCODE ,POSITION_NBR ,GL_PAY_TYPE ,ACCT_CD ,SHIFT ,LOCATION ,ERNCD ,COMPRATE ,DIST_PCT ,STD_HOURS ,BUSINESS_UNIT FROM PS_JOB_EARNS_DIST WHERE EMPLID = &JOBI.EMPLID AND EMPL_RCD = &JOBI.EMPL_RCD AND EFFDT = &JOBI.EFFDT AND EFFSEQ = &JOBI.EFFSEQ End-Sql Begin-Procedure KP-SQL-ERROR($Table_Name, $Emplid, #sql-status, $sql-error) Let $sql-status = #sql-status Let $error_message = 'FATAL SQL ERROR. Table_Name:' || $Table_Name || 'Emplid: '||$Emplid||'Error: '||$sql-error||' - '||$sql-status Show $error_message Stop End-PROCEDURE which produces the following message in the log file: FATAL SQL ERROR. Table_Name:PS_JOB_EARNS_DIST - INSERT Emplid: KC0007 Error: SQL0518N The statement named in the EXECUTE statement is not in a prepared state or is a SELECT or VALUES statemen - -518.0000000000000000000000000000000000000000000000000 Error on line 3259: (SQR 3301) Program stopped by user request. SQR for PeopleSoft: Program Aborting. The $sql-error varaible does not give the complete error message. When the ON-ERROR code is removed then we get the complete error message from DB2: (SQR 5528) DB2 SQL PREPARE/DECLARE error -104 in cursor 37: SQL0104N An unexpected token "[" was found following "". Expected tokens may include: "( + - ? : CASE CAST USER CURRENT ". SQLSTATE=42601 SQL: INSERT INTO PS_JOB_EARNS_DIST SELECT EMPLID ,EMPL_RCD ,'2000-12-16' ,[? ,DEPTID ,JOBCODE ,POSITION_NBR ,GL_PAY_TYPE ,ACCT_CD ,SHIFT ,LOCATION ,ERNCD ,COMPRATE ,DIST_PCT ,STD_HOURS ,BUSINESS_UNIT FROM PS_JOB_EARNS_DIST WHERE EMPLID = ? AND EMPL_RCD = ? AND EFFDT = ? AND EFFSEQ = ? (SQR 5528) DB2 SQL OPEN/EXECUTE error -518 in cursor 37: SQL0518N The statement named in the EXECUTE statement is not in a prepared state or is a SELECT or VALUES statement. SQLSTATE=07003 Error on line 2536: (SQR 3735) Could not execute SQL. SQR for PeopleSoft: Program Aborting. Is there some way I could get the complete error message from DB2 using ON-ERROR? Thanks, Manuel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------- ---- Prev by Date: [sqr-users] Printing data in next page using on-break Next by Date: RE: [sqr-users] MAX() Query Previous by thread: [sqr-users] Printing data in next page using on-break Next by thread: [sqr-users] How to extract data in an SQR Indexes: [ Thread] [ Author] [ Date] SQR-USERS List and Archive Info SQRUG Home Page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 03 09:17:02 2005 Date: Mon, 3 Jan 2005 06:15:49 -0800 (PST) From: "Nehal H. Patel" Subject: Re: [sqr-users] Executing a Sybase stored procedure from displaying results Thanks for the reply Dattatraya, The stored procedure is simple, it does not take any prams. The stored proc just queries a table and returns the two fields in ASC order. I'd like to display this data. I've never used a stored proc before, in the past i've always used embedded SQL in the SQR. Thanks. -Nehal. --- Dattatraya Shetty wrote: > Hi Neha, > What results would you like to Display ? Is it > output of the Stored > Procedure or else are you going to save the results > into a Temp Table > and want to display that ? > > Please give more details. > Datta. > > --- "Nehal H. Patel" > wrote: > > > Hello, > > I have a stored proc that accepts one parameter > and > > I'd like to display the results. > > > > Does anyone know how and have an example? > > > > Thanks. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn > more. > > http://info.mail.yahoo.com/mail_250 > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced > search. > http://info.mail.yahoo.com/mail_250 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 03 09:54:14 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Executing a Sybase stored procedure from displayi ng results Date: Mon, 3 Jan 2005 08:52:48 -0600 What database are you connecting to? (Oracle, SQL Server, ???) -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Nehal H. Patel Sent: Monday, January 03, 2005 8:16 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Executing a Sybase stored procedure from displaying results Thanks for the reply Dattatraya, The stored procedure is simple, it does not take any prams. The stored proc just queries a table and returns the two fields in ASC order. I'd like to display this data. I've never used a stored proc before, in the past i've always used embedded SQL in the SQR. Thanks. -Nehal. --- Dattatraya Shetty wrote: > Hi Neha, > What results would you like to Display ? Is it > output of the Stored > Procedure or else are you going to save the results > into a Temp Table > and want to display that ? > > Please give more details. > Datta. > > --- "Nehal H. Patel" > wrote: > > > Hello, > > I have a stored proc that accepts one parameter > and > > I'd like to display the results. > > > > Does anyone know how and have an example? > > > > Thanks. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn > more. > > http://info.mail.yahoo.com/mail_250 > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced > search. > http://info.mail.yahoo.com/mail_250 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 03 10:00:05 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Executing a Sybase stored procedure from displayi ng results Date: Mon, 3 Jan 2005 08:58:51 -0600 Sorry folks, its definitely Monday! -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Monday, January 03, 2005 8:53 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Executing a Sybase stored procedure from displayi ng results What database are you connecting to? (Oracle, SQL Server, ???) -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Nehal H. Patel Sent: Monday, January 03, 2005 8:16 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Executing a Sybase stored procedure from displaying results Thanks for the reply Dattatraya, The stored procedure is simple, it does not take any prams. The stored proc just queries a table and returns the two fields in ASC order. I'd like to display this data. I've never used a stored proc before, in the past i've always used embedded SQL in the SQR. Thanks. -Nehal. --- Dattatraya Shetty wrote: > Hi Neha, > What results would you like to Display ? Is it > output of the Stored > Procedure or else are you going to save the results > into a Temp Table > and want to display that ? > > Please give more details. > Datta. > > --- "Nehal H. Patel" > wrote: > > > Hello, > > I have a stored proc that accepts one parameter > and > > I'd like to display the results. > > > > Does anyone know how and have an example? > > > > Thanks. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn > more. > > http://info.mail.yahoo.com/mail_250 > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced > search. > http://info.mail.yahoo.com/mail_250 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 03 15:46:41 2005 Subject: Re: [sqr-users] Executing a Sybase stored procedure from displaying results From: "Richard C Spoth" Date: Mon, 3 Jan 2005 15:47:33 -0500 Use the excute..INTO function. execute SPyourStoreProcedure INTO &First int , &Second int , &Third char(3) Rick "Nehal H. Patel" Sent by: sqr-users-bounces+spoth.richard=healthnow.org@sqrug.org 01/03/2005 09:15 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc: Subject: Re: [sqr-users] Executing a Sybase stored procedure from displaying results Thanks for the reply Dattatraya, The stored procedure is simple, it does not take any prams. The stored proc just queries a table and returns the two fields in ASC order. I'd like to display this data. I've never used a stored proc before, in the past i've always used embedded SQL in the SQR. Thanks. -Nehal. --- Dattatraya Shetty wrote: > Hi Neha, > What results would you like to Display ? Is it > output of the Stored > Procedure or else are you going to save the results > into a Temp Table > and want to display that ? > > Please give more details. > Datta. > > --- "Nehal H. Patel" > wrote: > > > Hello, > > I have a stored proc that accepts one parameter > and > > I'd like to display the results. > > > > Does anyone know how and have an example? > > > > Thanks. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn > more. > > http://info.mail.yahoo.com/mail_250 > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced > search. > http://info.mail.yahoo.com/mail_250 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 14:50:07 2005 Date: Tue, 4 Jan 2005 13:48:59 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Error writing to file Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 14:55:46 2005 Subject: RE: [sqr-users] Error writing to file Date: Tue, 4 Jan 2005 13:55:09 -0600 From: "Knapp, Richard" Must =3D mandatory, no? Today's programmer quiz: What is the largest value that can be stored in 4 bytes? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Tuesday, January 04, 2005 1:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error writing to file Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:00:27 2005 Subject: RE: [sqr-users] Error writing to file Date: Wed, 5 Jan 2005 01:31:37 +0530 From: "Murty Mirthipati Venkata Suryanarayan" This is a multi-part message in MIME format... ------_=_NextPart_001_01C4F298.32C1EBAB Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBkb3VidCBpZiB5b3UgYXJlIGF0dGVtcHRpbmcgdG8gd3JpdGUgdGhlIG51 bWJlciBkaXJlY3RseSB0byBmaWxlLiBUaGlzIHNlZW1zIHRvIGJlIGNvZGUg bGV2ZWwgZXJyb3IuIE5vdCByZWxhdGVkIHRvIHRoZSBkYWJhc2UgbGV2ZWwg KHdpdGggZmllbGQgc2l6ZXMgYW5kIGFsbCkNCiANCldoeSBub3QgeW91IHBv c3QgdGhlIHBvcnRpb24gb2YgY29kZSB0aGF0IHlvdSBhcmUgZmFjaW5nIGVy cm9yIHdpdGg/DQogDQpNdXJ0eSA7KQ0KDQoJLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0gDQoJRnJvbTogS3Jpc2huYSBQcmFzYWQgS29tbXVyaSBbbWFp bHRvOmtvbW11cmlAZ21haWwuY29tXSANCglTZW50OiBUdWUgMDQtSmFuLTIw MDUgMTQ6NDggDQoJVG86IHNxci11c2Vyc0BzcXJ1Zy5vcmcgDQoJQ2M6IA0K CVN1YmplY3Q6IFtzcXItdXNlcnNdIEVycm9yIHdyaXRpbmcgdG8gZmlsZQ0K CQ0KCQ0KDQoJSGksDQoJDQoJICAgICAgIFdoZW4gaSB0cnkgdG8gd3JpdGUg YSBudW1lcmljIHZhcmlhYmxlIG9mIGxlbmd0aCA2LCBpdCBnaXZlcyBtZQ0K CXRoZSBmb2xsb3dpbmcgZXJyb3IuIChTUVIgMzIxMSkgI051bWVyaWMgdmFy aWFibGVzIGFuZCBsaXRlcmFscyBtdXN0DQoJaGF2ZSA6bGVuZ3RoIG9mIDEs IDIgb3IgNCBieXRlcy4NCgkNCgkgICAgICAgIElzIGl0IG1hbmRhdG9yeSB0 byBoYXZlIGEgbnVtZXJpYyB2YXJpYWJsZSBvZiB0aGUgc3BlY2lmaWVkDQoJ bGVuZ3RoICgxLDIgb3IgNCk/DQoJDQoJVGhhbmtzLA0KCQ0KCV9fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJc3Fy LXVzZXJzIG1haWxpbmcgbGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglo dHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vy cw0KCQ0KCQ0KDQo= ------_=_NextPart_001_01C4F298.32C1EBAB Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C4F298.32C1EBAB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C4F298.32C1EBAB-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:07:27 2005 Date: Tue, 04 Jan 2005 15:06:13 -0500 From: "Larry Roux" Subject: RE: [sqr-users] Error writing to file It has been a long time....without using a calculator: 299,451,648? But I think it is +/- 149,725,824 for in integer - Less for a float. Larry Roux Syracuse University lroux@syr.edu >>> KnappR@umsystem.edu 1/4/2005 2:55:09 PM >>> Must = mandatory, no? Today's programmer quiz: What is the largest value that can be stored in 4 bytes? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Tuesday, January 04, 2005 1:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error writing to file Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:12:32 2005 Subject: RE: [sqr-users] Error writing to file Date: Tue, 4 Jan 2005 13:11:17 -0700 From: "Lance Munger" I'll go with 4,294,967,295 ... Lance D. Munger RF4 Developer 303.925.3120 office 720.364.4721 mobile -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of Larry Roux Sent: Tuesday, January 04, 2005 1:06 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Error writing to file It has been a long time....without using a calculator: 299,451,648? But I think it is +/- 149,725,824 for in integer - Less for a float. =20 =20 =20 =20 Larry Roux Syracuse University lroux@syr.edu >>> KnappR@umsystem.edu 1/4/2005 2:55:09 PM >>> Must =3D mandatory, no? Today's programmer quiz: What is the largest value that can be stored in 4 bytes? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Tuesday, January 04, 2005 1:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error writing to file Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:26:11 2005 Subject: RE: [sqr-users] Error writing to file Date: Wed, 5 Jan 2005 02:00:58 +0530 From: "Murty Mirthipati Venkata Suryanarayan" This is a multi-part message in MIME format... ------_=_NextPart_001_01C4F29C.4C7AA755 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBnb3QgaXQuIExhbmNlLCBoYXMgYSBmYXN0ZXIgY2FsY3VsYXRvciB0aGFu IG1pbmUgOykNCk11cnR5IDspDQogDQoNCgktLS0tLU9yaWdpbmFsIE1lc3Nh Z2UtLS0tLSANCglGcm9tOiBMYW5jZSBNdW5nZXIgW21haWx0bzpMYW5jZS5N dW5nZXJAVFEzTmF2aWdhbnQuY29tXSANCglTZW50OiBUdWUgMDQtSmFuLTIw MDUgMTU6MTEgDQoJVG86IFRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBh Ym91dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGluZ2xhbmd1YWdlIGZyb21I eXBlcmlvbiBTb2x1dGlvbnMuIA0KCUNjOiANCglTdWJqZWN0OiBSRTogW3Nx ci11c2Vyc10gRXJyb3Igd3JpdGluZyB0byBmaWxlDQoJDQoJDQoNCglJJ2xs IGdvIHdpdGggNCwyOTQsOTY3LDI5NSAuLi4NCgkNCglMYW5jZSBELiBNdW5n ZXINCglSRjQgRGV2ZWxvcGVyDQoJMzAzLjkyNS4zMTIwIG9mZmljZQ0KCTcy MC4zNjQuNDcyMSBtb2JpbGUNCgkNCgktLS0tLU9yaWdpbmFsIE1lc3NhZ2Ut LS0tLQ0KCUZyb206IHNxci11c2Vycy1ib3VuY2VzK2xhbmNlLm11bmdlcj10 cTNuYXZpZ2FudC5jb21Ac3FydWcub3JnDQoJW21haWx0bzpzcXItdXNlcnMt Ym91bmNlcytsYW5jZS5tdW5nZXI9dHEzbmF2aWdhbnQuY29tQHNxcnVnLm9y Z10gT24NCglCZWhhbGYgT2YgTGFycnkgUm91eA0KCVNlbnQ6IFR1ZXNkYXks IEphbnVhcnkgMDQsIDIwMDUgMTowNiBQTQ0KCVRvOiBzcXItdXNlcnNAc3Fy dWcub3JnDQoJU3ViamVjdDogUkU6IFtzcXItdXNlcnNdIEVycm9yIHdyaXRp bmcgdG8gZmlsZQ0KCQ0KCUl0IGhhcyBiZWVuIGEgbG9uZyB0aW1lLi4uLndp dGhvdXQgdXNpbmcgYSBjYWxjdWxhdG9yOiAyOTksNDUxLDY0OD8gQnV0DQoJ SSB0aGluayBpdCBpcyArLy0gMTQ5LDcyNSw4MjQgZm9yIGluIGludGVnZXIg LSBMZXNzIGZvciBhIGZsb2F0Lg0KCQ0KCQ0KCQ0KCQ0KCQ0KCUxhcnJ5IFJv dXgNCglTeXJhY3VzZSBVbml2ZXJzaXR5DQoJbHJvdXhAc3lyLmVkdQ0KCQ0K CQ0KCT4+PiBLbmFwcFJAdW1zeXN0ZW0uZWR1IDEvNC8yMDA1IDI6NTU6MDkg UE0gPj4+DQoJDQoJDQoJTXVzdCA9IG1hbmRhdG9yeSwgbm8/DQoJDQoJVG9k YXkncyBwcm9ncmFtbWVyIHF1aXo6DQoJV2hhdCBpcyB0aGUgbGFyZ2VzdCB2 YWx1ZSB0aGF0IGNhbiBiZSBzdG9yZWQgaW4gNCBieXRlcz8NCgkNCglSaWNo YXJkIEtuYXBwDQoJRGF0YWJhc2UgUHJvZ3JhbW1lci9BbmFseXN0DQoJSW5z dGl0dXRpb25hbCBSZXNlYXJjaCBhbmQgUGxhbm5pbmcNCglVbml2ZXJzaXR5 IG9mIE1pc3NvdXJpIFN5c3RlbQ0KCTU3My04ODItODg1Ng0KCWtuYXBwckB1 bXN5c3RlbS5lZHUNCgkNCgktLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K CUZyb206IHNxci11c2Vycy1ib3VuY2VzK2tuYXBwcj11bXN5c3RlbS5lZHVA c3FydWcub3JnDQoJW21haWx0bzpzcXItdXNlcnMtYm91bmNlcytrbmFwcHI9 dW1zeXN0ZW0uZWR1QHNxcnVnLm9yZ10gT24gQmVoYWxmIE9mDQoJS3Jpc2hu YSBQcmFzYWQgS29tbXVyaQ0KCVNlbnQ6IFR1ZXNkYXksIEphbnVhcnkgMDQs IDIwMDUgMTo0OSBQTQ0KCVRvOiBzcXItdXNlcnNAc3FydWcub3JnDQoJU3Vi amVjdDogW3Nxci11c2Vyc10gRXJyb3Igd3JpdGluZyB0byBmaWxlDQoJDQoJ SGksDQoJDQoJICAgICAgIFdoZW4gaSB0cnkgdG8gd3JpdGUgYSBudW1lcmlj IHZhcmlhYmxlIG9mIGxlbmd0aCA2LCBpdCBnaXZlcyBtZQ0KCXRoZSBmb2xs b3dpbmcgZXJyb3IuIChTUVIgMzIxMSkgI051bWVyaWMgdmFyaWFibGVzIGFu ZCBsaXRlcmFscyBtdXN0DQoJaGF2ZSA6bGVuZ3RoIG9mIDEsIDIgb3IgNCBi eXRlcy4NCgkNCgkgICAgICAgIElzIGl0IG1hbmRhdG9yeSB0byBoYXZlIGEg bnVtZXJpYyB2YXJpYWJsZSBvZiB0aGUgc3BlY2lmaWVkDQoJbGVuZ3RoICgx LDIgb3IgNCk/DQoJDQoJVGhhbmtzLA0KCQ0KCV9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1h aWxpbmcgbGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3 LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KCV9f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f DQoJc3FyLXVzZXJzIG1haWxpbmcgbGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5v cmcNCglodHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nx ci11c2Vycw0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1haWxpbmcgbGlzdA0KCXNx ci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3LnNxcnVnLm9yZy9tYWls bWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KCV9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1h aWxpbmcgbGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3 LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KCQ0K DQo= ------_=_NextPart_001_01C4F29C.4C7AA755 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C4F29C.4C7AA755 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C4F29C.4C7AA755-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:41:19 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] Error writing to file Date: Tue, 4 Jan 2005 12:39:30 -0800 Do you really want to write the number as a six byte binary number (an integer up to 282 trillion)? Or do you want to write a six digit number, like 123456? The latter is done like so: let $number = edit(#number, '999999') write 1 from $number:6 -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org]On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Tuesday, January 04, 2005 12:02 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error writing to file I doubt if you are attempting to write the number directly to file. This seems to be code level error. Not related to the dabase level (with field sizes and all) Why not you post the portion of code that you are facing error with? Murty ;) -----Original Message----- From: Krishna Prasad Kommuri [mailto:kommuri@gmail.com] Sent: Tue 04-Jan-2005 14:48 To: sqr-users@sqrug.org Cc: Subject: [sqr-users] Error writing to file Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 04 15:59:18 2005 From: "the dragon" Subject: RE: [sqr-users] Error writing to file Date: Tue, 04 Jan 2005 14:57:09 -0600 Turn all numbers into character fields, using an edit mask to get around this. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 10:02:41 2005 From: Bob Stone Subject: RE: [sqr-users] Error writing to file Date: Wed, 5 Jan 2005 09:01:21 -0600 I concur. 4,294,967,295 is the biggest (thats 4,294,967,296 numbers including 0). And if it was signed it would be somewhere between (2,147,483,647, -2,147,483,647) including both a positive and negative 0 (which is just silly). So if you're saying you have a number larger than that which you are trying to print, then you need to use an 8byte number. Dont confusing the number of DIGITS with the number of BYTES...bytes holds lots of digits. My guess is that you have some sort of syntax wrong where YOU think that you're helping it by telling it it's six digits, when in fact you're telling it that it should be 6 bytes. If you want it to print 6 digits every time use an edit mask (like printing the number 123 would be 000123 using 'print #var (+1,1) edit 099999'). Otherwise just print normally. -----Original Message----- I'll go with 4,294,967,295 ... Lance D. Munger -----Original Message----- [mailto:sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org] On Behalf Of Larry Roux It has been a long time....without using a calculator: 299,451,648? But I think it is +/- 149,725,824 for in integer - Less for a float. >>> KnappR@umsystem.edu 1/4/2005 2:55:09 PM >>> Must = mandatory, no? Today's programmer quiz: What is the largest value that can be stored in 4 bytes? -----Original Message----- Hi, When i try to write a numeric variable of length 6, it gives me the following error. (SQR 3211) #Numeric variables and literals must have :length of 1, 2 or 4 bytes. Is it mandatory to have a numeric variable of the specified length (1,2 or 4)? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 11:04:01 2005 Date: Wed, 5 Jan 2005 10:02:48 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Printing report in Landscape Hi All, Could anyone suggest me/give code for printing a report in LANDSCAPE. I tried this code which gives the layout in landscape but while printing the report it is choosing potrait. begin-setup declare-layout default paper-size = (11,8.50) orientation = landscape top-margin = 0.75 bottom-margin = 0.5 left-margin = 0.5 right-margin = 0.5 char-width = 5 end-declare !------------------------------------>I tried doing this but it didnt work out !------------------------------------>so commented these lines. !declare-printer default-hp ! point-size = 5 ! font = 5 !end-declare !declare-report land ! layout = land1 ! printer-type = hp !end-declare end-setup Ant help is appreciated. Thanks in advance. Bye _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 14:26:59 2005 Subject: RE: [sqr-users] Printing report in Landscape Date: Thu, 6 Jan 2005 01:01:33 +0530 From: "Murty Mirthipati Venkata Suryanarayan" This is a multi-part message in MIME format... ------_=_NextPart_001_01C4F35D.29F56BC7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UGFwZXItc2l6ZSBpcyB0aGUgcGFyYW1ldGVyIHRoYXQgZGV0ZXJtaW5lcyB0 aGUgbGF5b3V0IHNpemUuIFRyeSB3aXRoIHNvbWV0aGluZyBsaWtlICg4LjUs MTEpIGFuZCBzZWUgdGhlIHJlc3VsdC4NCiANCk11cnR5IDspDQoNCgktLS0t LU9yaWdpbmFsIE1lc3NhZ2UtLS0tLSANCglGcm9tOiBLcmlzaG5hIFByYXNh ZCBLb21tdXJpIFttYWlsdG86a29tbXVyaUBnbWFpbC5jb21dIA0KCVNlbnQ6 IFdlZCAwNS1KYW4tMjAwNSAxMTowMiANCglUbzogc3FyLXVzZXJzQHNxcnVn Lm9yZyANCglDYzogDQoJU3ViamVjdDogW3Nxci11c2Vyc10gUHJpbnRpbmcg cmVwb3J0IGluIExhbmRzY2FwZQ0KCQ0KCQ0KDQoJSGkgQWxsLA0KCUNvdWxk IGFueW9uZSBzdWdnZXN0IG1lL2dpdmUgY29kZSBmb3IgcHJpbnRpbmcgYSBy ZXBvcnQgaW4gTEFORFNDQVBFLg0KCUkgdHJpZWQgdGhpcyBjb2RlIHdoaWNo IGdpdmVzIHRoZSBsYXlvdXQgaW4gbGFuZHNjYXBlIGJ1dCB3aGlsZQ0KCXBy aW50aW5nIHRoZSByZXBvcnQgaXQgaXMgY2hvb3NpbmcgcG90cmFpdC4NCgkN CgliZWdpbi1zZXR1cA0KCSAgZGVjbGFyZS1sYXlvdXQgZGVmYXVsdA0KCSAg ICAgcGFwZXItc2l6ZSAgPSAoMTEsOC41MCkNCgkgICAgIG9yaWVudGF0aW9u ICA9IGxhbmRzY2FwZQ0KCSAgICAgdG9wLW1hcmdpbiAgID0gMC43NQ0KCSAg ICAgYm90dG9tLW1hcmdpbiAgPSAwLjUNCgkgICAgIGxlZnQtbWFyZ2luICA9 IDAuNQ0KCSAgICAgcmlnaHQtbWFyZ2luID0gMC41DQoJICAgICBjaGFyLXdp ZHRoICA9IDUNCgkgIGVuZC1kZWNsYXJlDQoJIS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLT5JIHRyaWVkIGRvaW5nIHRoaXMgYnV0IGl0 IGRpZG50DQoJd29yayBvdXQgIS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLT5zbyBjb21tZW50ZWQgdGhlc2UNCglsaW5lcy4NCgkgICFk ZWNsYXJlLXByaW50ZXIgZGVmYXVsdC1ocA0KCSAgISAgIHBvaW50LXNpemUg ID0gNQ0KCSAgISAgIGZvbnQgID0gNQ0KCSAgIWVuZC1kZWNsYXJlDQoJICAh ZGVjbGFyZS1yZXBvcnQgbGFuZA0KCSAgISAgIGxheW91dCAgPSBsYW5kMQ0K CSAgISAgIHByaW50ZXItdHlwZSA9IGhwDQoJICAhZW5kLWRlY2xhcmUNCgkg DQoJZW5kLXNldHVwDQoJQW50IGhlbHAgaXMgYXBwcmVjaWF0ZWQuDQoJVGhh bmtzIGluIGFkdmFuY2UuDQoJQnllDQoJDQoJX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCglzcXItdXNlcnMgbWFp bGluZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVnLm9yZw0KCWh0dHA6Ly93d3cu c3FydWcub3JnL21haWxtYW4vbGlzdGluZm8vc3FyLXVzZXJzDQoJDQoJDQoN Cg== ------_=_NextPart_001_01C4F35D.29F56BC7 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C4F35D.29F56BC7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C4F35D.29F56BC7-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 14:42:47 2005 Date: Wed, 05 Jan 2005 13:40:52 -0600 From: "Brooke Funk" Subject: RE: [sqr-users] Printing report in Landscape I find I have to use different font sizes to help direct whether to use landscape or portrait in addition to the paper size. I see you commented out font = 5. We use Kyocera printers and our print page font list says a font of 5 is for portrait but to use the same font but to do it as landscape is a 22. You might try something like that if just changing the paper size doesn't work. >>> murtym@hexaware.com 01/05/05 01:31PM >>> Paper-size is the parameter that determines the layout size. Try with something like (8.5,11) and see the result. Murty ;) -----Original Message----- From: Krishna Prasad Kommuri [mailto:kommuri@gmail.com] Sent: Wed 05-Jan-2005 11:02 To: sqr-users@sqrug.org Cc: Subject: [sqr-users] Printing report in Landscape Hi All, Could anyone suggest me/give code for printing a report in LANDSCAPE. I tried this code which gives the layout in landscape but while printing the report it is choosing potrait. begin-setup declare-layout default paper-size = (11,8.50) orientation = landscape top-margin = 0.75 bottom-margin = 0.5 left-margin = 0.5 right-margin = 0.5 char-width = 5 end-declare !------------------------------------>I tried doing this but it didnt work out !------------------------------------>so commented these lines. !declare-printer default-hp ! point-size = 5 ! font = 5 !end-declare !declare-report land ! layout = land1 ! printer-type = hp !end-declare end-setup Ant help is appreciated. Thanks in advance. Bye _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 17:02:22 2005 Date: Wed, 5 Jan 2005 16:01:10 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Concatenating report files? Hi, How do u concatenate two report files(.lis files that are generated when u execute the sqr) into one in sqr? Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 17:05:52 2005 Subject: RE: [sqr-users] Printing report in Landscape Date: Wed, 5 Jan 2005 16:03:57 -0600 From: "Lindquist, Maria" I would look at the delivered sqc - ptset02.sqc=20 Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Wednesday, January 05, 2005 10:03 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing report in Landscape Hi All, Could anyone suggest me/give code for printing a report in LANDSCAPE. I tried this code which gives the layout in landscape but while printing the report it is choosing potrait. =20 begin-setup declare-layout default paper-size =3D (11,8.50) orientation =3D landscape top-margin =3D 0.75 bottom-margin =3D 0.5 left-margin =3D 0.5 right-margin =3D 0.5 char-width =3D 5 end-declare !------------------------------------>I tried doing this but it didnt work out !------------------------------------>so commented these lines. !declare-printer default-hp ! point-size =3D 5 ! font =3D 5 !end-declare !declare-report land ! layout =3D land1 ! printer-type =3D hp !end-declare =20=20 end-setup Ant help is appreciated. Thanks in advance. Bye _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 17:09:41 2005 Subject: RE: [sqr-users] Printing report in Landscape Date: Wed, 5 Jan 2005 16:04:40 -0600 From: "Lindquist, Maria" Or you can use this include in the beginning of your SQR #Include 'setup32.sqc' !printer and page-size initialization - LANDSCAPE=20 Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Wednesday, January 05, 2005 10:03 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing report in Landscape Hi All, Could anyone suggest me/give code for printing a report in LANDSCAPE. I tried this code which gives the layout in landscape but while printing the report it is choosing potrait. =20 begin-setup declare-layout default paper-size =3D (11,8.50) orientation =3D landscape top-margin =3D 0.75 bottom-margin =3D 0.5 left-margin =3D 0.5 right-margin =3D 0.5 char-width =3D 5 end-declare !------------------------------------>I tried doing this but it didnt work out !------------------------------------>so commented these lines. !declare-printer default-hp ! point-size =3D 5 ! font =3D 5 !end-declare !declare-report land ! layout =3D land1 ! printer-type =3D hp !end-declare =20=20 end-setup Ant help is appreciated. Thanks in advance. Bye _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 17:24:51 2005 Subject: RE: [sqr-users] Printing report in Landscape Date: Wed, 5 Jan 2005 16:23:21 -0600 From: "Schaetzly, Kent" Based on your commented code, your declare-report refers to a layout called= "land1", however you called your layout "default". Try specifying "layout= =3D default" in your declare-report section and use uppercase "orientation= =3D LANDSCAPE" in your declare-layout section. -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Brooke Funk Sent: Wednesday, January 05, 2005 1:41 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Printing report in Landscape I find I have to use different font sizes to help direct whether to use landscape or portrait in addition to the paper size. I see you commented out font =3D 5. We use Kyocera printers and our print page font list says a font of 5 is for portrait but to use the same font but to do it as landscape is a 22. You might try something like that if just changing the paper size doesn't work. >>> murtym@hexaware.com 01/05/05 01:31PM >>> Paper-size is the parameter that determines the layout size. Try with something like (8.5,11) and see the result. =20 Murty ;) -----Original Message-----=20 From: Krishna Prasad Kommuri [mailto:kommuri@gmail.com]=20 Sent: Wed 05-Jan-2005 11:02=20 To: sqr-users@sqrug.org=20 Cc:=20 Subject: [sqr-users] Printing report in Landscape =09 =09 Hi All, Could anyone suggest me/give code for printing a report in LANDSCAPE. I tried this code which gives the layout in landscape but while printing the report it is choosing potrait. =09 begin-setup declare-layout default paper-size =3D (11,8.50) orientation =3D landscape top-margin =3D 0.75 bottom-margin =3D 0.5 left-margin =3D 0.5 right-margin =3D 0.5 char-width =3D 5 end-declare !------------------------------------>I tried doing this but it didnt work out !------------------------------------>so commented these lines. !declare-printer default-hp ! point-size =3D 5 ! font =3D 5 !end-declare !declare-report land ! layout =3D land1 ! printer-type =3D hp !end-declare =09=20 end-setup Ant help is appreciated. Thanks in advance. Bye =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 =09 =09 NOTICE: This e-mail is intended solely for the use of the=20 individual to whom it is addressed and may contain information=20 that is privileged, confidential or otherwise exempt from=20 disclosure. If the reader of this e-mail is not the intended=20 recipient or the employee or agent responsible for delivering=20 the message to the intended recipient, you are hereby notified=20 that any dissemination, distribution, or copying of this=20 communication is strictly prohibited. If you have received this=20 communication in error, please immediately notify us by replying=20 to the original message at the listed e-mail address.=20=20 Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 17:49:09 2005 Subject: RE: [sqr-users] sql-status Date: Wed, 5 Jan 2005 16:48:17 -0600 From: "Turner, Ivan" #sql-status is only good for begin-sql blocks it is not intended for begin-select. For begin-select, you must use a switch/counter variable that is initialized before the select. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of George Jansen Sent: Monday, December 27, 2004 10:12 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] sql-status Something like this is awfully easy to test, isn't it? ************************************ Begin-Program Begin-Select Dummy &dummy >From Dual Where Dummy < 'X' End-Select Display 'No rows case:' Display #sql-status let $bad-identifier =3D 'SCOTT.123' Begin-Select On-Error=3Doops Nocol &nocol >From [$bad-identifier] End-Select End-Program Begin-Procedure oops Display 'Error case: ' Display #sql-status End-Procedure ************************ And yes, the values are database-dependent for the error case. >>> kommuri@gmail.com 12/26/04 9:50 AM >>> Hi, What will be the value in sql-status i) when no rows are fetched in the begin-select block ii) when an error occurs in begin-select? Does the return value depends on the underlying database? We are on Oracle. Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 18:09:14 2005 Date: Wed, 5 Jan 2005 17:07:54 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Error Printing Report in Landscape Hello All, I have tried all alternatives that you guys suggested, but the output that i got was in this format. I really appreciate you guys for your suggestions. Thanks =20=20=20=20=20=20 =20 =1BE=1B&l1O=1B&k8.3333H=1B&l5C=1B(0N=1B(s1P=1B(s5V=1B(s22T =1B&a4L=1B&l5E=1B&a640v180H407930 =1B&a640v780H =1B&a640v930H100 =1B&a640v1530H =1B&a640v1680HAzevedo,Frank =1B&a640v3180H =1B&a640v3330H27-APR-2000 =1B&a640v3930H =1B&a640v4080H05-MAR-2001 =1B&a640v4680H =1B&a640v4830H5 =1B&a640v5430H =1B&a640v5580H05-MAR-2001 =1B&a800v280H =1B&a880v430HTERMINATED =1B&a960v180H1309708 =1B&a960v780H =1B&a960v930H009 =1B&a960v1530H =1B&a960v1680HBegic,Almira =1B&a960v3180H =1B&a960v3330H03-NOV-1999 =1B&a960v3930H =1B&a960v4080H10-MAY-2000 =1B&a960v4680H =1B&a960v4830H5 =1B&a960v5430H =1B&a960v5580H=20 =1B&a1120v280H =1B&a1200v430H26-JUL-2004 =1B&a1280v180H217645 =1B&a1280v780H =1B&a1280v930H100 =1B&a1280v1530H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 18:18:13 2005 Date: Wed, 5 Jan 2005 17:17:08 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Does command line flags affect landscape printing? Hi All Thanks...for your responses I tried including that but cloudnt get the result. Do I need to do any thing else apart from including? My output is something like:instead of getting in the same line.. =1BE=1B&l1O=1B&k8.3333H=1B&l5C=1B(0N=1B(s1P=1B(s5V=1B(s22T =1B&a4L=1B&l5E=1B&a640v180H407930 =1B&a640v780H =1B&a640v930H100 =1B&a640v1530H =1B&a640v1680HAzevedo,Frank =1B&a640v3180H =1B&a640v3330H27-APR-2000 =1B&a640v3930H =1B&a640v4080H05-MAR-2001 =1B&a640v4680H =1B&a640v4830H5 =1B&a640v5430H =1B&a640v5580H05-MAR-2001 =1B&a800v280H =1B&a880v430HTERMINATED =20 Do I need to specify any flags while Iam running through sqrw? Right now Iam giving: =20 N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\sqrw.exe=20 -iN:\hr819830sp1\sqr\;N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\=20 -zifN:\hr819830sp1\sqr\pssqr.ini -fC:\temp\test.lis=20=20=20=20=20=20=20=20 -printer:hp -oc:\temp\sqr.log _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 05 21:31:29 2005 From: "Steve Cavill" Subject: RE: [sqr-users] Does command line flags affect landscape printing? Date: Thu, 6 Jan 2005 13:29:24 +1100 That's HP PCL output only suitable for printing on HP printers. Is that what you actually want? Check the available options for the -printer: flag and check you have the right setting. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Thursday, 6 January 2005 10:17 AM To: sqr-users@sqrug.org Subject: [sqr-users] Does command line flags affect landscape printing? Hi All Thanks...for your responses I tried including that but cloudnt get the result. Do I need to do any thing else apart from including? My output is something like:instead of getting in the same line.. =1BE=1B&l1O=1B&k8.3333H=1B&l5C=1B(0N=1B(s1P=1B(s5V=1B(s22T =1B&a4L=1B&l5E=1B&a640v180H407930 =1B&a640v780H =1B&a640v930H100 =1B&a640v1530H =1B&a640v1680HAzevedo,Frank =1B&a640v3180H =1B&a640v3330H27-APR-2000 =1B&a640v3930H =1B&a640v4080H05-MAR-2001 =1B&a640v4680H =1B&a640v4830H5 =1B&a640v5430H =1B&a640v5580H05-MAR-2001 =1B&a800v280H =1B&a880v430HTERMINATED =20 Do I need to specify any flags while Iam running through sqrw? Right now Iam giving: =20 N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\sqrw.exe -iN:\hr819830sp1\sqr\;N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\ -zifN:\hr819830sp1\sqr\pssqr.ini -fC:\temp\test.lis=20=20=20=20=20=20=20=20 -printer:hp -oc:\temp\sqr.log _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 06 09:02:02 2005 Subject: RE: [sqr-users] Error Printing Report in Landscape Date: Thu, 6 Jan 2005 09:00:33 -0500 From: "Beller, Jay" The first 2 escape sequences shown are the proper codes for PCL in landscap= e mode: E is a reset; &l1O is the request for landscape. If this still isn't working, either your printer doesn't support PCL or som= ething in your environment (e.g., spooling process, printer definitions, et= c) is interfering with the printer receiving the binary data shown. What platform are you running on? -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Krishna Prasad Kommuri Sent: Wednesday, January 05, 2005 6:08 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error Printing Report in Landscape Hello All, I have tried all alternatives that you guys suggested, but the output that i got was in this format. I really appreciate you guys for your suggestions. Thanks =20=20=20=20=20=20 =20 =1BE=1B&l1O=1B&k8.3333H=1B&l5C=1B(0N=1B(s1P=1B(s5V=1B(s22T =1B&a4L=1B&l5E=1B&a640v180H407930 =1B&a640v780H =1B&a640v930H100 =1B&a640v1530H =1B&a640v1680HAzevedo,Frank =1B&a640v3180H =1B&a640v3330H27-APR-2000 =1B&a640v3930H =1B&a640v4080H05-MAR-2001 =1B&a640v4680H =1B&a640v4830H5 =1B&a640v5430H =1B&a640v5580H05-MAR-2001 =1B&a800v280H =1B&a880v430HTERMINATED =1B&a960v180H1309708 =1B&a960v780H =1B&a960v930H009 =1B&a960v1530H =1B&a960v1680HBegic,Almira =1B&a960v3180H =1B&a960v3330H03-NOV-1999 =1B&a960v3930H =1B&a960v4080H10-MAY-2000 =1B&a960v4680H =1B&a960v4830H5 =1B&a960v5430H =1B&a960v5580H=20 =1B&a1120v280H =1B&a1200v430H26-JUL-2004 =1B&a1280v180H217645 =1B&a1280v780H =1B&a1280v930H100 =1B&a1280v1530H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 06 09:16:03 2005 Date: Thu, 06 Jan 2005 09:14:26 -0500 From: "George Jansen" Subject: RE: [sqr-users] sql-status Perhaps you are thinking of #sql-count? #sql-status will reliably report status for queries. With Oracle, it will give a 0 for successful queries and a negative number for errors. A query retrieving no rows is successful, for an empty relation is as we all recall a legitimate relation. >>> Ivan.Turner@qwest.com 1/5/2005 5:48:17 PM >>> #sql-status is only good for begin-sql blocks it is not intended for begin-select. For begin-select, you must use a switch/counter variable that is initialized before the select. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 06 11:27:16 2005 Subject: RE: [sqr-users] Does command line flags affect landscape printing? Date: Thu, 6 Jan 2005 10:26:09 -0600 From: "Lindquist, Maria" I would like to see the section in the program where you have your PRINT lines.=20 Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Wednesday, January 05, 2005 5:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] Does command line flags affect landscape printing? Hi All Thanks...for your responses I tried including that but cloudnt get the result. Do I need to do any thing else apart from including? My output is something like:instead of getting in the same line.. =1BE=1B&l1O=1B&k8.3333H=1B&l5C=1B(0N=1B(s1P=1B(s5V=1B(s22T =1B&a4L=1B&l5E=1B&a640v180H407930 =1B&a640v780H =1B&a640v930H100 =1B&a640v1530H =1B&a640v1680HAzevedo,Frank =1B&a640v3180H =1B&a640v3330H27-APR-2000 =1B&a640v3930H =1B&a640v4080H05-MAR-2001 =1B&a640v4680H =1B&a640v4830H5 =1B&a640v5430H =1B&a640v5580H05-MAR-2001 =1B&a800v280H =1B&a880v430HTERMINATED =20 Do I need to specify any flags while Iam running through sqrw? Right now Iam giving: =20 N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\sqrw.exe -iN:\hr819830sp1\sqr\;N:\hr819830sp1\bin\sqrps\sqr\ora\BINW\ -zifN:\hr819830sp1\sqr\pssqr.ini -fC:\temp\test.lis=20=20=20=20=20=20=20=20 -printer:hp -oc:\temp\sqr.log _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 10 23:51:26 2005 Date: Tue, 11 Jan 2005 12:50:12 +0800 (CST) From: chek hong Subject: [sqr-users] how to call sqr program in Win2k from Unix I have an Unix WEB/Application server and a Win2K sqr report server. How do I call or execute a sqr program in Win2k server from the Unix server besides using the unix command rexec ? Is there an unix version for SQR ? thanks Yahoo! Mobile - Download the latest ringtones, games, and more! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 11 01:31:55 2005 Date: Mon, 10 Jan 2005 22:30:18 -0800 (PST) From: G Azevedo Subject: [sqr-users] How to call sqr program in Win2k from Unix There definitely is a Unix version of SQR (HP-UX at least). I'm sure others can give more details since I only know this from past experience, not currently on this platform. I can't offer anymore details on how to address your request however. ============================================================== Greg G. Azevedo IT & Business Professional o IT Consulting o Business Analysis & Reporting o Customer & Applications Support o Data Warehouse Analyst Email: azevedogg@sbcglobal.net Serving customers and partners is paramount ============================================================== --- chek hong wrote: > I have an Unix WEB/Application server and a Win2K sqr report > server. How do I call or execute a sqr program in Win2k server > from the Unix server besides using the unix command rexec ? > > Is there an unix version for SQR ? > > thanks > > Yahoo! Mobile > - Download the latest ringtones, games, and more! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 11 07:04:33 2005 From: "the dragon" Subject: RE: [sqr-users] how to call sqr program in Win2k from Unix Date: Tue, 11 Jan 2005 06:02:51 -0600 Yes, there is a Unix version of sqr, and that iswhere you should be running your sqr reports. Unix is more secure, faster and more stabile than Windoze products. However, you should, depending on your volume and load, get another Unix server/lpar for your batch processes. If you're using OraSoft, you should be able to configure the PIA to look for the sqrs on the batch server. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have an Unix WEB/Application server and a Win2K sqr report server. How do I call or execute a sqr program in Win2k server from the Unix server besides using the unix command rexec ? Is there an unix version for SQR ? thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 04:41:52 2005 Date: Wed, 12 Jan 2005 15:13:47 +0530 From: "Karunakaran Perumbrayoor" Subject: [sqr-users] Reg Reading FileNames from RemoteServer using PeopleCode Hi All, My Query is connected with PeopleCode. Incase U Guys have an idea = abt this, please respond. I have been trying all possible ways to get a goo= d solution. I am actually writing an AE Program to read the FileNames present in a Remo= teServer Path.=20 I was thinking of using FindFiles PeopleCode Function which fetches the Fil= eNames. But this is not possible without mapping the Drive. Because these Files are present in a Remote Server, I need to pass the User= ID, PassWord etc to access the RemoteServer Path. Once the File Read is successful, I will be storing all these File Names in= a Custom Table. I have to run a process which will FTP all the Files (prom= pted from the Custom Table in the Run Control Page) from the remote server = and load them into the Local Server (FileServer). But that is working... an= d there seems to be no problem with that. The Problem, I am facing at the moment is "Reading the FileNames" from the = Remote Server. I tried using Exec and provided a script for execution... Bu= t it isnt working either. Is there any way by which I can read the FileName= s from Remote Server Path... At present I am trying to use MapNetworkDrive Function present in NetworkDr= iveMapping DLL File. Once the mapping is successful, I think I might be abl= e to use FindFiles... Hope to get some kind of a suggestion or advices from U, on how to proceed = from here on.. Regards... Karun _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 08:10:33 2005 Date: Wed, 12 Jan 2005 08:08:17 -0500 From: "George Jansen" Subject: Re: [sqr-users] Reg Reading FileNames from RemoteServer using PeopleCode "I am writing instructions for my assistant to drive in nails with a screwdriver. Everything's working great, except it's slow, and he gets a sore wrist. Any suggestions for how he might hold the screwdriver differently?" Maybe you need a different tool? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 09:28:04 2005 From: "Ed Kelly" Date: Wed, 12 Jan 2005 14:25:57 +0000 Subject: [sqr-users] SQR Long Names For some reason, SQR is not creating long file names. I have modified theINI file to explicitly define the mode as long. Anyone have an idea what else I could try? SQR for PeopleSoft/8.20.13/PC/Windows NT 4.0/Oracle 8.0.6/Jul 19 2004 The following settings are in both the SQR.INI file in the windows folder and the PSSQR.INI file: [Default Settings] AllowDateAsChar=TRUE output-file-mode=long OutputTwoDigitYearWarningMsg=FALSE UseY2KCenturyAlgorithm=TRUE UseUnicodeInternal=TRUE AutoDetectUnicodeFiles=TRUE _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 09:56:26 2005 From: "Greg Devereaux" Subject: Re: [sqr-users] SQR Long Names Date: Wed, 12 Jan 2005 09:56:34 -0500 Hi Ed, Are you using NTFS or FAT files system with NT? Fat filesystems typically do not support the long filenames properly as compared to NTFS. Greg. ----- Original Message ----- From: "Ed Kelly" To: Sent: Wednesday, January 12, 2005 9:25 AM Subject: [sqr-users] SQR Long Names > For some reason, SQR is not creating long file names. I have modified > theINI file to explicitly define the mode as long. Anyone have an idea > what else I could try? > > > > SQR for PeopleSoft/8.20.13/PC/Windows NT 4.0/Oracle 8.0.6/Jul 19 2004 > > > The following settings are in both the SQR.INI file in the windows folder > and the PSSQR.INI file: > > [Default Settings] > AllowDateAsChar=TRUE > output-file-mode=long > OutputTwoDigitYearWarningMsg=FALSE > UseY2KCenturyAlgorithm=TRUE > UseUnicodeInternal=TRUE > AutoDetectUnicodeFiles=TRUE > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 10:43:19 2005 From: "Ed Kelly" Subject: Re: [sqr-users] SQR Long Names Date: Wed, 12 Jan 2005 15:41:51 +0000 Greg, That could quite possibly be the case. However, since I did not configure this machine, how would I know for sure (i.e., what could I check in order to determine the file system in use)? Thanks, Ed >Hi Ed, > >Are you using NTFS or FAT files system with NT? >Fat filesystems typically do not support the long filenames properly as >compared to NTFS. > >Greg. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 10:51:29 2005 Subject: Re: [sqr-users] SQR Long Names From: CAllo@hinda.com Date: Wed, 12 Jan 2005 09:50:41 -0600 Check Disk Administrator on Windows NT/2K/XP. It will tell you the type of file system on the drive/volume in question. If you do not have access to this Disk Administrator, you may need to get whoever has "admin" access to the local machine, i.e. whoever set it up. Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 11:00:05 2005 From: "Richard C Spoth" Date: Wed, 12 Jan 2005 11:01:14 -0500 Subject: [sqr-users] Is SQR V6.1.3 compatible with Sybase 12.5 Does anyone know if SQR V6.1.3 compatible with Sybase 12.5, both running on AIX 5.2? Is anyone using Sybase 12.5 with SQR V6.1.3? Rick CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 12 11:03:26 2005 From: "Greg Devereaux" Subject: Re: [sqr-users] SQR Long Names Date: Wed, 12 Jan 2005 11:02:59 -0500 Hi Ed, The disk administrator will show you which filesystem the disk was formatted with. You may require the administrator password to use it. You can convert a FAT filesystem to NTFS without a complete rebuild But not convert a NTFS filesystem back to FAT. To see options and syntax for convert do a convert /? in a command window or look it up in help. Let me know if you have any further questions. Greg. ----- Original Message ----- From: "Ed Kelly" To: Sent: Wednesday, January 12, 2005 10:41 AM Subject: Re: [sqr-users] SQR Long Names > Greg, > > That could quite possibly be the case. However, since I did not configure > this machine, how would I know for sure (i.e., what could I check in order > to determine the file system in use)? > > Thanks, > Ed > > >>Hi Ed, >> >>Are you using NTFS or FAT files system with NT? >>Fat filesystems typically do not support the long filenames properly as >>compared to NTFS. >> >>Greg. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 13 17:14:55 2005 Date: Thu, 13 Jan 2005 16:13:47 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Variable Declaration Hi, How to declare the following decimal variables in SQR In COBOL: X PIC 9(10)V9(2) VALUE 0. Y PIC 9(10)V99 VALUE ZEROS. W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. Z PIC S9(10)V9(2) USAGE COMP-3. Any help is appreciated. Thanks in advance, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 13 17:20:24 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Variable Declaration Date: Thu, 13 Jan 2005 16:19:07 -0600 Are you running on a mainframe or are you importing an ebcdic file into Unix or Windows environment? Database is Oracle? -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Thursday, January 13, 2005 4:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] Variable Declaration Hi, How to declare the following decimal variables in SQR In COBOL: X PIC 9(10)V9(2) VALUE 0. Y PIC 9(10)V99 VALUE ZEROS. W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. Z PIC S9(10)V9(2) USAGE COMP-3. Any help is appreciated. Thanks in advance, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 09:21:30 2005 Date: Fri, 14 Jan 2005 08:20:14 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file into Unix > or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 09:42:36 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] RE: Variable Declaration Date: Fri, 14 Jan 2005 08:41:25 -0600 Ok, that helps. I'll assume that you'll be pulling the COBOL files across via a BINARY FTP so the COMP-3 doesn't get pooched when translated. You really don't want to try to read this file directly from SQR. That COMP-3 field has to come across as a binary and will likely contain the binary zero. SQR doesn't handle those well, basically treating them as end-of-line characters and truncating the record. I suggest that you look into something called SQL*Loader which is an data loading utility provided by Oracle (with the install). You would use SQL*Loader to load the data into an Oracle table and then query that from your SQR program. Your Oracle DBA will be able to help set up the control file for SQL*Loader. Its been a while since I worked with mainframe COBOL so there's a certain amount of guessing here but I think your records will look something like this: xxxxxxxxxxxxyyyyyyyyyyyyywwwwwwwwzzzzzzzzzzzzzz 9999999999.99999999999.99-9999.999999999999999F Did they tell you the record length on the COBOL file? Is it 47? Must be more to the record than what you've included. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Friday, January 14, 2005 8:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file > into Unix or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 11:40:59 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Variable Declaration Date: Fri, 14 Jan 2005 08:39:12 -0800 Is Krishna asking how to import data that has been formatted in a specific way, or how to declare variables that have a specific number of digits? I thought it was the latter. SQR usually does not require declarations for string or numeric variables. If numbers have to be formatted for output, we use the edit() function to convert them to a string. -----Original Message----- From: Jeff.Steinfeldt@wellsfargo.com [mailto:Jeff.Steinfeldt@wellsfargo.com] Sent: Friday, January 14, 2005 6:41 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: Variable Declaration Ok, that helps. I'll assume that you'll be pulling the COBOL files across via a BINARY FTP so the COMP-3 doesn't get pooched when translated. You really don't want to try to read this file directly from SQR. That COMP-3 field has to come across as a binary and will likely contain the binary zero. SQR doesn't handle those well, basically treating them as end-of-line characters and truncating the record. I suggest that you look into something called SQL*Loader which is an data loading utility provided by Oracle (with the install). You would use SQL*Loader to load the data into an Oracle table and then query that from your SQR program. Your Oracle DBA will be able to help set up the control file for SQL*Loader. Its been a while since I worked with mainframe COBOL so there's a certain amount of guessing here but I think your records will look something like this: xxxxxxxxxxxxyyyyyyyyyyyyywwwwwwwwzzzzzzzzzzzzzz 9999999999.99999999999.99-9999.999999999999999F Did they tell you the record length on the COBOL file? Is it 47? Must be more to the record than what you've included. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Friday, January 14, 2005 8:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file > into Unix or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 11:48:13 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] RE: Variable Declaration Date: Fri, 14 Jan 2005 10:46:39 -0600 Well, true, he asked how to declare the variables but the short answer is that you can't declare anything in SQR that will allow you to read a file containing a COBOL COMP-3 data type. File either needs to be pure ASCII to read from SQR or must be converted to compatible data types in some other fashion. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, January 14, 2005 10:39 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Variable Declaration Is Krishna asking how to import data that has been formatted in a specific way, or how to declare variables that have a specific number of digits? I thought it was the latter. SQR usually does not require declarations for string or numeric variables. If numbers have to be formatted for output, we use the edit() function to convert them to a string. -----Original Message----- From: Jeff.Steinfeldt@wellsfargo.com [mailto:Jeff.Steinfeldt@wellsfargo.com] Sent: Friday, January 14, 2005 6:41 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: Variable Declaration Ok, that helps. I'll assume that you'll be pulling the COBOL files across via a BINARY FTP so the COMP-3 doesn't get pooched when translated. You really don't want to try to read this file directly from SQR. That COMP-3 field has to come across as a binary and will likely contain the binary zero. SQR doesn't handle those well, basically treating them as end-of-line characters and truncating the record. I suggest that you look into something called SQL*Loader which is an data loading utility provided by Oracle (with the install). You would use SQL*Loader to load the data into an Oracle table and then query that from your SQR program. Your Oracle DBA will be able to help set up the control file for SQL*Loader. Its been a while since I worked with mainframe COBOL so there's a certain amount of guessing here but I think your records will look something like this: xxxxxxxxxxxxyyyyyyyyyyyyywwwwwwwwzzzzzzzzzzzzzz 9999999999.99999999999.99-9999.999999999999999F Did they tell you the record length on the COBOL file? Is it 47? Must be more to the record than what you've included. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Friday, January 14, 2005 8:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file > into Unix or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 13:10:09 2005 Date: Fri, 14 Jan 2005 11:09:26 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] RE: Variable Declaration If you are rewriting these old COBOL programs in SQR, try to avoid using the equivalent of COMP and COMP-3 fields if you can! Just read and write numbers as normal strings and convert them to/from numbers as needed using normal SQR functions such as EDIT() and TO_NUMBER(), as Steve suggested. If you really, really need to read or write "mainframe" files directly, there are a few things to keep in mind. As Jeff pointed out, you must FTP the input file without using the ASCII/CRLF options, which translate the data from EBCDIC to ASCII but will destroy any COMP or COMP-3 data. You need an exact copy of the file without translation. However, that still leaves you with two problems. First, all text fields will still be in EBCDIC (assuming the file is from an EBCDIC-based mainframe) and your SQR program must translate them to ASCII. That's not too difficult. The second problem has to do with the binary COMP and packed COMP-3 fields. Again, as Jeff mentioned, these will contain binary zero bytes and therefore cannot be read by SQR as strings. The secret to dealing with these is to read the file, one character at a time, reading each character into a numeric #variable. (Go back and reread the first sentence of this email before continuing.) Open the file as RECORD=1:FIXED-NOLF . Then READ 1 INTO #CHAR:1 to get each character, which could be a 0 or any other number. If it's a binary field you are handling, do the math to get the value of the entire field. If it's packed (COMP-3) or zoned (PIC S999 DISPLAY), you need to pay special attention to the last byte, which encodes the sign. When I worked at PeopleSoft I created an SQC containing procedures for reading and writing binary, packed, zoned and EBCDIC text fields, but it's probably lost by now. I just checked Tony DeLia's site and there are links to something similar, but the links seem to be broken. (Anybody know what happened to him?) It isn't too difficult to do, IF you have a good understanding of these formats on the mainframe and use the one-character numeric variable trick. Sorry about this. If Jeff's idea about loading the data into a table works for you, that's far better than trying to code this! Kevin Reschenberg SparkPath Technologies, Inc. sqr-info.com www.sparkpath.com www.sqr-info.com -------- Original Message -------- Subject: RE: [sqr-users] RE: Variable Declaration From: Jeff.Steinfeldt@wellsfargo.com Date: Fri, January 14, 2005 8:46 am To: sqr-users@sqrug.org Well, true, he asked how to declare the variables but the short answer is that you can't declare anything in SQR that will allow you to read a file containing a COBOL COMP-3 data type. File either needs to be pure ASCII to read from SQR or must be converted to compatible data types in some other fashion. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, January 14, 2005 10:39 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Variable Declaration Is Krishna asking how to import data that has been formatted in a specific way, or how to declare variables that have a specific number of digits? I thought it was the latter. SQR usually does not require declarations for string or numeric variables. If numbers have to be formatted for output, we use the edit() function to convert them to a string. -----Original Message----- From: Jeff.Steinfeldt@wellsfargo.com [mailto:Jeff.Steinfeldt@wellsfargo.com] Sent: Friday, January 14, 2005 6:41 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: Variable Declaration Ok, that helps. I'll assume that you'll be pulling the COBOL files across via a BINARY FTP so the COMP-3 doesn't get pooched when translated. You really don't want to try to read this file directly from SQR. That COMP-3 field has to come across as a binary and will likely contain the binary zero. SQR doesn't handle those well, basically treating them as end-of-line characters and truncating the record. I suggest that you look into something called SQL*Loader which is an data loading utility provided by Oracle (with the install). You would use SQL*Loader to load the data into an Oracle table and then query that from your SQR program. Your Oracle DBA will be able to help set up the control file for SQL*Loader. Its been a while since I worked with mainframe COBOL so there's a certain amount of guessing here but I think your records will look something like this: xxxxxxxxxxxxyyyyyyyyyyyyywwwwwwwwzzzzzzzzzzzzzz 9999999999.99999999999.99-9999.999999999999999F Did they tell you the record length on the COBOL file? Is it 47? Must be more to the record than what you've included. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Friday, January 14, 2005 8:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file > into Unix or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 13:24:07 2005 Date: Fri, 14 Jan 2005 13:22:10 -0500 From: "George Jansen" Subject: RE: [sqr-users] RE: Variable Declaration Syncsort, www.syncsort.com, sells a product called FilePort, which is intended to do just this. I don't know what they get for it, but their (outstanding) sort product is pretty reasonable. It might well pay for itself in time saved, compared to rolling your own. I see that they'll let you download a trial copy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 14 13:28:51 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] RE: Variable Declaration Date: Fri, 14 Jan 2005 12:27:33 -0600 I guess the ultimate would be to ask the mainframe people to write you the file as text. Then it could be FTPd without worrying about translation problems and you could field map the file and TO_NUMBER() as needed after reading a record. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of kevin.reschenberg@sparkpath.com Sent: Friday, January 14, 2005 12:09 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: Variable Declaration If you are rewriting these old COBOL programs in SQR, try to avoid using the equivalent of COMP and COMP-3 fields if you can! Just read and write numbers as normal strings and convert them to/from numbers as needed using normal SQR functions such as EDIT() and TO_NUMBER(), as Steve suggested. If you really, really need to read or write "mainframe" files directly, there are a few things to keep in mind. As Jeff pointed out, you must FTP the input file without using the ASCII/CRLF options, which translate the data from EBCDIC to ASCII but will destroy any COMP or COMP-3 data. You need an exact copy of the file without translation. However, that still leaves you with two problems. First, all text fields will still be in EBCDIC (assuming the file is from an EBCDIC-based mainframe) and your SQR program must translate them to ASCII. That's not too difficult. The second problem has to do with the binary COMP and packed COMP-3 fields. Again, as Jeff mentioned, these will contain binary zero bytes and therefore cannot be read by SQR as strings. The secret to dealing with these is to read the file, one character at a time, reading each character into a numeric #variable. (Go back and reread the first sentence of this email before continuing.) Open the file as RECORD=1:FIXED-NOLF . Then READ 1 INTO #CHAR:1 to get each character, which could be a 0 or any other number. If it's a binary field you are handling, do the math to get the value of the entire field. If it's packed (COMP-3) or zoned (PIC S999 DISPLAY), you need to pay special attention to the last byte, which encodes the sign. When I worked at PeopleSoft I created an SQC containing procedures for reading and writing binary, packed, zoned and EBCDIC text fields, but it's probably lost by now. I just checked Tony DeLia's site and there are links to something similar, but the links seem to be broken. (Anybody know what happened to him?) It isn't too difficult to do, IF you have a good understanding of these formats on the mainframe and use the one-character numeric variable trick. Sorry about this. If Jeff's idea about loading the data into a table works for you, that's far better than trying to code this! Kevin Reschenberg SparkPath Technologies, Inc. sqr-info.com www.sparkpath.com www.sqr-info.com -------- Original Message -------- Subject: RE: [sqr-users] RE: Variable Declaration From: Jeff.Steinfeldt@wellsfargo.com Date: Fri, January 14, 2005 8:46 am To: sqr-users@sqrug.org Well, true, he asked how to declare the variables but the short answer is that you can't declare anything in SQR that will allow you to read a file containing a COBOL COMP-3 data type. File either needs to be pure ASCII to read from SQR or must be converted to compatible data types in some other fashion. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, January 14, 2005 10:39 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Variable Declaration Is Krishna asking how to import data that has been formatted in a specific way, or how to declare variables that have a specific number of digits? I thought it was the latter. SQR usually does not require declarations for string or numeric variables. If numbers have to be formatted for output, we use the edit() function to convert them to a string. -----Original Message----- From: Jeff.Steinfeldt@wellsfargo.com [mailto:Jeff.Steinfeldt@wellsfargo.com] Sent: Friday, January 14, 2005 6:41 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: Variable Declaration Ok, that helps. I'll assume that you'll be pulling the COBOL files across via a BINARY FTP so the COMP-3 doesn't get pooched when translated. You really don't want to try to read this file directly from SQR. That COMP-3 field has to come across as a binary and will likely contain the binary zero. SQR doesn't handle those well, basically treating them as end-of-line characters and truncating the record. I suggest that you look into something called SQL*Loader which is an data loading utility provided by Oracle (with the install). You would use SQL*Loader to load the data into an Oracle table and then query that from your SQR program. Your Oracle DBA will be able to help set up the control file for SQL*Loader. Its been a while since I worked with mainframe COBOL so there's a certain amount of guessing here but I think your records will look something like this: xxxxxxxxxxxxyyyyyyyyyyyyywwwwwwwwzzzzzzzzzzzzzz 9999999999.99999999999.99-9999.999999999999999F Did they tell you the record length on the COBOL file? Is it 47? Must be more to the record than what you've included. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Krishna Prasad Kommuri Sent: Friday, January 14, 2005 8:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Variable Declaration We are on Oracle and we operate on Windows Environment. We are converting COBOL program which were previous run on mainframe into SQR. Please let me know if you need further details. Thanks, On Fri, 14 Jan 2005 06:04:23 -0500, sqr-users-request@sqrug.org wrote: > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. Variable Declaration (Krishna Prasad Kommuri) > 2. RE: Variable Declaration (Jeff.Steinfeldt@wellsfargo.com) > > > > ---------- Forwarded message ---------- > From: Krishna Prasad Kommuri > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:13:47 -0600 > Subject: [sqr-users] Variable Declaration > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > > > ---------- Forwarded message ---------- > From: Jeff.Steinfeldt@wellsfargo.com > To: sqr-users@sqrug.org > Date: Thu, 13 Jan 2005 16:19:07 -0600 > Subject: RE: [sqr-users] Variable Declaration > Are you running on a mainframe or are you importing an ebcdic file > into Unix or Windows environment? Database is Oracle? > > -----Original Message----- > From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org > [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On > Behalf Of Krishna Prasad Kommuri > Sent: Thursday, January 13, 2005 4:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Variable Declaration > > Hi, > How to declare the following decimal variables in SQR > In COBOL: X PIC 9(10)V9(2) VALUE 0. > Y PIC 9(10)V99 VALUE ZEROS. > W PIC S9(4)V99 SIGN IS LEADING, SEPARATE. > Z PIC S9(10)V9(2) USAGE COMP-3. > > Any help is appreciated. > Thanks in advance, > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 17 17:47:20 2005 From: "tam kag" Date: Mon, 17 Jan 2005 22:45:06 +0000 Subject: [sqr-users] Exception Reports Hi, What is the diffrence between A regular sqr report and an sqr exception report. and what are the steps to build an exception report Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 11:49:25 2005 Date: Tue, 18 Jan 2005 11:48:13 -0500 From: "Ilko, Holli" Subject: [sqr-users] Controlling Printing Properties in Excel Hello. Using SQR, we have created a .csv file. Does anyone know if it is possible= to then control the printing properties of the spreadsheet using SQR? We'= d like to force it to be set to landscape and we would also like to force i= t to fit to one page rather than having the users change these settings man= ually once they have opened the spreadsheet. Any suggestions??? Thanks, Holli _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 12:14:19 2005 From: Bob Stone Subject: RE: [sqr-users] Controlling Printing Properties in Excel Date: Tue, 18 Jan 2005 11:13:09 -0600 I've dealt a bit with making Excel reports using SQR, and I've found that a lot of those settings cannot be set programmatically. I recently tried to, and couldn't figure out how, what, or where they were being set. What we did was create the formatted excel file just the way we wanted and looked at it as text. Then when we create the csv file from SQR we recreate that text formatting, and the output opens in Excel. However, when we made changes of headings, paper view, paper size, force to fit one page, etc the csv text version of the file was the exact same as before the change. We couldn't recreate those settings. I'm not sure what excel does with those settings or where they are. I think the problem is that the excel spreadsheet we can actually recreate is a simple version in excel. And all those other settings are more complicated properties that only show up in the more complex files handled by excel (such as excel v.2000, excel v.XP, etc). Once the file is opened you can set the settings because it will open the simple file in a complex file format. I could be slightly off-base here, but I think it cannot currently be done in the SQR itself. Our solution was that if a user wanted to actually print the report out, they would need to mess with some of those settings themselves. If it's a big deal, you might make up a document suggesting all the settings they'd need to tinker with to get the report to print out well. We think that most of our users will just view the electronic copy of those reports, so it's not a big deal. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Ilko, Holli Sent: Tuesday, January 18, 2005 10:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Controlling Printing Properties in Excel Hello. Using SQR, we have created a .csv file. Does anyone know if it is possible to then control the printing properties of the spreadsheet using SQR? We'd like to force it to be set to landscape and we would also like to force it to fit to one page rather than having the users change these settings manually once they have opened the spreadsheet. Any suggestions??? Thanks, Holli _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 14:46:26 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Controlling Printing Properties in Excel Date: Tue, 18 Jan 2005 13:45:12 -0600 Are you running in a Windows environment? -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Ilko, Holli Sent: Tuesday, January 18, 2005 10:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Controlling Printing Properties in Excel Hello. Using SQR, we have created a .csv file. Does anyone know if it is possible to then control the printing properties of the spreadsheet using SQR? We'd like to force it to be set to landscape and we would also like to force it to fit to one page rather than having the users change these settings manually once they have opened the spreadsheet. Any suggestions??? Thanks, Holli _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 14:51:22 2005 Subject: RE: [sqr-users] Controlling Printing Properties in Excel Date: Tue, 18 Jan 2005 14:50:16 -0500 From: "Ilko, Holli" No, the process is running on UNIX. -----Original Message----- From: sqr-users-bounces+hilko=3Dkichler.com@sqrug.org [mailto:sqr-users-bounces+hilko=3Dkichler.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Tuesday, January 18, 2005 2:45 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Controlling Printing Properties in Excel Are you running in a Windows environment? -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=3Dwellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=3Dwellsfargo.com@sqrug.org] On Behalf Of Ilko, Holli Sent: Tuesday, January 18, 2005 10:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Controlling Printing Properties in Excel Hello. Using SQR, we have created a .csv file. Does anyone know if it is possible to then control the printing properties of the spreadsheet using SQR? We'd like to force it to be set to landscape and we would also like to force it to fit to one page rather than having the users change these settings manually once they have opened the spreadsheet. Any suggestions??? Thanks, Holli _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 14:56:56 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Controlling Printing Properties in Excel Date: Tue, 18 Jan 2005 13:55:39 -0600 Pity. I've got a VB script that will run under the Windows Scripting Host and convert a CSV to an XLS while adding whatever page formatting you desire. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Ilko, Holli Sent: Tuesday, January 18, 2005 1:50 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Controlling Printing Properties in Excel No, the process is running on UNIX. -----Original Message----- From: sqr-users-bounces+hilko=kichler.com@sqrug.org [mailto:sqr-users-bounces+hilko=kichler.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Tuesday, January 18, 2005 2:45 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Controlling Printing Properties in Excel Are you running in a Windows environment? -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Ilko, Holli Sent: Tuesday, January 18, 2005 10:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Controlling Printing Properties in Excel Hello. Using SQR, we have created a .csv file. Does anyone know if it is possible to then control the printing properties of the spreadsheet using SQR? We'd like to force it to be set to landscape and we would also like to force it to fit to one page rather than having the users change these settings manually once they have opened the spreadsheet. Any suggestions??? Thanks, Holli _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 16:23:13 2005 Date: Tue, 18 Jan 2005 16:22:02 -0500 From: Andy.Cook Subject: [sqr-users] Running sqrmake & receiving error Today I added a new user function to the UFUNC.C file in the /lib directory. The instructions (that I can find...please tell me if this is the wrong step) say to then relink SQR by running sqrmake. When I try to run sqrmake I get the following error: sqrmake: make: not found At the end of the sqrmake file I see where it calls "make", but I do not see a file called this and I have searched all directories. I see the file called makefile, but I don't see anything that says this is the file I need. If anyone could provide me with how to correctly relink SQR (on a UNIX server) it would be much appreciated. Thanks in advance for any help you provide Andy Cook Systems Engineer Advanced Technical Solutions (978) 849-0533 ext. 259 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 20:37:47 2005 Date: Tue, 18 Jan 2005 20:36:19 -0500 From: "George Jansen" Subject: Re: [sqr-users] Running sqrmake & receiving error Typically "make" in in /usr/ccs/bin. Try PATH=$PATH:/usr/ccs/bin >>> Andy.Cook@atsusa.com 01/18/05 4:22 PM >>> Today I added a new user function to the UFUNC.C file in the /lib directory. The instructions (that I can find...please tell me if this is the wrong step) say to then relink SQR by running sqrmake. When I try to run sqrmake I get the following error: sqrmake: make: not found At the end of the sqrmake file I see where it calls "make", but I do not see a file called this and I have searched all directories. I see the file called makefile, but I don't see anything that says this is the file I need. If anyone could provide me with how to correctly relink SQR (on a UNIX server) it would be much appreciated. Thanks in advance for any help you provide Andy Cook Systems Engineer Advanced Technical Solutions (978) 849-0533 ext. 259 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jan 18 23:43:19 2005 Date: Wed, 19 Jan 2005 12:42:09 +0800 (CST) From: chek hong Subject: [sqr-users] How to print characters in italic in sqr programming? How to print characters in italic in sqr programming ? Thanks Yahoo! Mobile - Download the latest ringtones, games, and more! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 00:10:57 2005 Date: Wed, 19 Jan 2005 15:10:40 +1000 From: "Graeme Steyn " Subject: [sqr-users] (no subject) Hi, =20 I am currently experiencing a problem attempting to produce page numbers in the format "page x of n" for a report header, where the report contains multiple statements. The SQR process is generating a batch of statements, all of which are processed and output to the same .lis file to make printing the batch easier (i.e new-page forced between statements and #page-count reset). The problem is that I have no easy way of determining how many pages are going to be printed per statement within the batch. Using Last-Page and manipulating #page-count as shown in the following code, does not provide a solution: =20 begin-heading 1 page-number (1,1) 'Page ' last-page () ' of ' '.' end-heading =20 begin-program print 'Header should read: Page 1 of 2.' (10, 10) print 'Statement 1' (11,10) new-page print 'Header should read: Page 2 of 2' (10,10) print 'Statement 1' (11,10) new-page move 1 to #page-count !reset page counter. print 'Header should read: Page 1 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 2 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 3 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 4 of 4' (10,10) print 'Statement 2' (11,10)=20 end-program =20 This generates the following result: =20 Statement 1: 2 pages Header reads Page 2 of 4, when it should be Page 2 of 2.=20=20=20=20 Statement 2: 4 pages Header correct for page x of 4. =20 The second statement in the .lis file thus has the correct number of pages, however, the first statement in the .lis file has its total number of pages shown as being 4 (the last value of #page-count when the report was completed). If you have n statements in the batch, then all statement headers will have the total number of pages determined by the last statement generated in the process. Does anyone have a simple solution for this problem? I wish to avoid having to do complex calculations to pre-determine the number of pages that will be used by any statement. I would also like to avoid creating a single file per statements using the new-report command. =20 Details of the platform that I am running this on appear as follows: =20 Platform: WINDOWS-XP Professional Version 2002 SP1 SQR Version: SQR for PeopleSoft/8.44.12 /PC/Windows NT 4.0/Oracle 8.0.6/Jul 13 2004 Database: Oracle 9.2.0.1 Application: PeopleSoft 8.44.12 Thank you. =20 Regards, =20 Graeme Steyn=20 Corporate Information Systems=20 Information Technology Division=20 Central Queensland University=20 Tel: +61 7 4930 9256=20 E-mail: g.steyn@cqu.edu.au=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 00:14:17 2005 Date: Wed, 19 Jan 2005 15:13:49 +1000 From: "Graeme Steyn " Subject: [sqr-users] SQR Page x of n for multiple reports in a single LIS file. Hi, =20 I am currently experiencing a problem attempting to produce page numbers in the format "page x of n" for a report header, where the report contains multiple statements. The SQR process is generating a batch of statements, all of which are processed and output to the same .lis file to make printing the batch easier (i.e new-page forced between statements and #page-count reset). The problem is that I have no easy way of determining how many pages are going to be printed per statement within the batch. Using Last-Page and manipulating #page-count as shown in the following code, does not provide a solution: =20 begin-heading 1 page-number (1,1) 'Page ' last-page () ' of ' '.' end-heading =20 begin-program print 'Header should read: Page 1 of 2.' (10, 10) print 'Statement 1' (11,10) new-page print 'Header should read: Page 2 of 2' (10,10) print 'Statement 1' (11,10) new-page move 1 to #page-count !reset page counter. print 'Header should read: Page 1 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 2 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 3 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 4 of 4' (10,10) print 'Statement 2' (11,10)=20 end-program =20 This generates the following result: =20 Statement 1: 2 pages Header reads Page 2 of 4, when it should be Page 2 of 2.=20=20=20=20 Statement 2: 4 pages Header correct for page x of 4. =20 The second statement in the .lis file thus has the correct number of pages, however, the first statement in the .lis file has its total number of pages shown as being 4 (the last value of #page-count when the report was completed). If you have n statements in the batch, then all statement headers will have the total number of pages determined by the last statement generated in the process. Does anyone have a simple solution for this problem? I wish to avoid having to do complex calculations to pre-determine the number of pages that will be used by any statement. I would also like to avoid creating a single file per statements using the new-report command. =20 Details of the platform that I am running this on appear as follows: =20 Platform: WINDOWS-XP Professional Version 2002 SP1 SQR Version: SQR for PeopleSoft/8.44.12 /PC/Windows NT 4.0/Oracle 8.0.6/Jul 13 2004 Database: Oracle 9.2.0.1 Application: PeopleSoft 8.44.12 Thank you. =20 Regards, =20 Graeme Steyn=20 Corporate Information Systems=20 Information Technology Division=20 Central Queensland University=20 Tel: +61 7 4930 9256=20 E-mail: g.steyn@cqu.edu.au=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 00:18:30 2005 Subject: Re: [sqr-users] How to print characters in italic in sqr programming? From: Soumya.Sankaran@blr.hexaware.com Date: Wed, 19 Jan 2005 10:52:31 +0530 Hi, In the PSSQR.INI file, 32 is defined as Times-Italic and 3200=Times-BoldItalic, You can print in Times Italic by using it before the print statement: ALTER-PRINTER FONT=32 POINT-SIZE=9 Hope this helps.. Regards Soumya chek hong Sent by: sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org 19-01-2005 10:12 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] How to print characters in italic in sqr programming? How to print characters in italic in sqr programming ? Thanks Yahoo! Mobile - Download the latest ringtones, games, and more! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 06:31:28 2005 From: "Steve Cavill" Subject: RE: [sqr-users] (no subject) Date: Wed, 19 Jan 2005 22:28:53 +1100 Hi Graeme, Look at the set-delay-print command and the delay option of the print command. This lets you print a "place-holder" for the "of n" part of your report. When you have printed the last page of the statement you use the set-delay-print command to go back and fill in the page count on the pages you have already printed. Cheers, Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Graeme Steyn Sent: Wednesday, 19 January 2005 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] (no subject) Hi, I am currently experiencing a problem attempting to produce page numbers in the format "page x of n" for a report header, where the report contains multiple statements. The SQR process is generating a batch of statements, all of which are processed and output to the same .lis file to make printing the batch easier (i.e new-page forced between statements and #page-count reset). The problem is that I have no easy way of determining how many pages are going to be printed per statement within the batch. Using Last-Page and manipulating #page-count as shown in the following code, does not provide a solution: begin-heading 1 page-number (1,1) 'Page ' last-page () ' of ' '.' end-heading begin-program print 'Header should read: Page 1 of 2.' (10, 10) print 'Statement 1' (11,10) new-page print 'Header should read: Page 2 of 2' (10,10) print 'Statement 1' (11,10) new-page move 1 to #page-count !reset page counter. print 'Header should read: Page 1 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 2 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 3 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 4 of 4' (10,10) print 'Statement 2' (11,10) end-program This generates the following result: Statement 1: 2 pages Header reads Page 2 of 4, when it should be Page 2 of 2. Statement 2: 4 pages Header correct for page x of 4. The second statement in the .lis file thus has the correct number of pages, however, the first statement in the .lis file has its total number of pages shown as being 4 (the last value of #page-count when the report was completed). If you have n statements in the batch, then all statement headers will have the total number of pages determined by the last statement generated in the process. Does anyone have a simple solution for this problem? I wish to avoid having to do complex calculations to pre-determine the number of pages that will be used by any statement. I would also like to avoid creating a single file per statements using the new-report command. Details of the platform that I am running this on appear as follows: Platform: WINDOWS-XP Professional Version 2002 SP1 SQR Version: SQR for PeopleSoft/8.44.12 /PC/Windows NT 4.0/Oracle 8.0.6/Jul 13 2004 Database: Oracle 9.2.0.1 Application: PeopleSoft 8.44.12 Thank you. Regards, Graeme Steyn Corporate Information Systems Information Technology Division Central Queensland University Tel: +61 7 4930 9256 E-mail: g.steyn@cqu.edu.au _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 10:09:02 2005 From: fschiff@metlife.com Date: Wed, 19 Jan 2005 09:56:22 -0500 Subject: [sqr-users] need assistance with error: Cannot open the printer file I have sqr reports which create many reports via a queue mechanism. Stripped to essentials this is the outer loop: begin-procedure outer begin-select job_id company_id file_name gen_name do init-report ! does new-report, etc. do report_section ! actual selects and print statements do done-report ! cleanup including change value of job_status field in table ic_report_job from ic_report_job where rpt_type='{rpt_type}' and job_step='Creating' and job_status = 'Active' and as_of = $actdate end-select end-procedure I often get this error, after the outer loop has gone through many reports. (SQR 6002) Cannot open the printer file: ABC_02331375.spf (2): No such file or directory There does not seem to be any reason for this and I can't track it down. Any thoughts or a workaround to have it reset itself? Fred Schiff Information Systems Consultant Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 10:33:03 2005 Subject: RE: [sqr-users] need assistance with error: Cannot open the printer file Date: Wed, 19 Jan 2005 09:32:25 -0600 From: "Knapp, Richard" My guess would be that the OS is printing the contents of the file then deleting it. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of fschiff@metlife.com Sent: Wednesday, January 19, 2005 8:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] need assistance with error: Cannot open the printer file I have sqr reports which create many reports via a queue mechanism. Stripped to essentials this is the outer loop: begin-procedure outer begin-select job_id company_id file_name gen_name do init-report ! does new-report, etc. do report_section ! actual selects and print statements do done-report ! cleanup including change value of job_status field in table ic_report_job from ic_report_job where rpt_type=3D'{rpt_type}' and job_step=3D'Creating' and job_status =3D 'Active' and as_of =3D $actdate end-select end-procedure I often get this error, after the outer loop has gone through many reports. (SQR 6002) Cannot open the printer file: ABC_02331375.spf (2): No such file or directory There does not seem to be any reason for this and I can't track it down. Any thoughts or a workaround to have it reset itself? Fred Schiff Information Systems Consultant Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 10:55:16 2005 From: Philippe LAFFARGUE Date: Wed, 19 Jan 2005 16:53:46 +0100 Subject: [sqr-users] Execute PL/SQL procedure in Oracle Hello, I'd like to call a PL/SQL procedure from within my SQR program. I am connected to an Oracle database. I tried : begin-sql Execute xxxxx(tt) End-sql And also Execute xxxxx(tt) Without success. Any clue ? Philippe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 11:00:09 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Execute PL/SQL procedure in Oracle Date: Wed, 19 Jan 2005 09:58:05 -0600 What error messages were generated? -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Philippe LAFFARGUE Sent: Wednesday, January 19, 2005 9:54 AM To: sqr-users@sqrug.org Subject: [sqr-users] Execute PL/SQL procedure in Oracle Hello, I'd like to call a PL/SQL procedure from within my SQR program. I am connected to an Oracle database. I tried : begin-sql Execute xxxxx(tt) End-sql And also Execute xxxxx(tt) Without success. Any clue ? Philippe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 11:19:54 2005 Date: Wed, 19 Jan 2005 08:18:23 -0800 (PST) From: Jim Wyant Subject: Re: [sqr-users] Execute PL/SQL procedure in Oracle Try, depending if you are calling a function or procedure. begin-sql begin $x := xxxxx(tt) ;; end;; end-sql or begin-sql begin xxxxx(tt) ;; end;; end-sql --- Philippe LAFFARGUE wrote: > Hello, > > I'd like to call a PL/SQL procedure from within my SQR program. I am > connected to an Oracle database. > > I tried : > begin-sql > Execute xxxxx(tt) > End-sql > And also > Execute xxxxx(tt) > Without success. > > Any clue ? > > Philippe > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 11:51:20 2005 Date: Wed, 19 Jan 2005 11:50:14 -0500 From: Andy.Cook Subject: Re: [sqr-users] Running sqrmake & receiving error Thanks for your help. The sqrmake now runs, but I am getting an error when I call the function I added to UFUNC.C. I wanted to make sure that the C code I added wasn't bad, so I removed it and just made a copy of the max function, and then re-ran sqrmake. I received the Unknown function error from SQR when I tried to call it. I am just wondering if there is a step I am missing. Has anyone ran into this problem? I have tried looking it up on the archives (so as to not bother the group too much), but it looks like the site is having problems. I appreciate any help given. Thanks again for the help on the previous problem. Andy Cook Systems Engineer Advanced Technical Solutions (978) 849-0533 ext. 259 -----Original message----- From: sqr-users-request@sqrug.org Date: Wed, 19 Jan 2005 06:02:35 -0500 To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 11, Issue 13 > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 12:03:25 2005 Date: Wed, 19 Jan 2005 11:02:17 -0600 From: Krishna Prasad Kommuri Subject: [sqr-users] Problem with sqr Header declaration Hello All, Iam generating a report which prints 2 HEADINGS( HEADING-1 and HEADING-2, 3 lines each) for each page except for the last page which should have only HEADING1 with TOTALS calculated. I tried using NEW_PAGE, but Iam getting both the HEADINGS. Could any one give any suggestions regarding this. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 12:16:47 2005 From: Jeff.Steinfeldt@wellsfargo.com Date: Wed, 19 Jan 2005 11:13:08 -0600 Subject: [sqr-users] Changing line colors in line charts Can anyone tell me how to change the colors of the lines in a line chart in SQR? My chart has three lines and they are printing in blue, red, and yellow. Would like to make the yellow one green. I've got NewGraphics=TRUE in the SQR.INI file. I created a color palette: Create-Color-Palette Name = 'ChartPalette01' Color_1 = (255, 051, 051) ! Mid Red Color_2 = (102, 051, 255) ! Warm Blue Color_3 = (051, 255, 102) ! Cool Green Color_4 = (255, 204, 051) ! Warm Yellow Color_5 = (255, 051, 102) ! Cool Red And then referenced the palette in the Print-Chart: Print-Chart LineChart1 (000, 000) Color-Palette = 'ChartPalette01' TITLE = $formatTitle Data-Array-Row-Count = #Record_Count Data-Array-Column-Count = #Record_Count Data-Array-Column-Labels = ('[SIZE=12]Partner Transactions', '[SIZE=12]Partner Applications', '[SIZE=12]Partner Fundings') Data-Array = chartData Y-Axis-Label = 'Total Transactions' X-Axis-Label = 'Month' I receive no errors or warnings, it just ignores the new colors. Am running 8.1 under Windows XP Professional and connecting to SQL Server database. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 13:03:24 2005 Date: Wed, 19 Jan 2005 10:02:13 -0800 (PST) From: Clara Carter Subject: [sqr-users] Need name of company and product for SQR debugger Hi, Can someone please share the name of the company and product that debugs SQR code? I saw it on the list some time ago and would like some informaiton on it. Thank You, Clara __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 13:35:47 2005 Date: Wed, 19 Jan 2005 11:35:09 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] Need name of company and product for SQR debugger There are several SQR debuggers available. I offer one at http://www.sparkpath.com/products.php. This is a standalone debugger, while some others may be more like IDEs for SQR or may be part of a larger suite of products. I'm sure the other companies will reply with their information. Kevin Reschenberg SparkPath Technologies, Inc. www.sparkpath.com www.sqr-info.com -------- Original Message -------- Subject: [sqr-users] Need name of company and product for SQR debugger From: "Clara Carter" Date: Wed, January 19, 2005 10:02 am To: sqr-users@sqrug.org Hi, Can someone please share the name of the company and product that debugs SQR code? I saw it on the list some time ago and would like some informaiton on it. Thank You, Clara __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 13:42:01 2005 Date: Wed, 19 Jan 2005 13:40:37 -0500 From: Joey Ramion Subject: Re: [sqr-users] Need name of company and product for SQR debugger I would highly recommend BCS SQR Express, a trial version can be downloaded at: http://www.sqrexpress.com/. Regards, Joey On Wed, 19 Jan 2005 11:35:09 -0700, kevin.reschenberg@sparkpath.com wrote: > There are several SQR debuggers available. I offer one at > http://www.sparkpath.com/products.php. This is a standalone debugger, > while some others may be more like IDEs for SQR or may be part of a > larger suite of products. I'm sure the other companies will reply with > their information. > > Kevin Reschenberg > SparkPath Technologies, Inc. > www.sparkpath.com > www.sqr-info.com > > -------- Original Message -------- > Subject: [sqr-users] Need name of company and product for SQR debugger > From: "Clara Carter" > Date: Wed, January 19, 2005 10:02 am > To: sqr-users@sqrug.org > > Hi, > > Can someone please share the name of the company and > product that debugs SQR code? I saw it on the list > some time ago and would like some informaiton on it. > > Thank You, > Clara > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn more. > http://info.mail.yahoo.com/mail_250 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 16:40:28 2005 From: rrodri21@prtcmail.prtc.net Date: Wed, 19 Jan 2005 17:40:37 -0400 Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamic date parameters Hi! I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR attached to this case as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 16:43:55 2005 From: rrodri21@prtcmail.prtc.net Date: Wed, 19 Jan 2005 17:42:43 -0400 Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamic date parameters This is a multi-part message in MIME format... --=_mixed 0077899C04256F8E_= Content-Type: text/plain; charset="us-ascii" Hi! I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR attached to this case as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 --=_mixed 0077899C04256F8E_= Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. --=_mixed 0077899C04256F8E_= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=_mixed 0077899C04256F8E_=-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 16:47:28 2005 From: rrodri21@prtcmail.prtc.net Date: Wed, 19 Jan 2005 17:45:54 -0400 Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamic date parameters My apologies for posting this message numerous times. I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR source pasted below as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Begin-Setup page-size 60 80 no-formfeed End-Setup Begin-Program DO Initialize ! Setup for processing DO Init-Report ! Open output file DO Get-Values DO Open-Files ! Extract and Write Data DO Get-And-Report DO Terminate End-Program begin-procedure Initialize do Init-DateTime do Init-Number do Define-Prcs-Vars do Get-Run-Control-Parms do Get-Current-DateTime end-procedure begin-procedure Terminate if $prcs_process_instance <> '' do Update-Prcs-Run-Status end-if do Reset end-procedure !********************************************************************** !* Procedure Init-Report * !********************************************************************** #include 'setenv.sqc' !Set environment #include 'setup02.sqc' !Printer and page-size initialization Begin-Procedure Init-Report display '***** Starting Init-Report' let $PS_HOME = 'E:\peoplesoft\financials\fin88prd\intfc\output\FACS\' begin-SELECT A.OPRID &OPRID A.RUN_CNTL_ID &RUN_CNTL_ID TO_CHAR(A.FROM_DT, 'MMDDYYYY') &FROM_DT TO_CHAR(A.TO_DT, 'MMDDYYYY') &TO_DT do Get-Values FROM PS_VZ_FACSRUN_TBL A End-select display '***** Ending Init-Report' End-Procedure !Init-Report !********************************************************************** Begin-Procedure Get-Values !********************************************************************** display '***** Starting Get-Values' move &FROM_DT to $FromDate move &TO_DT to $ToDate show $prcs_oprid show $prcs_run_cntl_id show $FromDate show $ToDate display '***** Ending Get-Values' End-Procedure !****************************************************************** !* Procedure Open-Files * !****************************************************************** Begin-Procedure Open-files display '***** Starting Open-files' let $DataFilePath = $PS_HOME let $DataFileName = 'FACST.BSSPP.PSFARC.FACSI928' let $DataFile = $DataFilePath || $DataFileName Open $DataFile As 10 For-Writing RECORD=88:FIXED STATUS=#Open10 display '***** Ending Open-files' End-Procedure !Open-Files !******************************************************************* !* Procedure Get-And-Report * !******************************************************************* Begin-Procedure Get-And-Report display '***** Starting Get-And-Report' let $FromDate = substr($FromDate,5,4) || '-' || substr($FromDate,1,2) || '-' || substr($FromDate,3,2) let $ToDate = substr($ToDate,5,4) || '-' || substr($ToDate,1,2) || '-' || substr($ToDate,3,2) show $FromDate show $ToDate Begin-SELECT A.PYMNT_ID_REF &PAYMENT_REFID A.NAME1 &NAME A.PYMNT_AMT &AMOUNT to_char(A.PYMNT_DT, 'YYYYMMDD') &PAYMENT_DT C.INVOICE_ID &INVOICE do Write-Row FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE (A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD')) AND A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID End-Select display '***** Ending Get-And-Report' End-Procedure !Get-And-Report !***************************************************************** !* Prodecure Write-Row * !***************************************************************** Begin-Procedure Write-Row display '***** Starting Write-Row' Let $TxtFile = '' move &PAYMENT_REFID to $PAYMENT_REFID move &INVOICE to $INVOICE move &NAME to $NAME move &AMOUNT to $AMOUNT move &PAYMENT_DT to $PAYMENT_DT !grab phone number and customer code from PS Invoice Number Let $INVOICE=substr($INVOICE, 3, 10) !name length Let #NAME_LENGTH = length($NAME) !pad name field If #NAME_LENGTH <> 40 Let $NAME = rpad($NAME, 40, ' ') End-If !amount length Let #AMT_L = length($AMOUNT) !amount decimal position Let #AMT_DEC_POS = instr($AMOUNT, '.', 1) !check amount has no decimal position; !add decimal and '00' If #AMT_DEC_POS > 0 !check amount has more than 2 decimal positions; !take away that the excessive positions If #AMT_L - #AMT_DEC_POS > 2 Let $AMOUNT = substr($AMOUNT, 1, #AMT_L - 1) End-If !check amount has no second decimal value; add a 0 If #AMT_L - #AMT_DEC_POS = 1 String $AMOUNT '0' By '' Into $AMOUNT End-If Else !amount has no decimal point; add '.00' String $AMOUNT '.00' By '' Into $AMOUNT End-If !pad amount field Let $Amount = lpad($AMOUNT, 12, ' ') !concatenate fields for each row and write to file String $PAYMENT_REFID $INVOICE $NAME $AMOUNT $PAYMENT_DT By '' Into $Z Let $TxtFile = $Z Write 10 From $TxtFile display '***** Ending Write-Row' End-Procedure Write-Row !**************************************************************************** ! SQC's * !**************************************************************************** #Include 'reset.sqc' !Reset printer procedure #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'number.sqc' !Routines to format numbers #Include 'prcsapi.sqc' !Update Process Request API #Include 'prcsdef.sqc' !Update Process Request variable declaration _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 17:26:46 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters Date: Wed, 19 Jan 2005 14:25:08 -0800 I think this is not a SQR problem, it is a Process Scheduler problem. Have you asked a Peopletools discussion group for help? -----Original Message----- From: rrodri21@prtcmail.prtc.net [mailto:rrodri21@prtcmail.prtc.net] Sent: Wednesday, January 19, 2005 1:46 PM To: sqr-users@sqrug.org Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters My apologies for posting this message numerous times. I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR source pasted below as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------- Begin-Setup page-size 60 80 no-formfeed End-Setup Begin-Program DO Initialize ! Setup for processing DO Init-Report ! Open output file DO Get-Values DO Open-Files ! Extract and Write Data DO Get-And-Report DO Terminate End-Program begin-procedure Initialize do Init-DateTime do Init-Number do Define-Prcs-Vars do Get-Run-Control-Parms do Get-Current-DateTime end-procedure begin-procedure Terminate if $prcs_process_instance <> '' do Update-Prcs-Run-Status end-if do Reset end-procedure !********************************************************************** !* Procedure Init-Report * !********************************************************************** #include 'setenv.sqc' !Set environment #include 'setup02.sqc' !Printer and page-size initialization Begin-Procedure Init-Report display '***** Starting Init-Report' let $PS_HOME = 'E:\peoplesoft\financials\fin88prd\intfc\output\FACS\' begin-SELECT A.OPRID &OPRID A.RUN_CNTL_ID &RUN_CNTL_ID TO_CHAR(A.FROM_DT, 'MMDDYYYY') &FROM_DT TO_CHAR(A.TO_DT, 'MMDDYYYY') &TO_DT do Get-Values FROM PS_VZ_FACSRUN_TBL A End-select display '***** Ending Init-Report' End-Procedure !Init-Report !********************************************************************** Begin-Procedure Get-Values !********************************************************************** display '***** Starting Get-Values' move &FROM_DT to $FromDate move &TO_DT to $ToDate show $prcs_oprid show $prcs_run_cntl_id show $FromDate show $ToDate display '***** Ending Get-Values' End-Procedure !****************************************************************** !* Procedure Open-Files * !****************************************************************** Begin-Procedure Open-files display '***** Starting Open-files' let $DataFilePath = $PS_HOME let $DataFileName = 'FACST.BSSPP.PSFARC.FACSI928' let $DataFile = $DataFilePath || $DataFileName Open $DataFile As 10 For-Writing RECORD=88:FIXED STATUS=#Open10 display '***** Ending Open-files' End-Procedure !Open-Files !******************************************************************* !* Procedure Get-And-Report * !******************************************************************* Begin-Procedure Get-And-Report display '***** Starting Get-And-Report' let $FromDate = substr($FromDate,5,4) || '-' || substr($FromDate,1,2) || '-' || substr($FromDate,3,2) let $ToDate = substr($ToDate,5,4) || '-' || substr($ToDate,1,2) || '-' || substr($ToDate,3,2) show $FromDate show $ToDate Begin-SELECT A.PYMNT_ID_REF &PAYMENT_REFID A.NAME1 &NAME A.PYMNT_AMT &AMOUNT to_char(A.PYMNT_DT, 'YYYYMMDD') &PAYMENT_DT C.INVOICE_ID &INVOICE do Write-Row FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE (A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD')) AND A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID End-Select display '***** Ending Get-And-Report' End-Procedure !Get-And-Report !***************************************************************** !* Prodecure Write-Row * !***************************************************************** Begin-Procedure Write-Row display '***** Starting Write-Row' Let $TxtFile = '' move &PAYMENT_REFID to $PAYMENT_REFID move &INVOICE to $INVOICE move &NAME to $NAME move &AMOUNT to $AMOUNT move &PAYMENT_DT to $PAYMENT_DT !grab phone number and customer code from PS Invoice Number Let $INVOICE=substr($INVOICE, 3, 10) !name length Let #NAME_LENGTH = length($NAME) !pad name field If #NAME_LENGTH <> 40 Let $NAME = rpad($NAME, 40, ' ') End-If !amount length Let #AMT_L = length($AMOUNT) !amount decimal position Let #AMT_DEC_POS = instr($AMOUNT, '.', 1) !check amount has no decimal position; !add decimal and '00' If #AMT_DEC_POS > 0 !check amount has more than 2 decimal positions; !take away that the excessive positions If #AMT_L - #AMT_DEC_POS > 2 Let $AMOUNT = substr($AMOUNT, 1, #AMT_L - 1) End-If !check amount has no second decimal value; add a 0 If #AMT_L - #AMT_DEC_POS = 1 String $AMOUNT '0' By '' Into $AMOUNT End-If Else !amount has no decimal point; add '.00' String $AMOUNT '.00' By '' Into $AMOUNT End-If !pad amount field Let $Amount = lpad($AMOUNT, 12, ' ') !concatenate fields for each row and write to file String $PAYMENT_REFID $INVOICE $NAME $AMOUNT $PAYMENT_DT By '' Into $Z Let $TxtFile = $Z Write 10 From $TxtFile display '***** Ending Write-Row' End-Procedure Write-Row !*************************************************************************** * ! SQC's * !*************************************************************************** * #Include 'reset.sqc' !Reset printer procedure #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'number.sqc' !Routines to format numbers #Include 'prcsapi.sqc' !Update Process Request API #Include 'prcsdef.sqc' !Update Process Request variable declaration _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 19 20:02:39 2005 Date: Wed, 19 Jan 2005 20:01:40 -0500 From: "Larry Roux" Subject: RE: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters Looks like the variable $todate is getting written over or is changing as the programs runs or something. Try running the SQR with the -S plag to see the statements that are actually created. Also try showing your date variables $fromdate and $todate before and also within the procedures. Larry Roux Syracuse University lroux@syr.edu >>> Steven.Alexander@sanjoseca.gov 01/19/05 5:25 PM >>> I think this is not a SQR problem, it is a Process Scheduler problem. Have you asked a Peopletools discussion group for help? -----Original Message----- From: rrodri21@prtcmail.prtc.net [mailto:rrodri21@prtcmail.prtc.net] Sent: Wednesday, January 19, 2005 1:46 PM To: sqr-users@sqrug.org Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters My apologies for posting this message numerous times. I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR source pasted below as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------- Begin-Setup page-size 60 80 no-formfeed End-Setup Begin-Program DO Initialize ! Setup for processing DO Init-Report ! Open output file DO Get-Values DO Open-Files ! Extract and Write Data DO Get-And-Report DO Terminate End-Program begin-procedure Initialize do Init-DateTime do Init-Number do Define-Prcs-Vars do Get-Run-Control-Parms do Get-Current-DateTime end-procedure begin-procedure Terminate if $prcs_process_instance <> '' do Update-Prcs-Run-Status end-if do Reset end-procedure !********************************************************************** !* Procedure Init-Report * !********************************************************************** #include 'setenv.sqc' !Set environment #include 'setup02.sqc' !Printer and page-size initialization Begin-Procedure Init-Report display '***** Starting Init-Report' let $PS_HOME = 'E:\peoplesoft\financials\fin88prd\intfc\output\FACS\' begin-SELECT A.OPRID &OPRID A.RUN_CNTL_ID &RUN_CNTL_ID TO_CHAR(A.FROM_DT, 'MMDDYYYY') &FROM_DT TO_CHAR(A.TO_DT, 'MMDDYYYY') &TO_DT do Get-Values FROM PS_VZ_FACSRUN_TBL A End-select display '***** Ending Init-Report' End-Procedure !Init-Report !********************************************************************** Begin-Procedure Get-Values !********************************************************************** display '***** Starting Get-Values' move &FROM_DT to $FromDate move &TO_DT to $ToDate show $prcs_oprid show $prcs_run_cntl_id show $FromDate show $ToDate display '***** Ending Get-Values' End-Procedure !****************************************************************** !* Procedure Open-Files * !****************************************************************** Begin-Procedure Open-files display '***** Starting Open-files' let $DataFilePath = $PS_HOME let $DataFileName = 'FACST.BSSPP.PSFARC.FACSI928' let $DataFile = $DataFilePath || $DataFileName Open $DataFile As 10 For-Writing RECORD=88:FIXED STATUS=#Open10 display '***** Ending Open-files' End-Procedure !Open-Files !******************************************************************* !* Procedure Get-And-Report * !******************************************************************* Begin-Procedure Get-And-Report display '***** Starting Get-And-Report' let $FromDate = substr($FromDate,5,4) || '-' || substr($FromDate,1,2) || '-' || substr($FromDate,3,2) let $ToDate = substr($ToDate,5,4) || '-' || substr($ToDate,1,2) || '-' || substr($ToDate,3,2) show $FromDate show $ToDate Begin-SELECT A.PYMNT_ID_REF &PAYMENT_REFID A.NAME1 &NAME A.PYMNT_AMT &AMOUNT to_char(A.PYMNT_DT, 'YYYYMMDD') &PAYMENT_DT C.INVOICE_ID &INVOICE do Write-Row FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE (A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD')) AND A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID End-Select display '***** Ending Get-And-Report' End-Procedure !Get-And-Report !***************************************************************** !* Prodecure Write-Row * !***************************************************************** Begin-Procedure Write-Row display '***** Starting Write-Row' Let $TxtFile = '' move &PAYMENT_REFID to $PAYMENT_REFID move &INVOICE to $INVOICE move &NAME to $NAME move &AMOUNT to $AMOUNT move &PAYMENT_DT to $PAYMENT_DT !grab phone number and customer code from PS Invoice Number Let $INVOICE=substr($INVOICE, 3, 10) !name length Let #NAME_LENGTH = length($NAME) !pad name field If #NAME_LENGTH <> 40 Let $NAME = rpad($NAME, 40, ' ') End-If !amount length Let #AMT_L = length($AMOUNT) !amount decimal position Let #AMT_DEC_POS = instr($AMOUNT, '.', 1) !check amount has no decimal position; !add decimal and '00' If #AMT_DEC_POS > 0 !check amount has more than 2 decimal positions; !take away that the excessive positions If #AMT_L - #AMT_DEC_POS > 2 Let $AMOUNT = substr($AMOUNT, 1, #AMT_L - 1) End-If !check amount has no second decimal value; add a 0 If #AMT_L - #AMT_DEC_POS = 1 String $AMOUNT '0' By '' Into $AMOUNT End-If Else !amount has no decimal point; add '.00' String $AMOUNT '.00' By '' Into $AMOUNT End-If !pad amount field Let $Amount = lpad($AMOUNT, 12, ' ') !concatenate fields for each row and write to file String $PAYMENT_REFID $INVOICE $NAME $AMOUNT $PAYMENT_DT By '' Into $Z Let $TxtFile = $Z Write 10 From $TxtFile display '***** Ending Write-Row' End-Procedure Write-Row !*************************************************************************** * ! SQC's * !*************************************************************************** * #Include 'reset.sqc' !Reset printer procedure #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'number.sqc' !Routines to format numbers #Include 'prcsapi.sqc' !Update Process Request API #Include 'prcsdef.sqc' !Update Process Request variable declaration _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 09:00:42 2005 From: Jagadis.Mithilesh@hartfordlife.com Date: Thu, 20 Jan 2005 08:59:51 -0500 Subject: [sqr-users] Generating PDF output from SQR Hi Is it possible to generate a PDF output file from a SQR program directly. The current architecture is that we call the SQR program from a PERL script and collect the print from the printer. I would also like to get a soft copy of the output generated by the SQR and preferably in PDF format. Any help will be appreciated. Thanks Jags. ************************************************************************* PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 09:39:39 2005 Subject: RE: [sqr-users] Generating PDF output from SQR From: Jagadis.Mithilesh@hartfordlife.com Date: Thu, 20 Jan 2005 09:38:54 -0500 Thank you for your quick response Jeff. But we launch it in the UNIX environment with the following command: system("sqr e400301r {Userid/Passwd} $P1 $P2 $P3 $P4 $P5 -Me400301r.txt -PRINTER:PS -ZIF$SQRINI -F$Cdssqrout -E$Cdssqrerr"); I could see that we have also used the parameter -PRINTER with :PS (for post script which I understand now). Do you think if I just change this :PS with :PD I will get a PDF output instead? Or do I think I need to make some more changes to this command for me to have the PDF output. Please note that $P5 (the fifth parameter being passed to the program) contains the printer que to which the output gets printed. Thanks Jags. Jeff.Steinfeldt@wel lsfargo.com To: Jagadis.Mithilesh@hartfordlife.com cc: 01/20/2005 09:05 AM Subject: RE: [sqr-users] Generating PDF output from SQR We are executing SQTs from within an SQR. We use the -printer:pd command-line parameter to generate PDF directly as on line 5 below. LET $cmd = '' LET $cmd = $cmd || 'C:\Program Files\Brio\SQR\ODB\BINW\sqrwt.exe ' LET $cmd = $cmd || $RptSQTName || ' ' ! Report to run LET $cmd = $cmd || $Connectivity ! Database to connect to LET $cmd = $cmd || '-XMB -E' || $RptLogName || ' -printer:pd ' LET $cmd = $cmd || '-F' || $Dir_Report || ' ' ! Set destination for the PDF files LET $cmd = $cmd || '''--PK ' || $PrimaryKey || ''' ' ! Command-line argument ! Execute the report via sqrwt.exe and wait for it to complete ! DISPLAY $cmd CALL SYSTEM USING $cmd #Twitch WAIT Causes printer type xx to be used when creating output files. xx Printer Type Example EH Enhanced HTML -PRINTER:EH EP Enhanced HTML and PDF -PRINTER:EP HP HP LaserJet -PRINTER:HP HT HTML 2.0 -PRINTER:HT LP Line Printer -PRINTER:LP PD PDF -PRINTER:PD PS PostScript -PRINTER:PS WP Windows -PRINTER:WP -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jagadis.Mithilesh@hartfordlife.com Sent: Thursday, January 20, 2005 8:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Generating PDF output from SQR Hi Is it possible to generate a PDF output file from a SQR program directly. The current architecture is that we call the SQR program from a PERL script and collect the print from the printer. I would also like to get a soft copy of the output generated by the SQR and preferably in PDF format. Any help will be appreciated. Thanks Jags. ************************************************************************* PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 10:50:13 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Changing line colors in line charts Date: Thu, 20 Jan 2005 09:49:05 -0600 Ok, to answer my own question and for the benefit of those who might want to do this some day. Must specify -Printer:PD (which I already had in place) on the command-line Must then also go to SQR Developer and navigate through [Edit].[Preferences].[General] and select the checkbox "Use Internal Browser for Preview (if available)" -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Wednesday, January 19, 2005 11:13 AM To: sqr-users@sqrug.org Subject: [sqr-users] Changing line colors in line charts Can anyone tell me how to change the colors of the lines in a line chart in SQR? My chart has three lines and they are printing in blue, red, and yellow. Would like to make the yellow one green. I've got NewGraphics=TRUE in the SQR.INI file. I created a color palette: Create-Color-Palette Name = 'ChartPalette01' Color_1 = (255, 051, 051) ! Mid Red Color_2 = (102, 051, 255) ! Warm Blue Color_3 = (051, 255, 102) ! Cool Green Color_4 = (255, 204, 051) ! Warm Yellow Color_5 = (255, 051, 102) ! Cool Red And then referenced the palette in the Print-Chart: Print-Chart LineChart1 (000, 000) Color-Palette = 'ChartPalette01' TITLE = $formatTitle Data-Array-Row-Count = #Record_Count Data-Array-Column-Count = #Record_Count Data-Array-Column-Labels = ('[SIZE=12]Partner Transactions', '[SIZE=12]Partner Applications', '[SIZE=12]Partner Fundings') Data-Array = chartData Y-Axis-Label = 'Total Transactions' X-Axis-Label = 'Month' I receive no errors or warnings, it just ignores the new colors. Am running 8.1 under Windows XP Professional and connecting to SQL Server database. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 11:23:06 2005 Subject: Re: FW: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters From: rrodri21@prtcmail.prtc.net Date: Thu, 20 Jan 2005 12:22:50 -0400 Tara, Your first suggestion from e-mail below fixed the problem. I guess I have learned to be careful with the Oracle to_date() conversion function in SQL embedded in an SQR. Regards, -ricardo "O'Neil, Tara" 01/19/2005 06:52 PM To: cc: Subject: FW: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters Consider changing: Begin-Setup page-size 60 80 no-formfeed End-Setup To: Begin-Setup page-size 60 80 no-formfeed declare-variable date $FromDate date $ToDate end-declare End-Setup Then replace in your sql to_date($FromDate, 'YYYY-MM-DD') with just $FromDate Do that for all your date references for FromDate and ToDate. Another thing is in: Home > PeopleTools > Process Scheduler Manager > Use > Process Definitions Under the Process Definition Options tab Make sure your *Run Location: says Both Tara K. O'Neil, Assistant Director-Systems 414-288-5269 Office of Student Financial Aid 414-288-1718(fax) Marquette University tara.oneil@marquette.edu 1212 Building, Room 415 http://www.mu.edu/financialaid P.O. Box 1881 Milwaukee WI 53201-1881 I think this is not a SQR problem, it is a Process Scheduler problem. Have you asked a Peopletools discussion group for help? -----Original Message----- From: rrodri21@prtcmail.prtc.net [mailto:rrodri21@prtcmail.prtc.net] Sent: Wednesday, January 19, 2005 1:46 PM To: sqr-users@sqrug.org Subject: [sqr-users] help with PeopleSoft SQR containg SQL w. two dynamicdate parameters My apologies for posting this message numerous times. I am trying to run an SQR on Windows NT Process Scheduler in PeopleSoft Financials 8.8 (which runs on an Oracle 9i database) Please refer to the SQR source pasted below as you read this. I have an SQR Process, VZINTFAC, that performs a simple query and writes the query results in an output file that the process itself creates in a specified directory. The SQR Process runs on the NT Process Scheduler and the output directory is specified within the SQR. The SQR Process must run on the Windows NT Process Scheduler because of its association with other processes. The Query involves obtaining information from Payment and Voucher tables based on a date range (from a certain date to a certain date). These date parameters are entered in a Run Control Page, and are stored in a Run Control Record, VZ_FACSRUN_TBL. My QAA environment is an exact copy of Production. QAA is refreshed every night with Production. This process executes flawlessly in QAA and successfully generates an output file with results from the embedded SQL query. In Production, on the other hand, the Run Status stays "Processing" forever. The parameters are accurately passed to the SQR as shown in the results of the Trace File of a Production run below: ***** Starting Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Ending Init-Report ***** Starting Get-Values TR96854 FACS1 12012004 12312004 ***** Ending Get-Values ***** Starting Open-files ***** Ending Open-files ***** Starting Get-And-Report 2004-12-01 2004-12-31 The Trace output file also contains comments I placed with "Display" that indicate when a Procedure within an SQR starts and ends. As you can see from the Trace File Output, Procedure Get-And-Report is started but does not end. This is the procedure where the embedded SQL is executed. The procedure Open-files works fine, since a file is created. Nothing is written to the file in PRD, since the SQR Process hangs at the Get-And-Report Procedure. What is very particular is that in PRD, the SQR Process finishes successfully when the date parameters are hard coded. The SQL within the SQR also runs well when executed in a SQL client usch as Toad or Benthic. I made sure that all tables accessed by the SQL in this SQR process were properly tuned. I also performed the following tests on the SQL within the SQR process in Production (please refer to SQL in SQR Process within Get-And-Report Procedure): ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. Data is written to file (but obviously with more data than I need) ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date($FromDate, 'YYYY-MM-DD') AND to_date($ToDate, 'YYYY-MM-DD')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process runs forever in Processing Run Status 2. File is generated 3. No data is written to file ---------------------------------------------------------------------- FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND (A.PYMNT_DT BETWEEN to_date('2004-12-01', 'YYYY-MM-DD') AND to_date($ToDate, '2004-12-31')) AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID Results: 1. SQR Process finished with Success Run Status 2. File is generated 3. The appropriate data is written to the file. This is a very odd phenomenon. Any help would be greatly appreciated. Thanks! -lounge56 ------------------------------------------------------------------------ ---- ------------------------------------------------------------------------ ---- ------------------- Begin-Setup page-size 60 80 no-formfeed End-Setup Begin-Program DO Initialize ! Setup for processing DO Init-Report ! Open output file DO Get-Values DO Open-Files ! Extract and Write Data DO Get-And-Report DO Terminate End-Program begin-procedure Initialize do Init-DateTime do Init-Number do Define-Prcs-Vars do Get-Run-Control-Parms do Get-Current-DateTime end-procedure begin-procedure Terminate if $prcs_process_instance <> '' do Update-Prcs-Run-Status end-if do Reset end-procedure !********************************************************************** !* Procedure Init-Report * !********************************************************************** #include 'setenv.sqc' !Set environment #include 'setup02.sqc' !Printer and page-size initialization Begin-Procedure Init-Report display '***** Starting Init-Report' let $PS_HOME = 'E:\peoplesoft\financials\fin88prd\intfc\output\FACS\' begin-SELECT A.OPRID &OPRID A.RUN_CNTL_ID &RUN_CNTL_ID TO_CHAR(A.FROM_DT, 'MMDDYYYY') &FROM_DT TO_CHAR(A.TO_DT, 'MMDDYYYY') &TO_DT do Get-Values FROM PS_VZ_FACSRUN_TBL A End-select display '***** Ending Init-Report' End-Procedure !Init-Report !********************************************************************** Begin-Procedure Get-Values !********************************************************************** display '***** Starting Get-Values' move &FROM_DT to $FromDate move &TO_DT to $ToDate show $prcs_oprid show $prcs_run_cntl_id show $FromDate show $ToDate display '***** Ending Get-Values' End-Procedure !****************************************************************** !* Procedure Open-Files * !****************************************************************** Begin-Procedure Open-files display '***** Starting Open-files' let $DataFilePath = $PS_HOME let $DataFileName = 'FACST.BSSPP.PSFARC.FACSI928' let $DataFile = $DataFilePath || $DataFileName Open $DataFile As 10 For-Writing RECORD=88:FIXED STATUS=#Open10 display '***** Ending Open-files' End-Procedure !Open-Files !******************************************************************* !* Procedure Get-And-Report * !******************************************************************* Begin-Procedure Get-And-Report display '***** Starting Get-And-Report' let $FromDate = substr($FromDate,5,4) || '-' || substr($FromDate,1,2) || '-' || substr($FromDate,3,2) let $ToDate = substr($ToDate,5,4) || '-' || substr($ToDate,1,2) || '-' || substr($ToDate,3,2) show $FromDate show $ToDate Begin-SELECT A.PYMNT_ID_REF &PAYMENT_REFID A.NAME1 &NAME A.PYMNT_AMT &AMOUNT to_char(A.PYMNT_DT, 'YYYYMMDD') &PAYMENT_DT C.INVOICE_ID &INVOICE do Write-Row FROM PS_PAYMENT_TBL A, PS_PYMNT_VCHR_XREF B, PS_VOUCHER C WHERE (A.PYMNT_DT >= to_date($FromDate, 'YYYY-MM-DD') AND A.PYMNT_DT <= to_date($ToDate, 'YYYY-MM-DD')) AND A.REMIT_VENDOR = 'O11' AND A.FORM_NBR_CONFIRMED = 'Y' AND A.PYMNT_METHOD = 'CHK' AND A.PYMNT_STATUS <> 'X' AND A.PYMNT_ID = B.PYMNT_ID AND B.VOUCHER_ID = C.VOUCHER_ID End-Select display '***** Ending Get-And-Report' End-Procedure !Get-And-Report !***************************************************************** !* Prodecure Write-Row * !***************************************************************** Begin-Procedure Write-Row display '***** Starting Write-Row' Let $TxtFile = '' move &PAYMENT_REFID to $PAYMENT_REFID move &INVOICE to $INVOICE move &NAME to $NAME move &AMOUNT to $AMOUNT move &PAYMENT_DT to $PAYMENT_DT !grab phone number and customer code from PS Invoice Number Let $INVOICE=substr($INVOICE, 3, 10) !name length Let #NAME_LENGTH = length($NAME) !pad name field If #NAME_LENGTH <> 40 Let $NAME = rpad($NAME, 40, ' ') End-If !amount length Let #AMT_L = length($AMOUNT) !amount decimal position Let #AMT_DEC_POS = instr($AMOUNT, '.', 1) !check amount has no decimal position; !add decimal and '00' If #AMT_DEC_POS > 0 !check amount has more than 2 decimal positions; !take away that the excessive positions If #AMT_L - #AMT_DEC_POS > 2 Let $AMOUNT = substr($AMOUNT, 1, #AMT_L - 1) End-If !check amount has no second decimal value; add a 0 If #AMT_L - #AMT_DEC_POS = 1 String $AMOUNT '0' By '' Into $AMOUNT End-If Else !amount has no decimal point; add '.00' String $AMOUNT '.00' By '' Into $AMOUNT End-If !pad amount field Let $Amount = lpad($AMOUNT, 12, ' ') !concatenate fields for each row and write to file String $PAYMENT_REFID $INVOICE $NAME $AMOUNT $PAYMENT_DT By '' Into $Z Let $TxtFile = $Z Write 10 From $TxtFile display '***** Ending Write-Row' End-Procedure Write-Row !*********************************************************************** **** * ! SQC's * !*********************************************************************** **** * #Include 'reset.sqc' !Reset printer procedure #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'number.sqc' !Routines to format numbers #Include 'prcsapi.sqc' !Update Process Request API #Include 'prcsdef.sqc' !Update Process Request variable declaration _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 15:15:31 2005 Date: Thu, 20 Jan 2005 12:13:54 -0800 (PST) From: Deb Harris Subject: [sqr-users] Gantt Chart in SQR I have a client who was told by Hyperion that SQR could produce a Gantt Chart. It is not one of the available charts options that I can see. Current version of SQR being used is 8.2.0 Has anyone done this? Any ideas where I can see sample code that does this? Thanks in advance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 20 20:43:40 2005 Subject: RE: [sqr-users] (no subject) Date: Fri, 21 Jan 2005 11:43:23 +1000 From: "Graeme Steyn " Hi Steve. Thank you for the pointer. The PeopleTools8.44 PeopleBook: SQR Language Reference for PeopleSoft and Brio Report 6.0 Help files do not contain any reference to the set-delay-print and print delay options. Your previous response to RE: [sqr-users] set-delay-print command and Page X of Y a useful reference for the command usage (sorry only found this article after my original posting. Regards, Graeme -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au]=20 Sent: Wednesday, 19 January 2005 9:29 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] (no subject) Hi Graeme, Look at the set-delay-print command and the delay option of the print command. This lets you print a "place-holder" for the "of n" part of your report. When you have printed the last page of the statement you use the set-delay-print command to go back and fill in the page count on the pages you have already printed. Cheers, Steve.=20=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On Behalf Of Graeme Steyn Sent: Wednesday, 19 January 2005 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] (no subject) Hi, =20 I am currently experiencing a problem attempting to produce page numbers in the format "page x of n" for a report header, where the report contains multiple statements. The SQR process is generating a batch of statements, all of which are processed and output to the same .lis file to make printing the batch easier (i.e new-page forced between statements and #page-count reset). The problem is that I have no easy way of determining how many pages are going to be printed per statement within the batch. Using Last-Page and manipulating #page-count as shown in the following code, does not provide a solution: =20 begin-heading 1 page-number (1,1) 'Page ' last-page () ' of ' '.' end-heading =20 begin-program print 'Header should read: Page 1 of 2.' (10, 10) print 'Statement 1' (11,10) new-page print 'Header should read: Page 2 of 2' (10,10) print 'Statement 1' (11,10) new-page move 1 to #page-count !reset page counter. print 'Header should read: Page 1 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 2 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 3 of 4' (10,10) print 'Statement 2' (11,10) new-page print 'Header should read: Page 4 of 4' (10,10) print 'Statement 2' (11,10) end-program =20 This generates the following result: =20 Statement 1: 2 pages Header reads Page 2 of 4, when it should be Page 2 of 2.=20=20=20=20 Statement 2: 4 pages Header correct for page x of 4. =20 The second statement in the .lis file thus has the correct number of pages, however, the first statement in the .lis file has its total number of pages shown as being 4 (the last value of #page-count when the report was completed). If you have n statements in the batch, then all statement headers will have the total number of pages determined by the last statement generated in the process. Does anyone have a simple solution for this problem? I wish to avoid having to do complex calculations to pre-determine the number of pages that will be used by any statement. I would also like to avoid creating a single file per statements using the new-report command. =20 Details of the platform that I am running this on appear as follows: =20 Platform: WINDOWS-XP Professional Version 2002 SP1 SQR Version: SQR for PeopleSoft/8.44.12 /PC/Windows NT 4.0/Oracle 8.0.6/Jul 13 2004 Database: Oracle 9.2.0.1 Application: PeopleSoft 8.44.12 Thank you. =20 Regards, =20 Graeme Steyn Corporate Information Systems Information Technology Division Central Queensland University Tel: +61 7 4930 9256 E-mail: g.steyn@cqu.edu.au=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 21 10:46:36 2005 Date: Fri, 21 Jan 2005 07:45:31 -0800 From: David Donnelly Subject: [sqr-users] Re: Generating PDF output from SQR The ability to produce PDF files was added to SQR at some release. As I recall the output from the first release was not too good. Sometimes, depending on the content, I would get better results by producing PostScript and using a standalone converter like Ghostscript. Of course this is all on Windows, and I never had to automate it into a script. So what you need is a command-line-driven Unix-based PS-to-PDF converter. I imagine there is one. Dave Dave Donnelly ISIS BioComp phone (951) 677-2446 fax (775) 314-7897 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 21 10:51:04 2005 Date: Fri, 21 Jan 2005 10:48:10 -0500 (EST) From: Jay Sagadraca Subject: [sqr-users] sqr problem - generic begin-select Hello, Here is my problem: 1. I have a flat file that I bcp in to a table. Let's say the columns in the tmp_table are : - Last Name - First Name - Address 1 - Address 2 - City - State/Provincial Code - Country Code - Postal Code - Box_1 - Box_2 - Box_3 2. After a few months, I have another flat file that is almost similar to the above except the boxes are now the following : - Box_1 - Box_3 - Box_4 3. Now, I have the following which was derived from #1 : begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code Postal_Code Box_1 Box_2 Box_3 from tmp_table end-select 4. Now my question is, is there a command in sqr wherein you can do the following to have a generic begin-select in the sqr inorder that you will not be changing the previous sql? begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code *this can be interchangeable from tmp_table end-select Please help me. Thank You, Jay Sagadraca Jay V. Sagadraca Markham, Ontario, Canada email : knight7883@yahoo.ca --------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 21 11:01:12 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] sqr problem - generic begin-select Date: Fri, 21 Jan 2005 09:59:57 -0600 Try a bind variable. Assign your column name to a text variable and then add that variable name to the select list enclosed in the square brackets. LET $Column1Name = 'Box_1' BEGIN-SELECT Last_Name ... ... ... [$Column1Name] ... ... ... END-SELECT -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jay Sagadraca Sent: Friday, January 21, 2005 9:48 AM To: sqr-users@sqrug.org Cc: Jay V. Sagadraca Subject: [sqr-users] sqr problem - generic begin-select Hello, Here is my problem: 1. I have a flat file that I bcp in to a table. Let's say the columns in the tmp_table are : - Last Name - First Name - Address 1 - Address 2 - City - State/Provincial Code - Country Code - Postal Code - Box_1 - Box_2 - Box_3 2. After a few months, I have another flat file that is almost similar to the above except the boxes are now the following : - Box_1 - Box_3 - Box_4 3. Now, I have the following which was derived from #1 : begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code Postal_Code Box_1 Box_2 Box_3 from tmp_table end-select 4. Now my question is, is there a command in sqr wherein you can do the following to have a generic begin-select in the sqr inorder that you will not be changing the previous sql? begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code *this can be interchangeable from tmp_table end-select Please help me. Thank You, Jay Sagadraca Jay V. Sagadraca Markham, Ontario, Canada email : knight7883@yahoo.ca --------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 21 11:46:54 2005 Date: Fri, 21 Jan 2005 09:46:14 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] sqr problem - generic begin-select Also specify a pseudonym and type for the column, like this: [$Column1Name] &mycolumn=char Then refer to the value as &mycolumn in your code. SQR won't construct a name like &Box_1 from the variable the way it does with regular static column names. Kevin Reschenberg www.sparkpath.com www.sqr-info.com -------- Original Message -------- Subject: RE: [sqr-users] sqr problem - generic begin-select From: Jeff.Steinfeldt@wellsfargo.com Date: Fri, January 21, 2005 7:59 am To: sqr-users@sqrug.org Try a bind variable. Assign your column name to a text variable and then add that variable name to the select list enclosed in the square brackets. LET $Column1Name = 'Box_1' BEGIN-SELECT Last_Name ... ... ... [$Column1Name] ... ... ... END-SELECT -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jay Sagadraca Sent: Friday, January 21, 2005 9:48 AM To: sqr-users@sqrug.org Cc: Jay V. Sagadraca Subject: [sqr-users] sqr problem - generic begin-select Hello, Here is my problem: 1. I have a flat file that I bcp in to a table. Let's say the columns in the tmp_table are : - Last Name - First Name - Address 1 - Address 2 - City - State/Provincial Code - Country Code - Postal Code - Box_1 - Box_2 - Box_3 2. After a few months, I have another flat file that is almost similar to the above except the boxes are now the following : - Box_1 - Box_3 - Box_4 3. Now, I have the following which was derived from #1 : begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code Postal_Code Box_1 Box_2 Box_3 from tmp_table end-select 4. Now my question is, is there a command in sqr wherein you can do the following to have a generic begin-select in the sqr inorder that you will not be changing the previous sql? begin-select Last_Name First_Name Address_1 Address_2 City State_Prov_Code Country_Code *this can be interchangeable from tmp_table end-select Please help me. Thank You, Jay Sagadraca Jay V. Sagadraca Markham, Ontario, Canada email : knight7883@yahoo.ca --------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 21 15:26:11 2005 From: SSundaram@pershing.com Date: Fri, 21 Jan 2005 15:25:20 -0500 Subject: [sqr-users] Reg: SQR Execute and connection pools Hi, One of my applications is currently using SQR Server for Solaris/Oracle 8.0.5. We are using .sqr files to execute sql queries and output html pages. The OS is Solaris 2.5. The application invokes SQR from within a java program, supplying the user name password as parameters and executes using Java's Runtime class. Currently SQR uses one separate connection each time a report is invoked. If there are 50 report requests at the same time, it takes up 50 different connections. I am migrating this application into a J2EE based architecture where all connections to the database (Oracle) must go via a connection pool. And now the question. Is there a mechanism by which I can invoke SQR and make it use connections from my application server's connection pools. My application server provides connection pooling API. If there is a way for SQR to access connection pools I can explore the possibility of it using our API. Thanks in advance. Subbu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jan 23 15:17:42 2005 Date: Sun, 23 Jan 2005 14:16:59 -0600 From: Shoaib Kandlawala Subject: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables Hi all, I am very much stuck with this following errors: Error in include file "setenv.sqc" on line 464. (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to increase SUBVARS Dyn-dateout-suffix I am getting more than 30 times this errors for different variables used in different delivered Sqc's. can any give me any idea what's this n how to solve this error. I am trying to upgrade an sqr from version 7.0 to 8 and everything else is fine beside sqcs errors. I will appreciate the help. thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jan 23 16:23:29 2005 Date: Sun, 23 Jan 2005 16:22:09 -0500 From: "Larry Roux" Subject: Re: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables This should go to a peoplesoft forum, but look to make sure your zif file refers to the allmaxes.sqc file. Larry Roux Syracuse University lroux@syr.edu >>> s4shoaib@gmail.com 01/23/05 3:16 PM >>> Hi all, I am very much stuck with this following errors: Error in include file "setenv.sqc" on line 464. (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to increase SUBVARS Dyn-dateout-suffix I am getting more than 30 times this errors for different variables used in different delivered Sqc's. can any give me any idea what's this n how to solve this error. I am trying to upgrade an sqr from version 7.0 to 8 and everything else is fine beside sqcs errors. I will appreciate the help. thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 24 09:39:31 2005 Date: Mon, 24 Jan 2005 09:39:22 -0500 From: "Jamie Harris" Subject: Re: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables If you open the allmaxes.max pointed to by your command line, you can increase the number of #define variables. You may also want to try and look for SQC files that you don't need and remove them. That may/may not help. In the file, the number you want to increase is most likely "subvars". We have Peoplesoft 8.0 and ours is set at 2,000 and we've had no problems with that error. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> s4shoaib@gmail.com 1/23/2005 3:16 PM >>> Hi all, I am very much stuck with this following errors: Error in include file "setenv.sqc" on line 464. (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to increase SUBVARS Dyn-dateout-suffix I am getting more than 30 times this errors for different variables used in different delivered Sqc's. can any give me any idea what's this n how to solve this error. I am trying to upgrade an sqr from version 7.0 to 8 and everything else is fine beside sqcs errors. I will appreciate the help. thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 24 09:57:51 2005 Date: Mon, 24 Jan 2005 09:56:19 -0500 From: "Jessie Dickenson" Subject: Re: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables Defines a startup file (called the MFile, say for example: XYZ.DAT) containing the size to be assigned to SUBVARS. When you compile your SQR program, you would use the switch -MXYZ.DAT in the command line. Try using the following size allocation in your XYZ.DAT.You need not have anything else in this file. Or depending on whether you have exhausted the SQR default allocations, you may need to add other elements. Hope this helps. SUBVARS = 200 Thanks, Jessie >>> s4shoaib@gmail.com 1/23/2005 3:16:59 PM >>> Hi all, I am very much stuck with this following errors: Error in include file "setenv.sqc" on line 464. (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to increase SUBVARS Dyn-dateout-suffix I am getting more than 30 times this errors for different variables used in different delivered Sqc's. can any give me any idea what's this n how to solve this error. I am trying to upgrade an sqr from version 7.0 to 8 and everything else is fine beside sqcs errors. I will appreciate the help. thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 24 10:07:24 2005 Date: Mon, 24 Jan 2005 09:06:39 -0600 From: Shoaib Kandlawala Subject: Re: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables I really need those sqcs and we are using SQR.INI and subvar is set to 3000 which good enough I guess. Thanks for your help :) On Mon, 24 Jan 2005 09:39:22 -0500, Jamie Harris wrote: > If you open the allmaxes.max pointed to by your command line, you can > increase the number of #define variables. > You may also want to try and look for SQC files that you don't need and > remove them. That may/may not help. > > In the file, the number you want to increase is most likely "subvars". > We have Peoplesoft 8.0 and ours is set at 2,000 and we've had no > problems with that error. > > ----------------------------------------------------- > James Harris > Junior Systems Programmer/Analyst > Information Technology Division > Frederick Community College > ----------------------------------------------------- > > >>> s4shoaib@gmail.com 1/23/2005 3:16 PM >>> > Hi all, > > I am very much stuck with this following errors: > > Error in include file "setenv.sqc" on line 464. > (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to > increase SUBVARS > Dyn-dateout-suffix > > I am getting more than 30 times this errors for different variables > used in different delivered Sqc's. can any give me any idea what's > this n how to solve this error. I am trying to upgrade an sqr from > version 7.0 to 8 and everything else is fine beside sqcs errors. > > I will appreciate the help. > thanks > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 24 11:59:24 2005 From: "pdaalder" Subject: RE: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables Date: Mon, 24 Jan 2005 08:58:35 -0800 Are you running these sqc under windows or UNIX? If unix try the flag -zif/$PS_HOME/sqr/pssqr.unx, that is what solved the issue for us (we run under UNIX) Peter -----Original Message----- From: sqr-users-bounces+pdaalder=2coolboarders.com@sqrug.org [mailto:sqr-users-bounces+pdaalder=2coolboarders.com@sqrug.org] On Behalf Of Shoaib Kandlawala Sent: Monday, January 24, 2005 07:07 To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] (SQR 3601) Out of Substituion or #DEFINE variables I really need those sqcs and we are using SQR.INI and subvar is set to 3000 which good enough I guess. Thanks for your help :) On Mon, 24 Jan 2005 09:39:22 -0500, Jamie Harris wrote: > If you open the allmaxes.max pointed to by your command line, you can > increase the number of #define variables. > You may also want to try and look for SQC files that you don't need > and remove them. That may/may not help. > > In the file, the number you want to increase is most likely "subvars". > We have Peoplesoft 8.0 and ours is set at 2,000 and we've had no > problems with that error. > > ----------------------------------------------------- > James Harris > Junior Systems Programmer/Analyst > Information Technology Division > Frederick Community College > ----------------------------------------------------- > > >>> s4shoaib@gmail.com 1/23/2005 3:16 PM >>> > Hi all, > > I am very much stuck with this following errors: > > Error in include file "setenv.sqc" on line 464. > (SQR 3601) Out of substitution or #DEFINE variables; use -MfIle to > increase SUBVARS Dyn-dateout-suffix > > I am getting more than 30 times this errors for different variables > used in different delivered Sqc's. can any give me any idea what's > this n how to solve this error. I am trying to upgrade an sqr from > version 7.0 to 8 and everything else is fine beside sqcs errors. > > I will appreciate the help. > thanks > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 26 19:10:24 2005 From: "tam kag" Date: Thu, 27 Jan 2005 00:08:19 +0000 Subject: [sqr-users] using ftp from sqr Hello, Im working on a project where i need to FTP a file to a unix box this is the code that I have tried, any info well be helpfull I'm FTPing to a unix box from a unix box the code: call system using 'ftp -n unix_box' #stat call system using 'user userid userpassword' #stat call system using 'cd /dirone/dirtwo/dirthree' #stat call system using 'put hello.txt' #stat Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jan 26 22:39:18 2005 From: "Steve Cavill" Subject: RE: [sqr-users] using ftp from sqr Date: Thu, 27 Jan 2005 14:36:16 +1100 You need to put all the commands in a single shell script and call that with one "call system using" command. Each call system using command starts a new shell, so each shell command does not know about the other shell commands. Also you need to use the ftp "batch mode" syntax, ie pass the userid and password on invocation. Check you man ftp for the exact syntax. Cheers, Steve Steve Cavill Infoclarity www.infoclarity.com.au -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of tam kag Sent: Thursday, 27 January 2005 11:08 AM To: sqr-users@sqrug.org Subject: [sqr-users] using ftp from sqr Hello, Im working on a project where i need to FTP a file to a unix box this is the code that I have tried, any info well be helpfull I'm FTPing to a unix box from a unix box the code: call system using 'ftp -n unix_box' #stat call system using 'user userid userpassword' #stat call system using 'cd /dirone/dirtwo/dirthree' #stat call system using 'put hello.txt' #stat Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 27 10:21:11 2005 Date: Thu, 27 Jan 2005 07:19:55 -0800 (PST) From: Dattatraya Shetty Subject: Re: [sqr-users] using ftp from sqr Tam, This is not going to work as each system command will create a new Shell to run single commands. I suggest you try this. begin-procedure create-ftp-file open '/tmp/ftpcmds' as 1 for-writing encode '<013>' into $enter let $cmd = 'open unix_box' || $enter || 'user user_id user_password' || $enter let $cmd = $cmd || 'cd /dirone/dirtwo/dirthree' || $enter || 'put hello.txt' || $enter || 'bye' write 1 from $cmd call system using 'ftp -nvi < /tmp/ftpcmd' #stat end-procedure or Create a Unix Scrip as follow after doing $> vi ftpcmds open unix_box user user_id user_password cd /dir put hello.txt bye save the above file and then in sqr call system using 'ftp -nvi < ftpcmds ' #stat HTH Datta. tam kag wrote: Hello, Im working on a project where i need to FTP a file to a unix box this is the code that I have tried, any info well be helpfull I'm FTPing to a unix box from a unix box the code: call system using 'ftp -n unix_box' #stat call system using 'user userid userpassword' #stat call system using 'cd /dirone/dirtwo/dirthree' #stat call system using 'put hello.txt' #stat Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jan 27 12:47:49 2005 From: "Bambach, Tom" Subject: RE: [sqr-users] using ftp from sqr Date: Thu, 27 Jan 2005 12:46:28 -0500 Tam, This is an example to FTP from Windows to UNIX create a file with contents like this: open 123.456.789.12 ftpusr 4ftponly ascii append g:\PeopleSoft\mxiss_grw.txt /home/ftpusr/files/mxissuef_grw.txt literal site chmod 777 /home/ftpusr/files/mxissuef_grw.txt quit EXIT (use put instead of append if you want to overwrite the file if it exists) this file could be created and written by your SQR program; assume that is is and that $local_file = 'g:\PeopleSoft\mxiss_grw.txt' and that $ftp_file is the name of the above file close $ftp_file after writing it... then in your SQR program, do this: let $syscmd = 'FTP -s:' || $ftp_file CALL SYSTEM USING $syscmd #stat WAIT if #stat = 0 let $disp = 'FTP successful...' display $disp let #stat1 = delete($local_file) if #stat1 <> 0 let $disp = 'Error ' || to_char(#stat1) || ' deleting ' || $local_file display $disp end-if else let $disp = 'Error ' || to_char(#stat) || ' attempting FTP...' display $disp end-if end-if Tom > -----Original Message----- > From: tam kag [SMTP:kaghdot@hotmail.com] > Sent: Wednesday, January 26, 2005 7:08 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] using ftp from sqr > > Hello, > > Im working on a project where i need to FTP a file to a unix box > > this is the code that I have tried, any info well be helpfull > > I'm FTPing to a unix box from a unix box > > the code: > call system using 'ftp -n unix_box' #stat > call system using 'user userid userpassword' #stat > call system using 'cd /dirone/dirtwo/dirthree' #stat > call system using 'put hello.txt' #stat > > > > Thank you > > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 11:26:38 2005 Date: Fri, 28 Jan 2005 08:25:30 -0800 From: Susan Haberman Subject: [sqr-users] naming multiple reports Hi, I am trying to name multiple reports instead of using the default naming convention reportname_instance_#.lis In the process scheduler manager>use>process definitions>override options I have tried several options: 1) Parameter List: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis This sqr runs successfully but uses default name. 2) Command Line: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Command Line: Override -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Parameter List: Append -MR 5 Command Line: Append -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis These processes error with the following message: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running Has anyone successfully managed to rename the output files? We are running Oracle on a Unix server. Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 11:31:32 2005 From: SSundaram@pershing.com Date: Fri, 28 Jan 2005 11:30:46 -0500 Subject: [sqr-users] Reg: SQR Execute and connection pools Hi All, Any updates on this? It would be great if someone could atleast point me to any related topics which I can explore. Thanks and Regards Subbu Posted on 01/21/2005 One of my applications is currently using SQR Server for Solaris/Oracle 8.0.5. We are using .sqr files to execute sql queries and output html pages. The OS is Solaris 2.5. The application invokes SQR from within a java program, supplying the user name password as parameters and executes using Java's Runtime class. Currently SQR uses one separate connection each time a report is invoked. If there are 50 report requests at the same time, it takes up 50 different connections. I am migrating this application into a J2EE based architecture where all connections to the database (Oracle) must go via a connection pool. And now the question. Is there a mechanism by which I can invoke SQR and make it use connections from my application server's connection pools. My application server provides connection pooling API. If there is a way for SQR to access connection pools I can explore the possibility of it using our API. Thanks in advance. Subbu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 12:14:23 2005 Date: Fri, 28 Jan 2005 12:12:50 -0500 From: "George Jansen" Subject: Re: [sqr-users] Reg: SQR Execute and connection pools >From what I've seen, no. If the number of connections is an issue, you could look at MTS or Connection Manager on the Oracle side. >>> SSundaram@pershing.com 1/28/2005 11:30:46 AM >>> Hi All, Any updates on this? It would be great if someone could atleast point me to any related topics which I can explore. Thanks and Regards Subbu Posted on 01/21/2005 One of my applications is currently using SQR Server for Solaris/Oracle 8.0.5. We are using .sqr files to execute sql queries and output html pages. The OS is Solaris 2.5. The application invokes SQR from within a java program, supplying the user name password as parameters and executes using Java's Runtime class. Currently SQR uses one separate connection each time a report is invoked. If there are 50 report requests at the same time, it takes up 50 different connections. I am migrating this application into a J2EE based architecture where all connections to the database (Oracle) must go via a connection pool. And now the question. Is there a mechanism by which I can invoke SQR and make it use connections from my application server's connection pools. My application server provides connection pooling API. If there is a way for SQR to access connection pools I can explore the possibility of it using our API. Thanks in advance. Subbu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 12:20:02 2005 From: James Womeldorf Subject: RE: [sqr-users] naming multiple reports Date: Fri, 28 Jan 2005 11:18:50 -0600 Use the New-Report command as described in this document: http://www.ontko.com/sqr/sqrcard4.html -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Susan Haberman Sent: Friday, January 28, 2005 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] naming multiple reports Hi, I am trying to name multiple reports instead of using the default naming convention reportname_instance_#.lis In the process scheduler manager>use>process definitions>override options I have tried several options: 1) Parameter List: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis This sqr runs successfully but uses default name. 2) Command Line: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Command Line: Override -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Parameter List: Append -MR 5 Command Line: Append -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis These processes error with the following message: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running Has anyone successfully managed to rename the output files? We are running Oracle on a Unix server. Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 17:13:24 2005 Date: Fri, 28 Jan 2005 17:13:26 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] naming multiple reports What if you had multiple reports "open" at once and needed to be able to use the "use-report" command to go between them? I have a report that produces a report of successes, a report of errors and a report of warnings. Each row of data could potentially be one of the three, so I can't simply process all of report 1's data then say "new-report" to start the next one. I haven't been able to find a way to do that without specifying with -f all the different names and the path to put them in (which results in a command line that's too long for the Peoplesoft process scheduler). Any thoughts? ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> jwomeldo@fastenal.com 1/28/2005 12:18 PM >>> Use the New-Report command as described in this document: http://www.ontko.com/sqr/sqrcard4.html -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Susan Haberman Sent: Friday, January 28, 2005 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] naming multiple reports Hi, I am trying to name multiple reports instead of using the default naming convention reportname_instance_#.lis In the process scheduler manager>use>process definitions>override options I have tried several options: 1) Parameter List: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis This sqr runs successfully but uses default name. 2) Command Line: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Command Line: Override -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Parameter List: Append -MR 5 Command Line: Append -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis These processes error with the following message: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running Has anyone successfully managed to rename the output files? We are running Oracle on a Unix server. Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 19:25:56 2005 From: "Steve Cavill" Subject: RE: [sqr-users] naming multiple reports Date: Sat, 29 Jan 2005 11:23:43 +1100 Yes that is a problem if the command line is too long. Maybe you could modify the Process Scheduler SQR execution script to rename the .lis files after SQR has finished? Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Jamie Harris Sent: Saturday, 29 January 2005 9:13 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] naming multiple reports What if you had multiple reports "open" at once and needed to be able to use the "use-report" command to go between them? I have a report that produces a report of successes, a report of errors and a report of warnings. Each row of data could potentially be one of the three, so I can't simply process all of report 1's data then say "new-report" to start the next one. I haven't been able to find a way to do that without specifying with -f all the different names and the path to put them in (which results in a command line that's too long for the Peoplesoft process scheduler). Any thoughts? ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> jwomeldo@fastenal.com 1/28/2005 12:18 PM >>> Use the New-Report command as described in this document: http://www.ontko.com/sqr/sqrcard4.html -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Susan Haberman Sent: Friday, January 28, 2005 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] naming multiple reports Hi, I am trying to name multiple reports instead of using the default naming convention reportname_instance_#.lis In the process scheduler manager>use>process definitions>override options I have tried several options: 1) Parameter List: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis This sqr runs successfully but uses default name. 2) Command Line: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Command Line: Override -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Parameter List: Append -MR 5 Command Line: Append -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis These processes error with the following message: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running Has anyone successfully managed to rename the output files? We are running Oracle on a Unix server. Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jan 28 19:33:06 2005 Date: Fri, 28 Jan 2005 16:32:20 -0800 (PST) From: Jawwad Ahmad Subject: [sqr-users] (SQR 4702) Line found outside paragraph. Hi, I am getting following error when I try to run some of my SQRs with "SQR for Peoplesoft v8.21.06" "Error on line 1: (SQR 4702) Line found outside paragraph." First line has nothing except #include setenv.sqc. Also, these same SQRs run fine with SQR for Peoplesoft v8.19.07. Interestingly, I am able to run some other SQR programs with both versions (8.19 and 8.21), which indicates that there is no issue with paths etc. I will appreciate any help in resolving this issue. Jawwad __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 29 10:28:12 2005 Date: Sat, 29 Jan 2005 10:26:33 -0500 From: "George Jansen" Subject: Re: [sqr-users] (SQR 4702) Line found outside paragraph. I believe that this means that a command is found outside a section where i= t may legally be placed, i.e. having a Begin-Select outside a the Begin/End= -Program or Procedure block. I can imagine #includes affecting this by the = content of the code they pull in. >>> jawwadsh@yahoo.com 01/28/05 7:32 PM >>> Hi, I am getting following error when I try to run some of my SQRs with "SQR for Peoplesoft v8.21.06" "Error on line 1: (SQR 4702) Line found outside paragraph." First line has nothing except #include setenv.sqc. Also, these same SQRs run fine with SQR for Peoplesoft v8.19.07.=20 Interestingly, I am able to run some other SQR programs with both versions (8.19 and 8.21), which indicates that there is no issue with paths etc. I will appreciate any help in resolving this issue. Jawwad =09=09 __________________________________=20 Do you Yahoo!?=20 All your favorites on one personal page * Try My Yahoo! http://my.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 29 10:42:54 2005 From: "the dragon" Subject: Re: [sqr-users] (SQR 4702) Line found outside paragraph. Date: Sat, 29 Jan 2005 09:40:32 -0600 post the entire sqr program... PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I believe that this means that a command is found outside a section where it may legally be placed, i.e. having a Begin-Select outside a the Begin/End-Program or Procedure block. I can imagine #includes affecting this by the content of the code they pull in. >>> jawwadsh@yahoo.com 01/28/05 7:32 PM >>> Hi, I am getting following error when I try to run some of my SQRs with "SQR for Peoplesoft v8.21.06" "Error on line 1: (SQR 4702) Line found outside paragraph." First line has nothing except #include setenv.sqc. Also, these same SQRs run fine with SQR for Peoplesoft v8.19.07. Interestingly, I am able to run some other SQR programs with both versions (8.19 and 8.21), which indicates that there is no issue with paths etc. I will appreciate any help in resolving this issue. Jawwad __________________________________ Do you Yahoo!? All your favorites on one personal page * Try My Yahoo! http://my.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 29 11:06:35 2005 Date: Sat, 29 Jan 2005 11:05:37 -0500 From: "Larry Roux" Subject: Re: [sqr-users] (SQR 4702) Line found outside paragraph. The error at line 1 could be within your program, or any of the include files. make sure all the files you are including (those being included in the includes, etc) are all OK. The easiest method is to check any includes that are NOT in the programs that are already working (as long as you are sure that these are the ones being selected - ie they share the same -i flag) Larry Roux Syracuse University lroux@syr.edu >>> gjansen@aflcio.org 01/29/05 10:26 AM >>> I believe that this means that a command is found outside a section where it may legally be placed, i.e. having a Begin-Select outside a the Begin/End-Program or Procedure block. I can imagine #includes affecting this by the content of the code they pull in. >>> jawwadsh@yahoo.com 01/28/05 7:32 PM >>> Hi, I am getting following error when I try to run some of my SQRs with "SQR for Peoplesoft v8.21.06" "Error on line 1: (SQR 4702) Line found outside paragraph." First line has nothing except #include setenv.sqc. Also, these same SQRs run fine with SQR for Peoplesoft v8.19.07. Interestingly, I am able to run some other SQR programs with both versions (8.19 and 8.21), which indicates that there is no issue with paths etc. I will appreciate any help in resolving this issue. Jawwad __________________________________ Do you Yahoo!? All your favorites on one personal page * Try My Yahoo! http://my.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jan 29 12:17:38 2005 Date: Sat, 29 Jan 2005 12:17:56 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] naming multiple reports That might work, but I think I'll just stick with the default names. :) Thanks though. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> steve.cavill@infoclarity.com.au 01/28/05 7:23 PM >>> Yes that is a problem if the command line is too long. Maybe you could modify the Process Scheduler SQR execution script to rename the .lis files after SQR has finished? Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Jamie Harris Sent: Saturday, 29 January 2005 9:13 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] naming multiple reports What if you had multiple reports "open" at once and needed to be able to use the "use-report" command to go between them? I have a report that produces a report of successes, a report of errors and a report of warnings. Each row of data could potentially be one of the three, so I can't simply process all of report 1's data then say "new-report" to start the next one. I haven't been able to find a way to do that without specifying with -f all the different names and the path to put them in (which results in a command line that's too long for the Peoplesoft process scheduler). Any thoughts? ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> jwomeldo@fastenal.com 1/28/2005 12:18 PM >>> Use the New-Report command as described in this document: http://www.ontko.com/sqr/sqrcard4.html -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Susan Haberman Sent: Friday, January 28, 2005 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] naming multiple reports Hi, I am trying to name multiple reports instead of using the default naming convention reportname_instance_#.lis In the process scheduler manager>use>process definitions>override options I have tried several options: 1) Parameter List: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis This sqr runs successfully but uses default name. 2) Command Line: Append -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Command Line: Override -MR 5 -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis and Parameter List: Append -MR 5 Command Line: Append -FDedReg.lis -FLibMut.lis -FCombFnd.lis -Fcwufcu.lis -Fwsecu.lis These processes error with the following message: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running Has anyone successfully managed to rename the output files? We are running Oracle on a Unix server. Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jan 30 23:10:05 2005 Date: Sun, 30 Jan 2005 20:08:54 -0800 (PST) From: Srinivasan L Subject: [sqr-users] Help reg. ORA-01460: unimplemented or unreasonable conversion When i'm inserting to a table it gives me this error. Application / System Error|1460.000000000000000|ORA-01460: unimplemented or unreasonable conversion the insert statement is begin-sql on-error=Catch_SQL insert into PROBLEMTABLE ( SC_CODE, ACADEMIC_YEAR, LVL_XCODE, STR_XCODE, CDATE1, CDATE2, CDATE3, CDATE4, T1DAYS_NO, T2DAYS_NO, T3DAYS_NO, T4DAYS_NO, S1DAYS_NO, S2DAYS_NO, T1START_DATE, T1END_DATE, T2START_DATE, T2END_DATE, T3START_DATE, T3END_DATE, T4START_DATE, T4END_DATE) values ( $gSCCode, $NAcadYr, $gLvlCode, $termStrmCode, TO_DATE($t1end_date, 'DD/MM/YYYY'),TO_DATE($t2end_date, 'DD/MM/YYYY'), TO_DATE($t3end_date, 'DD/MM/YYYY'),TO_DATE($t4end_date, 'DD/MM/YYYY'), #t1days_no, #t2days_no, #t3days_no, #t4days_no, #s1days_no,#s2days_no, TO_DATE($t1start_date, 'DD/MM/YYYY'), TO_DATE($t1end_date, 'DD/MM/YYYY'), TO_DATE($t2start_date, 'DD/MM/YYYY'), TO_DATE($t2end_date, 'DD/MM/YYYY'), TO_DATE($t3start_date, 'DD/MM/YYYY'), TO_DATE($t3end_date, 'DD/MM/YYYY'), TO_DATE($t4start_date, 'DD/MM/YYYY'), TO_DATE($t4end_date, 'DD/MM/YYYY')) end-sql end-if When i print the values b4 printing its giving all the values correctly. I'm able to insert to other tables... All the values are withing the varchar range and the date filds are ok. Can anyone help me in this regard. Thx Srini ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ May today be better than yesterday, but, not as good as tomorrow. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jan 30 23:52:26 2005 Date: Sun, 30 Jan 2005 23:51:24 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Help reg. ORA-01460: unimplemented or unreasonableconversion My guess is that it is in the to_date() functions. Also, are you sure you are passing the correct field types (ie #var into a number field and $var into a character field)? 90% of my coding errors are found just by pasting the code into a SQL Tool with the variables filled in. Usually a SQL tool will leave the cursor at a place where the error occured, giving you a good idea where to start. Larry Roux Syracuse University lroux@syr.edu >>> l_srini_vasan@yahoo.com 01/30/05 11:08 PM >>> When i'm inserting to a table it gives me this error. Application / System Error|1460.000000000000000|ORA-01460: unimplemented or unreasonable conversion the insert statement is begin-sql on-error=Catch_SQL insert into PROBLEMTABLE ( SC_CODE, ACADEMIC_YEAR, LVL_XCODE, STR_XCODE, CDATE1, CDATE2, CDATE3, CDATE4, T1DAYS_NO, T2DAYS_NO, T3DAYS_NO, T4DAYS_NO, S1DAYS_NO, S2DAYS_NO, T1START_DATE, T1END_DATE, T2START_DATE, T2END_DATE, T3START_DATE, T3END_DATE, T4START_DATE, T4END_DATE) values ( $gSCCode, $NAcadYr, $gLvlCode, $termStrmCode, TO_DATE($t1end_date, 'DD/MM/YYYY'),TO_DATE($t2end_date, 'DD/MM/YYYY'), TO_DATE($t3end_date, 'DD/MM/YYYY'),TO_DATE($t4end_date, 'DD/MM/YYYY'), #t1days_no, #t2days_no, #t3days_no, #t4days_no, #s1days_no,#s2days_no, TO_DATE($t1start_date, 'DD/MM/YYYY'), TO_DATE($t1end_date, 'DD/MM/YYYY'), TO_DATE($t2start_date, 'DD/MM/YYYY'), TO_DATE($t2end_date, 'DD/MM/YYYY'), TO_DATE($t3start_date, 'DD/MM/YYYY'), TO_DATE($t3end_date, 'DD/MM/YYYY'), TO_DATE($t4start_date, 'DD/MM/YYYY'), TO_DATE($t4end_date, 'DD/MM/YYYY')) end-sql end-if When i print the values b4 printing its giving all the values correctly. I'm able to insert to other tables... All the values are withing the varchar range and the date filds are ok. Can anyone help me in this regard. Thx Srini ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ May today be better than yesterday, but, not as good as tomorrow. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 31 10:15:07 2005 Date: Mon, 31 Jan 2005 07:14:06 -0800 (PST) From: Jawwad Ahmad Subject: [sqr-users] (SQR 4702) Line found outside paragraph. I checked again, all my commands are within begin/end sections, and the same program is working fine with v8.19 (with the same include files). I also tried by removing all other includes (and calls to procedures within them) from the program, so the only includes left were setenv.sqc and setup32.sqc. Again I got the same error with 8.21, while it worked fine with 8.19 (I know these 2 includes are ok, as I used them in a couple of other SQRs nd they worked in both 8.19 and 8.21) I am really stumped by this problem. Help! Jawwad > ATTACHMENT part 3.3 message/rfc822 > From: "Larry Roux" > Subject: Re: [sqr-users] (SQR 4702) Line found > outside paragraph. > Date: Sat, 29 Jan 2005 11:05:37 -0500 > To: > > The error at line 1 could be within your program, or > any of the include > files. make sure all the files you are including > (those being included > in the includes, etc) are all OK. The easiest > method is to check any > includes that are NOT in the programs that are > already working (as long > as you are sure that these are the ones being > selected - ie they share > the same -i flag) > > > Larry Roux > Syracuse University > lroux@syr.edu > > >>> gjansen@aflcio.org 01/29/05 10:26 AM >>> > I believe that this means that a command is found > outside a section > where it may legally be placed, i.e. having a > Begin-Select outside a the > Begin/End-Program or Procedure block. I can imagine > #includes affecting > this by the content of the code they pull in. > > >>> jawwadsh@yahoo.com 01/28/05 7:32 PM >>> > Hi, > I am getting following error when I try to run some > of > my SQRs with "SQR for Peoplesoft v8.21.06" > > "Error on line 1: > (SQR 4702) Line found outside paragraph." > > First line has nothing except #include setenv.sqc. > Also, these same SQRs run fine with SQR for > Peoplesoft > v8.19.07. > Interestingly, I am able to run some other SQR > programs with both versions (8.19 and 8.21), which > indicates that there is no issue with paths etc. > I will appreciate any help in resolving this issue. > > Jawwad __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 31 14:39:18 2005 From: Bruce Burnell Date: Mon, 31 Jan 2005 11:37:17 -0800 Subject: [sqr-users] Double lined Headings in CSV We have an SQR that produces a .csv file. We are doing this using the 'write' rather than 'print' verbs. I recognize that is a point of debate in itself, but we have found that for some extracts, it is much cleaner. Now some of the column headings are long headings for short fields. We would like to stack them, but within the same cell. Is there a character we can insert that would cause a line break within a cell? Some that would be equivalent to when you press Alt-Enter in a spreadsheet cell? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 31 14:53:00 2005 From: Bob Stone Subject: RE: [sqr-users] Double lined Headings in CSV Date: Mon, 31 Jan 2005 13:51:54 -0600 When I have created CSV files I will make 2 lines of header, and longer headings take up 2 rows (audits passed) whereas shorter headings I just print on the 2nd row (single). It looks quite allright. You just have to remember that whenever you're printing out the header rows you need to set the rowcounter +2. Example: Part Cnt Audits Normal (normal) Single Audit Passed (datarow1) 10 6 5 5 If that solution is what you want, perhaps you could try changing the row height and setting the 'wrap-around' feature in Excel. I dont know if those are features that CSV's accept, but you can easily find out. Save one CSV copy with the normal header line in there, and save another with the height changed and wrap around set for those cells. If you see a reproducable difference between the 2 files, then you can use that to set height and wrap around in your SQR for those cells. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bruce Burnell Sent: Monday, January 31, 2005 1:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] Double lined Headings in CSV We have an SQR that produces a .csv file. We are doing this using the 'write' rather than 'print' verbs. I recognize that is a point of debate in itself, but we have found that for some extracts, it is much cleaner. Now some of the column headings are long headings for short fields. We would like to stack them, but within the same cell. Is there a character we can insert that would cause a line break within a cell? Some that would be equivalent to when you press Alt-Enter in a spreadsheet cell? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 31 15:13:39 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Double lined Headings in CSV Date: Mon, 31 Jan 2005 14:12:19 -0600 The Alt-Enter translates to CHR(10). This should get you a two-line heading: LET $Heading = 'Line 1' || CHR(10) || 'Line 2' -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Bruce Burnell Sent: Monday, January 31, 2005 1:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] Double lined Headings in CSV We have an SQR that produces a .csv file. We are doing this using the 'write' rather than 'print' verbs. I recognize that is a point of debate in itself, but we have found that for some extracts, it is much cleaner. Now some of the column headings are long headings for short fields. We would like to stack them, but within the same cell. Is there a character we can insert that would cause a line break within a cell? Some that would be equivalent to when you press Alt-Enter in a spreadsheet cell? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jan 31 18:48:16 2005 Date: Mon, 31 Jan 2005 14:47:29 -0900 From: Melody Sayles Subject: [sqr-users] Clob, sqr and sql variables Oracle 9, sqr 8, unix I'm using an sqr program to create a report based on a table where one of the columns is a CLOB. I found the DBMS_LOB.GETLENGTH function. All I need from the clob column is if there is text in there or is it null. I haven't been able to find the right syntax to move the value of a variable from the sql to sqr so that I can set a flag of null or 'Y'. Code so far (and I'm open to suggestions): begin-procedure Get-Text begin-sql DECLARE locator_var clob;; length_var integer;; BEGIN select sor2ppt_text into locator_var from sor2ppt where sor2ppt_pidm = $control_pidm and sor2ppt_contact_date = $orig_contact_date and sor2ppt_contact_from_time = $contact_from_time;; length_var := DBMS_LOB.GETLENGTH(locator_var);; END;; end-sql !if $length_var > 0 ! Let $comments = 'Y' !else ! Let $comments = '' !end-if; end-procedure Get-Text Thanks in advance, Melody _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 00:00:50 2005 Date: Tue, 1 Feb 2005 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 08:11:21 2005 Date: Tue, 01 Feb 2005 08:08:57 -0500 From: "George Jansen" Subject: Re: [sqr-users] Clob, sqr and sql variables CLOBs allow you to check their NULL/NOT NULL status without the need for PL/SQL: SQL> create table whizbang (a number, b clob); Table created. SQL> insert into whizbang (a) values (1); 1 row created. SQL> / 1 row created. SQL> / 1 row created. SQL> select count(*) from whizbang where b is null; COUNT(*) ---------- 3 SQL> c/null/not null 1* select count(*) from whizbang where b is not null SQL> / COUNT(*) ---------- 0 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 08:22:50 2005 Date: Tue, 1 Feb 2005 14:21:21 +0100 From: edwin.hommes@bluewin.ch Subject: [sqr-users] Clob, sqr and sql variables Rather than moving LONG field values around, especially if you only want to know whether or not it contains a value, you could use a simple oracle select. example select * from table where LONG_field is not null; This returns only those rows which have a value in their long field. hope this helps. >Beginn der beigef=FCgten Nachricht > >From: Melody Sayles >Subject: [sqr-users] Clob, sqr and sql variables >Date: Mon, 31 Jan 2005 14:47:29 -0900 >To: sqr-users@sqrug.org >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > >Oracle 9, sqr 8, unix >I'm using an sqr program to create a report based on a table where one of >the >columns is a CLOB. I found the DBMS_LOB.GETLENGTH function. All I need from >the >clob column is if there is text in there or is it null. I haven't been able >to >find the right syntax to move the value of a variable from the sql to sqr > so >that I can set a flag of null or 'Y'. >Code so far (and I'm open to suggestions): >begin-procedure Get-Text >begin-sql >DECLARE > locator_var clob;; > length_var integer;; >BEGIN > select sor2ppt_text into locator_var > from sor2ppt > where sor2ppt_pidm =3D $control_pidm > and sor2ppt_contact_date =3D $orig_contact_date > and sor2ppt_contact_from_time =3D $contact_from_time;; > length_var :=3D DBMS_LOB.GETLENGTH(locator_var);; >END;; >end-sql > >!if $length_var > 0 >! Let $comments =3D 'Y' >!else >! Let $comments =3D '' >!end-if; >end-procedure Get-Text > >Thanks in advance, >Melody > > > > >Ende der beigef=FCgten Nachricht > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 12:20:36 2005 Date: Tue, 01 Feb 2005 12:19:31 -0500 From: "Jenny Mckeon" Subject: [sqr-users] Converting Peoplesoft EMPLID programatically We have been asked to convert the "emplid" field in Peoplesoft to a new value (badge ID) for all 10,000 employees. As it is the key field on so many records in Peoplesoft, I know this will be a challenge. Peoplesoft has a delivered online function that will do the conversion to all the necessary tables (even applicant tables) for a single emplid. At the moment my best plan is to look a the Peoplecode and try and embed it in an SQR program . Has anyone done this, or perhaps accomplished the conversion another way ? Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst (352) 265-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 12:31:39 2005 Date: Tue, 01 Feb 2005 12:30:41 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Converting Peoplesoft EMPLID programatically This question would be better posted to the ps.tech listserv You have to do this with much care as not all fields that hold an EMPLID are actually called EMPLID. (PeopleSoft's process misses these too) What you may want to do is something like this: step 0: Purge tables that are not necessary (logs, etc) 1) create a temp table with one field RECNAME 2) find all the tables with fields containing EMPLID, then check if there are rows in that table (I would bet you don't have rows in 50% of the PS tables). If so insert the table name in the temp table 3) Now select all the rows from PS_PERSONAL_DATA. For each of these, do an update on the tables in the temp table updating the ID. 4) Update the statistics on all the tables in your DB. That will take a loooooong time - although 10,000 is not very many people. It all depends how much data you have. You may also need to add indexes to speed things up. Larry Roux Syracuse University lroux@syr.edu >>> MCKEON@shands.ufl.edu 2/1/2005 12:19:31 PM >>> We have been asked to convert the "emplid" field in Peoplesoft to a new value (badge ID) for all 10,000 employees. As it is the key field on so many records in Peoplesoft, I know this will be a challenge. Peoplesoft has a delivered online function that will do the conversion to all the necessary tables (even applicant tables) for a single emplid. At the moment my best plan is to look a the Peoplecode and try and embed it in an SQR program . Has anyone done this, or perhaps accomplished the conversion another way ? Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst (352) 265-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 13:20:05 2005 Date: Tue, 01 Feb 2005 09:19:24 -0900 From: Melody Sayles Subject: Re: [sqr-users] Clob, sqr and sql variables George and Edwin, Thank you for your answers. Obviously I was making it much harder than it needed to be! Melody edwin.hommes@bluewin.ch wrote: > Rather than moving LONG field values around, especially if you only want > to know whether or not it contains a value, you could use a simple oracle > select. > example > select * > from table > where LONG_field is not null; > This returns only those rows which have a value in their long field. > hope this helps. > > >Subject: [sqr-users] Clob, sqr and sql variables > >Date: Mon, 31 Jan 2005 14:47:29 -0900 > >To: sqr-users@sqrug.org > >I'm using an sqr program to create a report based on a table where one of > >the > >columns is a CLOB. I found the DBMS_LOB.GETLENGTH function. All I need from > >the > >clob column is if there is text in there or is it null. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 21:14:27 2005 Date: Tue, 1 Feb 2005 18:13:45 -0800 From: marc pechaitis Subject: [sqr-users] I need a date! .....part of a datetime, can anyone help? I am writing a SQR that will create a check and in order to do this, I need to get the current date in MON DD, YYYY format (without the hours, min and seconds)....and am not having much luck in doing so. So, suppose I have: Let $Date = datenow() What would I need to do to the '$Date' variable to allow me to display only the MON DD, YYYY if I were eventually plan on using: print $Date (+1, 2) Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 01 22:12:28 2005 Date: Tue, 1 Feb 2005 20:11:46 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] I need a date! .....part of a datetime, can anyone help? Try this: let $Date = edit(datenow(), 'MON DD, YYYY') Kevin Reschenberg SparkPath Technologies, Inc. www.sparkpath.com www.sqr-info.com -------- Original Message -------- Subject: [sqr-users] I need a date! .....part of a datetime, can anyone help? From: "marc pechaitis" Date: Tue, February 01, 2005 6:13 pm To: sqr-users@sqrug.org I am writing a SQR that will create a check and in order to do this, I need to get the current date in MON DD, YYYY format (without the hours, min and seconds)....and am not having much luck in doing so. So, suppose I have: Let $Date = datenow() What would I need to do to the '$Date' variable to allow me to display only the MON DD, YYYY if I were eventually plan on using: print $Date (+1, 2) Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 02 11:02:36 2005 Date: Wed, 2 Feb 2005 08:01:54 -0800 From: marc pechaitis Subject: Re: [sqr-users] I need a date! .....part of a datetime, can anyone help? That did the trick! Thank you very much, Kevin. Have a great day... On Tue, 1 Feb 2005 20:11:46 -0700, kevin.reschenberg@sparkpath.com wrote: > Try this: > > let $Date = edit(datenow(), 'MON DD, YYYY') > > Kevin Reschenberg > SparkPath Technologies, Inc. > www.sparkpath.com > www.sqr-info.com > > > -------- Original Message -------- > Subject: [sqr-users] I need a date! .....part of a datetime, can > anyone help? > From: "marc pechaitis" > Date: Tue, February 01, 2005 6:13 pm > To: sqr-users@sqrug.org > > I am writing a SQR that will create a check and in order to do this, I > need to get the current date in MON DD, YYYY format (without the > hours, min and seconds)....and am not having much luck in doing so. > > So, suppose I have: > > Let $Date = datenow() > > What would I need to do to the '$Date' variable to allow me to display > only the MON DD, YYYY if I were eventually plan on using: > > print $Date (+1, 2) > > Thanks! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 03 11:49:32 2005 From: "Alexander, Steve" Date: Thu, 3 Feb 2005 08:47:09 -0800 Subject: [sqr-users] PDFLib Error (9): Page size must be positive We are running SQR for Peoplesoft version 8.20.06 from the Peoplesoft Process Scheduler on a Sun Solaris system. We have no trouble printing to a LIS file. We got an error message when trying to output to a PDF file: "PDFLib Error (9): Page size must be positive." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 04 10:55:53 2005 Date: Fri, 04 Feb 2005 10:54:37 -0500 From: Betty DeMatto Subject: [sqr-users] HTML in SQR (PeopleSoft) This is a multi-part message in MIME format... --------------060009050005000208050603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am using HTML in an SQR for the first time and have a few questions about what can and cannot be done in PeopleSoft. We have a web reporting system that uses Oracle Reports that resides outside of PeopleSoft. Some our reports are written so that you can drill-down on a column value and have a new report called (for detail). We would like to do the same within PeopleSoft and I've found 2 ways to possibly do it. I've written an SQR using HTML with hyperlinks to the run control page of what would be the drill-down report. Unfortunately this approach requires the user to actually run the next report using the run control, etc. The other approach I've attempted is creating all of the reports (the main report and the 'drill-down' reports) within the same SQR and then use anchors to find the spot in the drill-downs that corresponds to the main report link. The problem I had here was that the main report is written to our webserver (PSREPORTS directory) but the drill-downs are written to the Unix SQR directory where they will be overwritten as soon as another user runs the same report. We are using SQR for PeopleSoft 8.44.10 on /Sun/SunOS 5.6/Oracle 8.0.6. Has anyone accomplished what I am trying to accomplish and if so can you give me any insight on what I need to do to make it happen? Any information (especially if I'm wasting my time trying to do this) would be greatly appreciated. I've been using SQR in PeopleSoft and Other Applications for reference. If you can recommend any other reference material I'd appreciate that as well. Thanks in advance, Betty --------------060009050005000208050603 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------060009050005000208050603 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------060009050005000208050603-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 04 13:28:48 2005 Subject: Re: [sqr-users] HTML in SQR (PeopleSoft) Date: Fri, 4 Feb 2005 18:27:51 -0000 From: Hi Betty, not directly related to PeopleSoft is Darrin Millar's book see http://www.sqrevangelism.com/. The book has a discussion on Table of Contents and bursting in SQR. When reading it, replace sqc s with incs. As long as the SQR is generating the html and not PeopleSoft you have complete control. John Willson Betty DeMatto said: > I am using HTML in an SQR for the first time and have a few questions > about what can and cannot be done in PeopleSoft. We have a web > reporting system that uses Oracle Reports that resides outside of > PeopleSoft. Some our reports are written so that you can drill-down on > a column value and have a new report called (for detail). We would like > to do the same within PeopleSoft and I've found 2 ways to possibly do > it. I've written an SQR using HTML with hyperlinks to the run control > page of what would be the drill-down report. Unfortunately this > approach requires the user to actually run the next report using the run > control, etc. The other approach I've attempted is creating all of the > reports (the main report and the 'drill-down' reports) within the same > SQR and then use anchors to find the spot in the drill-downs that > corresponds to the main report link. The problem I had here was that > the main report is written to our webserver (PSREPORTS directory) but > the drill-downs are written to the Unix SQR directory where they will be > overwritten as soon as another user runs the same report. > > We are using SQR for PeopleSoft 8.44.10 on /Sun/SunOS 5.6/Oracle 8.0.6. > > Has anyone accomplished what I am trying to accomplish and if so can you > give me any insight on what I need to do to make it happen? Any > information (especially if I'm wasting my time trying to do this) would > be greatly appreciated. I've been using SQR in PeopleSoft and Other > Applications for reference. If you can recommend any other reference > material I'd appreciate that as well. > > Thanks in advance, > Betty > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 04 13:32:30 2005 Date: Fri, 04 Feb 2005 13:30:06 -0500 From: Betty DeMatto Subject: Re: [sqr-users] HTML in SQR (PeopleSoft) This is a multi-part message in MIME format... --------------050705020604020707080707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks so much. I'll check it out. Betty jwillson@dssltd.com wrote: >Hi Betty, not directly related to PeopleSoft is Darrin Millar's book see >http://www.sqrevangelism.com/. The book has a discussion on Table of >Contents and bursting in SQR. When reading it, replace sqc s with incs. As >long as the SQR is generating the html and not PeopleSoft you have complete >control. > >John Willson > > >Betty DeMatto said: > > > >>I am using HTML in an SQR for the first time and have a few questions >>about what can and cannot be done in PeopleSoft. We have a web >>reporting system that uses Oracle Reports that resides outside of >>PeopleSoft. Some our reports are written so that you can drill-down on >>a column value and have a new report called (for detail). We would like >>to do the same within PeopleSoft and I've found 2 ways to possibly do >>it. I've written an SQR using HTML with hyperlinks to the run control >>page of what would be the drill-down report. Unfortunately this >>approach requires the user to actually run the next report using the run >>control, etc. The other approach I've attempted is creating all of the >>reports (the main report and the 'drill-down' reports) within the same >>SQR and then use anchors to find the spot in the drill-downs that >>corresponds to the main report link. The problem I had here was that >>the main report is written to our webserver (PSREPORTS directory) but >>the drill-downs are written to the Unix SQR directory where they will be >>overwritten as soon as another user runs the same report. >> >>We are using SQR for PeopleSoft 8.44.10 on /Sun/SunOS 5.6/Oracle 8.0.6. >> >>Has anyone accomplished what I am trying to accomplish and if so can you >>give me any insight on what I need to do to make it happen? Any >>information (especially if I'm wasting my time trying to do this) would >>be greatly appreciated. I've been using SQR in PeopleSoft and Other >>Applications for reference. If you can recommend any other reference >>material I'd appreciate that as well. >> >>Thanks in advance, >>Betty >> >> >> > > > > > --------------050705020604020707080707 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------050705020604020707080707 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------050705020604020707080707-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Feb 05 06:05:26 2005 Date: Sat, 5 Feb 2005 06:00:36 -0500 From: "JEAN SUNDERMIER" Subject: [sqr-users] automated response I will be out of the office until Monday, February 14, 2005. I will respond at that time. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 09 09:43:24 2005 From: "Anantha Rao" Date: Wed, 9 Feb 2005 20:12:58 +0530 Subject: [sqr-users] HPS HI All How can we generate multiple PDF file in a single SQR code. By default the SQR generates PDF format output. Is there any way where I can open multiple PDF file handles and use PRINT command to write data to specific PDF file. Your help will be greatly appreciated. Thanks, Anantha Rao L & T Infotech This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 09 09:51:32 2005 Date: Wed, 09 Feb 2005 09:50:29 -0500 From: "Larry Roux" Subject: Re: [sqr-users] HPS define the reports and then use use-report to indicate which one it goes to Larry Roux Syracuse University lroux@syr.edu >>> Anantha.Rao@lntinfotech.com 2/9/2005 9:42:58 AM >>> HI All How can we generate multiple PDF file in a single SQR code. By default the SQR generates PDF format output. Is there any way where I can open multiple PDF file handles and use PRINT command to write data to specific PDF file. Your help will be greatly appreciated. Thanks, Anantha Rao L & T Infotech This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 04:48:19 2005 From: "Anantha Rao" Date: Thu, 10 Feb 2005 15:17:39 +0530 Subject: [sqr-users] PDF - Printing Hi , I have a requirement to generate a PDF using SQR which contains Combo boxes and radio buttons Is it possible to have any controls on a PDF using SQR programs? If yes please help me with the details of how to go about. Thanx in advance, Thanx to Larry Roux it was suggestion very much helpful in creating multiple PDF output Thanks, Anantha Rao L & T Infotech, Powai This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 07:39:34 2005 Date: Thu, 10 Feb 2005 08:37:59 -0400 From: "PeterG Clark" Subject: [sqr-users] UltraEdit We are evaluating upgrading our UltraEdit v8 to UltraEdit v11 but are encountering problems launching SQR's (via Tool Configuration). Have any other SQR users upgraded to UltraEdit v11 and encountered similar problems when they did? If so, how did you resolve the problem? Thanks in advance. This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 09:15:39 2005 From: Ray Ontko Date: Thu, 10 Feb 2005 09:14:57 -0500 Subject: Re: [sqr-users] PDF - Printing The "fill-in form" features of PDF cannot be created using SQR. However, you can create something that looks like a form using the GRAPHIC BOX, HORZ-LINE, and VERT-LINE features of SQR, but I suspect that's not what you have in mind. Ray On Thu, Feb 10, 2005 at 03:17:39PM +0530, Anantha Rao wrote: > Hi , > > I have a requirement to generate a PDF using SQR which contains Combo boxes > and radio buttons > Is it possible to have any controls on a PDF using SQR programs? If yes > please help me with the details > of how to go about. > > Thanx in advance, > > Thanx to Larry Roux it was suggestion very much helpful in creating > multiple PDF output > > Thanks, > Anantha Rao > L & T Infotech, Powai > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This email may contain confidential or privileged information for the > intended recipient(s). If you are not the intended recipient, please do not > use or disseminate the information, notify the sender and delete it from > your system. Thanks > > > > ______________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 09:49:21 2005 Subject: RE: [sqr-users] PDF - Printing From: "Anantha Rao" Date: Thu, 10 Feb 2005 20:18:56 +0530 HI Thanks for the reply from ray also . i am running it on Unix i mean i really want to show a check box which is checked as correct. can I use images ? Thanks, Anantha Rao L & T Infotech, Powai Jeff.Steinfeldt@wel lsfargo.com To: Anantha.Rao@lntinfotech.com cc: 10/02/2005 08:13 PM Subject: RE: [sqr-users] PDF - Printing If you are running under Windows then you might be able to accomplish this with VBScript. Would most likely require that you have license for Adobe SDK though. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Anantha Rao Sent: Thursday, February 10, 2005 3:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] PDF - Printing Hi , I have a requirement to generate a PDF using SQR which contains Combo boxes and radio buttons Is it possible to have any controls on a PDF using SQR programs? If yes please help me with the details of how to go about. Thanx in advance, Thanx to Larry Roux it was suggestion very much helpful in creating multiple PDF output Thanks, Anantha Rao L & T Infotech, Powai This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 10:59:56 2005 Date: Thu, 10 Feb 2005 11:58:19 -0400 From: "PeterG Clark" Subject: Re: [sqr-users] UltraEdit We were able to resolve this problem. Thanks anyway. >>> PeterG.Clark@vac-acc.gc.ca 2005/02/10 08:37:59 >>> We are evaluating upgrading our UltraEdit v8 to UltraEdit v11 but are encountering problems launching SQR's (via Tool Configuration). Have any other SQR users upgraded to UltraEdit v11 and encountered similar problems when they did? If so, how did you resolve the problem? Thanks in advance. This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 11:12:18 2005 From: "the dragon" Subject: Re: [sqr-users] UltraEdit Date: Thu, 10 Feb 2005 10:10:09 -0600 Heh. Well, share the solution so others can search for it. :-p peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- We were able to resolve this problem. Thanks anyway. >>> PeterG.Clark@vac-acc.gc.ca 2005/02/10 08:37:59 >>> We are evaluating upgrading our UltraEdit v8 to UltraEdit v11 but are encountering problems launching SQR's (via Tool Configuration). Have any other SQR users upgraded to UltraEdit v11 and encountered similar problems when they did? If so, how did you resolve the problem? Thanks in advance. This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 11:53:48 2005 Date: Thu, 10 Feb 2005 12:52:15 -0400 From: "PeterG Clark" Subject: Re: [sqr-users] UltraEdit Sorry. Unlike v8.0 which didn't seem to care what was contained in the "Working Directory" field of the Advanced/Tool Configuration dialogue box, this version does seem to care. Specifying a value of "%P" did the trick for us. >>> ceprn@hotmail.com 2005/02/10 12:10:09 >>> Heh. Well, share the solution so others can search for it. :-p peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- We were able to resolve this problem. Thanks anyway. >>> PeterG.Clark@vac-acc.gc.ca 2005/02/10 08:37:59 >>> We are evaluating upgrading our UltraEdit v8 to UltraEdit v11 but are encountering problems launching SQR's (via Tool Configuration). Have any other SQR users upgraded to UltraEdit v11 and encountered similar problems when they did? If so, how did you resolve the problem? Thanks in advance. This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Thanks ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 15:57:15 2005 From: "ruscs ___" Date: Thu, 10 Feb 2005 20:55:00 +0000 Subject: [sqr-users] RE: error while using "unstring" function I am trying to "Unstring" a line from a flat file. line XX: Unstring $Input by ',' into $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13… (into 50 values) and am getting the following error: Error on line XX: (SQR 4705) Program line too long; maximum is 511. Is there a solution? Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 10 16:07:43 2005 From: Bob Stone Subject: RE: [sqr-users] RE: error while using "unstring" function Date: Thu, 10 Feb 2005 15:06:30 -0600 The error looks like it's saying the line you're putting the unstring on is too long. With an unstring command you don't have to put all the $variables on the same line. Here's a few lines of code we have in an SQR that unstrings everything how we want it. ($sepchar is the tab character, we're reading in from a 33 column excel sheet that was saved as a tab-delimited file). ............ UNSTRING $LOADRECORD BY $SEPCHAR INTO $INV_ITEM_ID $COMMENTS $TANC_INTERFACE $STD_PKG_UOM $RESTOCK_FLG $BREAK_PKG $UOM1 $UOMQTY1 $UOMINT1 $UOM2 $UOMQTY2 $UOMINT2 $UOM3 $UOMQTY3 $UOMINT3 $UOM4 $UOMQTY4 $UOMINT4 $UOM5 $UOMQTY5 $UOMINT5 $UOM6 $UOMQTY6 $UOMINT6 $UOM7 $UOMQTY7 $UOMINT7 $UOM8 $UOMQTY8 $UOMINT8 $UOM9 $UOMQTY9 $UOMINT9 ................ so instead of Unstring $Input by ',' into $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13... Unstring $Input by ',' into $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13... ... $V46 $V47 $V48 $V49 $V50 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of ruscs ___ Sent: Thursday, February 10, 2005 2:55 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: error while using "unstring" function I am trying to "Unstring" a line from a flat file. line XX: Unstring $Input by ',' into $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13... (into 50 values) and am getting the following error: Error on line XX: (SQR 4705) Program line too long; maximum is 511. Is there a solution? Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 11 06:40:49 2005 Date: Fri, 11 Feb 2005 06:39:11 -0500 From: Scott McFall Subject: [sqr-users] Brio Intelligence Explorer ProTech, a national IT training organization, is currently seeking a contract Hyperion (aka Brio) Intelligence Explorer instructor with independently developed course materials to deliver an engagement in the Eastern U.S. If interested, please contact Account Representative, Jeff Samay at jsamay@protechtraining.com Scott Redmond McFall ProTechTraining, a division of ProTech Professional Technical Svcs, Inc. 800-373-9188x113 cell 412-445-8070 "Enterprise Systems Specialists" Over 100,000 successfully trained IT professionals since 1990! Class schedules and course information online at: http://www.protechtraining.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 11 18:22:25 2005 Date: Fri, 11 Feb 2005 18:25:16 -0500 From: "Robert K. Foster" Subject: [sqr-users] eps image file for PDF output This is a multi-part message in MIME format... --------------040509040700090800040701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit We are running SQR ver6 on Sun Solaris with a Sybase database. The Sun platform only seems to handle EPS image files so I have an SQR output file in postscript format which seems to work okay and includes the eps format image for our logo. However, I would prefer to output PDF files for reasons of space since they are much smaller than the postscript output (perhaps that's because there is no logo? see next). When I use pdf output the eps image file is not rendered in the output file. Is there any way to use pdf output files on the Sun platform and also use eps image files? Am I missing something? Thanks, Bob. -- === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 rkf@radiology.msu.edu Need a Better Web Browser? Get Firefox! Help spread the word: Join the Spread Firefox Community. --------------040509040700090800040701 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------040509040700090800040701 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------040509040700090800040701-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Feb 13 16:06:43 2005 Date: Mon, 14 Feb 2005 02:35:24 +0530 From: "KAVALAPARA Aravind Subramanian" Subject: [sqr-users] Comparision of Values got from the DATEDIFF function - Reg Hi Users, =20 I have a unique problem during the Condition checking for the variables hav= ing values returned from the DATEDIFF function. My code for getting the val= ues is like this. =20 LET #Time_11_Diff =3D DATEDIFF($Shift_Start_Time,$Time_11,'MINUTE') LET #Time_19_Diff =3D DATEDIFF($Shift_End_Time,$Time_19,'MINUTE')=20=20 LET #Time_18_Diff =3D DATEDIFF($UMP2_Start_Time,$Time_18,'MINUTE')=20 IF #Time_11_Diff < 0 AND #Time_19_Diff > 0 AND #UMP_Count >=3D 2 AND #T= ime_18_Diff > 0 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 In the above If condition, if all the metioned variables are satisfied then= it should do the further processing. But I have a few negitive test condit= ions to be validated in which I need to Check for condition like =20=20 IF #Time_11_Diff =3D 0 ....................... =20 The above condition is truly negitive. But even to that negitive condition = it is doing the further processing which should not be done.=20 =20 Please let me know how to validate this. =20 All responses are appreciated. =20 Thanks, Aravind. Confidentiality Statement: This message is intended only for the individual or entity to which it is a= ddressed. It may contain privileged, confidential information which is exem= pt from disclosure under applicable laws. If you are not the intended recip= ient, please note that you are strictly prohibited from disseminating or di= stributing this information (other than to the intended recipient) or copyi= ng this information. If you have received this communication in error, plea= se notify us immediately by return email. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 06:48:43 2005 From: "Devesh" Date: Mon, 14 Feb 2005 17:23:03 +0530 Subject: [sqr-users] sqr error 4713. Hi , I am getting the following error while trying to run a SQR program. The file exists but still the error occurs. (SQR 4713) Cannot open the #INCLUDE file: 'dynamic.sqi' (2): No such file or directory Any solution? Thanks & regards, Devesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 06:54:44 2005 Date: Mon, 14 Feb 2005 22:52:34 +1100 From: "Alka Chauhan" Subject: Re: [sqr-users] sqr error 4713. Ill be away from office on 15thFeb - 17thFeb,returing to work on 18th feb(Friday). Please contact Jeff Allison on ext 6003 for any urgent matters. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 07:09:12 2005 Subject: Re: [sqr-users] sqr error 4713. From: "Anantha Rao" Date: Mon, 14 Feb 2005 17:37:57 +0530 HI Check the path of INC files are located and which you are referring, is proper. Thanks, Anantha Rao L & T Infotech, Powai Tel: 5 694 84 84. Extn:8747 ======================= ( ) General Business Information (x) Freescale Internal Use Only ( ) Freescale Confidential Proprietary Personal Memorandum |---------+-------------------------------------------------------> | | "Devesh" | | | Sent by: | | | sqr-users-bounces+anantha.rao=lntinfotech.co| | | m@sqrug.org | | | | | | | | | 14/02/2005 05:23 PM | | | Please respond to "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+-------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] sqr error 4713. | >----------------------------------------------------------------------------------------------| Hi , I am getting the following error while trying to run a SQR program. The file exists but still the error occurs. (SQR 4713) Cannot open the #INCLUDE file: 'dynamic.sqi' (2): No such file or directory Any solution? Thanks & regards, Devesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 10:08:38 2005 From: Bob Stone Subject: RE: [sqr-users] Comparision of Values got from the DATEDIFF funct ion - Reg Date: Mon, 14 Feb 2005 09:07:25 -0600 use some well placed 'show' commands, and then look at your log file. Before the big 4 part condition check, write " show 'Before Condition. Time11diff=' to_char(#Time_11_Diff) '. Time19diff=' ...etc " you might have to set those #'s to $ variables before the show, i dont know if to_char works in show. But there is a bit of a problem printing the # variables. Then place a "show ' entered -11, +19, UMP>=2, +18diff LOOP' " inside that IF statment. If it shows up in your log, then the IF was evaluated as 'TRUE'. Then place another inside your other statements. Using those, you can see what IFs happen and what the variables are at that time, and that should help you narrow down your problem. Maybe some values are being set wrong somewhere else. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of KAVALAPARA Aravind Subramanian Sent: Sunday, February 13, 2005 3:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] Comparision of Values got from the DATEDIFF function - Reg Hi Users, I have a unique problem during the Condition checking for the variables having values returned from the DATEDIFF function. My code for getting the values is like this. LET #Time_11_Diff = DATEDIFF($Shift_Start_Time,$Time_11,'MINUTE') LET #Time_19_Diff = DATEDIFF($Shift_End_Time,$Time_19,'MINUTE') LET #Time_18_Diff = DATEDIFF($UMP2_Start_Time,$Time_18,'MINUTE') IF #Time_11_Diff < 0 AND #Time_19_Diff > 0 AND #UMP_Count >= 2 AND #Time_18_Diff > 0 In the above If condition, if all the metioned variables are satisfied then it should do the further processing. But I have a few negitive test conditions to be validated in which I need to Check for condition like IF #Time_11_Diff = 0 ....................... The above condition is truly negitive. But even to that negitive condition it is doing the further processing which should not be done. Please let me know how to validate this. All responses are appreciated. Thanks, Aravind. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 11:56:02 2005 Date: Mon, 14 Feb 2005 10:55:31 -0600 From: "Juan Alvarado" Subject: [sqr-users] SQR/ODBC for Solaris .. I need to know if SQR ODBC in Solaris have their own odbc drivers .... If SQR have any odbc driver in the product how to configure ? I al ready read the installation guide and don't find anything about that .. If SQR don't have any odbc driver in Solaris .. Anyone is running SQR/ODBC in a unix and what Odbc driver ... For example for MS SQLSERVER Thanks Juan Alvarado _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 12:19:25 2005 From: "Peter Burton" Date: Mon, 14 Feb 2005 12:18:11 -0500 Subject: RE: [sqr-users] SQR/ODBC for Solaris .. Juan, SQR/ODBC for Unix (from Hyperion) does include its own ODBC drivers (licensed from DataDirect). When the product is installed (in the odbc directory) there is a sample "odbc.ini". You should look at it to see how to set up your own entries. For MS SQL Server you need to specify the database name, hostname, and port number. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Juan Alvarado Sent: Monday, February 14, 2005 11:56 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] SQR/ODBC for Solaris ..=20 I need to know if SQR ODBC in Solaris have their own odbc drivers .... If SQR have any odbc driver in the product how to configure ? I al ready read the installation guide and don't find anything about that .. If SQR don't have any odbc driver in Solaris .. Anyone is running SQR/ODBC in a unix and what Odbc driver ... For example for MS SQLSERVER Thanks Juan Alvarado _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 12:49:44 2005 Subject: RE: [sqr-users] SQR/ODBC for Solaris .. Date: Mon, 14 Feb 2005 11:49:16 -0600 From: "Juan Alvarado" Thank you very much ..=20=20 -----Original Message----- From: sqr-users-bounces+juan=3Dgyssa.com@sqrug.org [mailto:sqr-users-bounces+juan=3Dgyssa.com@sqrug.org] On Behalf Of Peter Burton Sent: Monday, February 14, 2005 11:18 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQR/ODBC for Solaris ..=20 Juan, SQR/ODBC for Unix (from Hyperion) does include its own ODBC drivers (licensed from DataDirect). When the product is installed (in the odbc directory) there is a sample "odbc.ini". You should look at it to see how to set up your own entries. For MS SQL Server you need to specify the database name, hostname, and port number. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Juan Alvarado Sent: Monday, February 14, 2005 11:56 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] SQR/ODBC for Solaris ..=20 I need to know if SQR ODBC in Solaris have their own odbc drivers .... If SQR have any odbc driver in the product how to configure ? I al ready read the installation guide and don't find anything about that .. If SQR don't have any odbc driver in Solaris .. Anyone is running SQR/ODBC in a unix and what Odbc driver ... For example for MS SQLSERVER Thanks Juan Alvarado _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited.=20 Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 16:26:17 2005 From: "ruscs ___" Date: Mon, 14 Feb 2005 21:24:58 +0000 Subject: [sqr-users] RE: preserving "leading zeros" in a string Hello, I am exporting string values (which may contain numeric values) into a csv file. Some of these numeric values may contain leading zeros (for example, 001111, 02222...) When the import is complete, leading zeros are lost. (1111, 2222). How can these leading zeros be preserved? Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 16:32:57 2005 From: "Aguirre, Jose" Subject: RE: [sqr-users] RE: preserving "leading zeros" in a string Date: Mon, 14 Feb 2005 15:31:39 -0600 Did you create the .csv file from excel? Make sure to open the .csv file on a text editor to make sure that zeroes are preserved there. How are you unstringing the values in your SQR? Thanks, Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of ruscs ___ Sent: Monday, February 14, 2005 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: preserving "leading zeros" in a string Hello, I am exporting string values (which may contain numeric values) into a csv file. Some of these numeric values may contain leading zeros (for example, 001111, 02222...) When the import is complete, leading zeros are lost.=20 (1111, 2222). How can these leading zeros be preserved? Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 16:36:13 2005 Date: Mon, 14 Feb 2005 16:32:54 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] RE: preserving "leading zeros" in a string Are you using excel to open the csv file? The leading zeros may very well exist in the file, but excel will try to format anything that it thinks is a number as a number, and will "remove" leading zeros. Try opening the file using a text editor to see if leading zeros are truly missing. If you want to be able to open the csv in excel and still see the leading zeros, you will need to surround the value in quotes, and precede it with an equal sign ( ="001111" ) so that excel will display the value as 001111. Hope this helps... Don > Hello, > > I am exporting string values (which may contain numeric values) into a csv > file. Some of these numeric values may contain leading zeros (for example, > 001111, 02222...) When the import is complete, leading zeros are lost. > (1111, 2222). How can these leading zeros be preserved? > > Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 16:40:14 2005 From: Bob Stone Subject: RE: [sqr-users] RE: preserving "leading zeros" in a string Date: Mon, 14 Feb 2005 15:37:26 -0600 You can export them with a ' before the string. let $numval = &some_numeric_looking_db_string_w_lead_zero let $numval = '''' || $numval do excel_write_string($numval) !this being some function that prints to csv !but which i'm too lazy to write out. There's also a way to format a column/row/cell to be a TEXT column/row/cell. So you could do it that way. It's a bit more complicated, but I know there's already some postings about it that you could search through. Or, open up a csv file, format the column/row/cell to TEXT, save as a different name, and see what changed. You can recreate that and print that line as a formatter. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of ruscs ___ Sent: Monday, February 14, 2005 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: preserving "leading zeros" in a string Hello, I am exporting string values (which may contain numeric values) into a csv file. Some of these numeric values may contain leading zeros (for example, 001111, 02222...) When the import is complete, leading zeros are lost. (1111, 2222). How can these leading zeros be preserved? Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 16:44:28 2005 Subject: RE: [sqr-users] RE: preserving "leading zeros" in a string Date: Mon, 14 Feb 2005 15:38:10 -0600 From: "Knapp, Richard" Excel does this. It interprets the strings of digits as numbers and theref= ore drops the leading zeros unless the sheet you are opening it up in alrea= dy has that column formatted as text. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Aguirre, Jose Sent: Monday, February 14, 2005 3:32 PM To: 'This list is for discussion about the SQR database reporting language = from Hyperion Solutions.' Subject: RE: [sqr-users] RE: preserving "leading zeros" in a string Did you create the .csv file from excel? Make sure to open the .csv file on a text editor to make sure that zeroes are preserved there. How are you unstringing the values in your SQR? Thanks, Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of ruscs ___ Sent: Monday, February 14, 2005 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: preserving "leading zeros" in a string Hello, I am exporting string values (which may contain numeric values) into a csv file. Some of these numeric values may contain leading zeros (for example, 001111, 02222...) When the import is complete, leading zeros are lost.=20 (1111, 2222). How can these leading zeros be preserved? Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 14 17:51:38 2005 From: James Womeldorf Subject: RE: [sqr-users] RE: preserving "leading zeros" in a string Date: Mon, 14 Feb 2005 16:50:24 -0600 You might write these cells to your file so Excel interprets them as formulas. The leading zeros will then be retained. Here are some examples: ="01",="02" ="00003",="00034800" Put these in a text file named with the CSV extension and open it in Excel. The leading zeros will be there. Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of ruscs ___ Sent: Monday, February 14, 2005 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: preserving "leading zeros" in a string Hello, I am exporting string values (which may contain numeric values) into a csv file. Some of these numeric values may contain leading zeros (for example, 001111, 02222...) When the import is complete, leading zeros are lost. (1111, 2222). How can these leading zeros be preserved? Thanks for your help! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Feb 15 12:22:32 2005 From: Info Desenv - Bruno Date: Tue, 15 Feb 2005 15:21:35 -0300 Subject: [sqr-users] BarCode I=B4m trying to print a bar code with 44 caracters, but the sqr has a limitation of 30 caracters.=20 Anyone know how i can do this ? T hanks, Bruno Zaccolo=20 Cia Zaffari Com. e Ind.=20 Depto. de Informatica=20 Brazil - RS - Porto Alegre E-mail:bruno@zaffari.com.br=20 Fone: (005551) 3337-3111 R: 3344 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 11:11:26 2005 Subject: [sqr-users] Horz-Line out of bounds Date: Thu, 17 Feb 2005 09:10:14 -0700 From: "Thompson, Carla" I'm using the following command:=20 Graphic (+16,01,990) Horz-Line 8=20 It has been working for over one year, now all of a sudden, it displays an = error that says it's out of bounds.=20=20 I have the following Setup: ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ! SETUP Section ! Description : Declares layout format of graphical statement ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Begin-Setup Declare-Layout Default Orientation =3D Landscape Paper-Size =3D (Legal) ! (14,8.5) Top-Margin =3D 0.50 Bottom-Margin =3D 0.50 Left-Margin =3D 0.10 Right-Margin =3D 0.10 Line-Height =3D 1 ! Define a 1 by 1 point grid for Char-Width =3D 1 ! precise print positioning End-Declare !Default End-Setup Suggestions welcome! Carla _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 11:31:40 2005 Date: Thu, 17 Feb 2005 11:30:56 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Horz-Line out of bounds Hi Carla, I'm guessing that it is having a problem with the third literal (the 990). Drop it down to something that will obviously fit (say 150) to see if that will work. If that's the problem, keep testing to find the maximum value that it will accept. It's possible that something has changed and you are now above the maximum width of pixels for a legal landscape document. HTH, Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 02/17/2005 11:10:14 AM: > I'm using the following command: > > Graphic (+16,01,990) Horz-Line 8 > > It has been working for over one year, now all of a sudden, it > displays an error that says it's out of bounds. > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 11:58:51 2005 Date: Thu, 17 Feb 2005 11:57:50 -0500 From: "Kaithi, Murali" Subject: [sqr-users] PO FAX ISSUE When we run the POPO005.sqr the print copy is fine but the fax copy is not clear. It seems that the fax copy is compressed (the left and right margins are wide) even though they both seems to be using the same fonts. Does anybody got across this problem or anybody have any ideas. Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 12:32:38 2005 From: "Paul Hoyte" Subject: =?US-ASCII?B?UkU6IFtzcXItdXNlcnNdIEhvcnotTGluZSBvdXQgb2YgYm91bmRz?= Date: Thu, 17 Feb 2005 12:31:58 -0500 Carla: Make sure that you are not issuing the command that causes a page break. Also make sure that the width is still 990 points. >----- ------- Original Message ------- ----- >From: "Thompson, Carla" >To: "This list is for discussion about the SQR >database reporting language > from Hyperion Solutions." > >Sent: Thu, 17 Feb 2005 09:10:14 > >I'm using the following command: > >Graphic (+16,01,990) Horz-Line 8 > >It has been working for over one year, now all of a >sudden, it displays an error that says it's out of >bounds. > >I have the following Setup: > >! >=================================================== >============================= >! SETUP Section >! Description : Declares layout format of graphical >statement >! >=================================================== >============================= >Begin-Setup > Declare-Layout Default > Orientation = Landscape > Paper-Size = (Legal) ! (14,8.5) > Top-Margin = 0.50 > Bottom-Margin = 0.50 > Left-Margin = 0.10 > Right-Margin = 0.10 > Line-Height = 1 ! Define a 1 by 1 point grid >for > Char-Width = 1 ! precise print positioning > End-Declare !Default >End-Setup > >Suggestions welcome! > >Carla > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 13:29:01 2005 Subject: RE: [sqr-users] Horz-Line out of bounds Date: Thu, 17 Feb 2005 11:27:38 -0700 From: "Thompson, Carla" It's *DEFINATELY* the command line that is causing a page break... up until= now, this report has been printed on one page. The problem has been cause= d by trying to print a second page.=20 Now, is there any way for me to know what line SQR is on? Q. Is there a variable that "knows" what Line SQR is processing?=20 I thought maybe a test at the bottom of my SELECT/Loop could issue a page-b= reak if a line number maximum has been hit.=20=20 P.S. The 990 points are ok because the legal size paper is 14 inches... and= 72 points per inch =3D 1008... so no true "out of bounds" caused by this s= tatement.=20 -----Original Message----- From: sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org]On Behalf Of Paul Hoyte Sent: Thursday, February 17, 2005 10:32 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Horz-Line out of bounds Carla: Make sure that you are not issuing the command that causes a page break. A= lso make sure that the width is still 990 points. >----- ------- Original Message ------- ----- >From: "Thompson, Carla" >To: "This list is for discussion about the SQR >database reporting language > from Hyperion Solutions." > >Sent: Thu, 17 Feb 2005 09:10:14 > >I'm using the following command:=20 > >Graphic (+16,01,990) Horz-Line 8=20 > >It has been working for over one year, now all of a >sudden, it displays an error that says it's out of >bounds.=20=20 > >I have the following Setup: > >! >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >! SETUP Section >! Description : Declares layout format of graphical >statement >! >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >Begin-Setup > Declare-Layout Default > Orientation =3D Landscape > Paper-Size =3D (Legal) ! (14,8.5) > Top-Margin =3D 0.50 > Bottom-Margin =3D 0.50 > Left-Margin =3D 0.10 > Right-Margin =3D 0.10 > Line-Height =3D 1 ! Define a 1 by 1 point grid >for > Char-Width =3D 1 ! precise print positioning > End-Declare !Default >End-Setup > >Suggestions welcome! > >Carla > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 13:34:57 2005 Date: Thu, 17 Feb 2005 13:34:07 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] Horz-Line out of bounds #current-line is the variable you are looking for. > It's *DEFINATELY* the command line that is causing a page break... > up until now, this report has been printed on one page. The problem > has been caused by trying to print a second page. > > Now, is there any way for me to know what line SQR is on? > > Q. Is there a variable that "knows" what Line SQR is processing? > > I thought maybe a test at the bottom of my SELECT/Loop could issue a > page-break if a line number maximum has been hit. > > P.S. The 990 points are ok because the legal size paper is 14 > inches... and 72 points per inch = 1008... so no true "out of > bounds" caused by this statement. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 13:38:34 2005 Date: Thu, 17 Feb 2005 13:36:44 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] Horz-Line out of bounds I think it's #current-line - you can compare that with #sqr-max-lines and if you're close, go to a new page. I think you need to allow for the number of lines in your page footer as well here. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> carla.thompson@gwl.com 2/17/2005 1:27 PM >>> It's *DEFINATELY* the command line that is causing a page break... up until now, this report has been printed on one page. The problem has been caused by trying to print a second page. Now, is there any way for me to know what line SQR is on? Q. Is there a variable that "knows" what Line SQR is processing? I thought maybe a test at the bottom of my SELECT/Loop could issue a page-break if a line number maximum has been hit. P.S. The 990 points are ok because the legal size paper is 14 inches... and 72 points per inch = 1008... so no true "out of bounds" caused by this statement. -----Original Message----- From: sqr-users-bounces+carla.thompson=gwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=gwl.com@sqrug.org]On Behalf Of Paul Hoyte Sent: Thursday, February 17, 2005 10:32 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Horz-Line out of bounds Carla: Make sure that you are not issuing the command that causes a page break. Also make sure that the width is still 990 points. >----- ------- Original Message ------- ----- >From: "Thompson, Carla" >To: "This list is for discussion about the SQR >database reporting language > from Hyperion Solutions." > >Sent: Thu, 17 Feb 2005 09:10:14 > >I'm using the following command: > >Graphic (+16,01,990) Horz-Line 8 > >It has been working for over one year, now all of a >sudden, it displays an error that says it's out of >bounds. > >I have the following Setup: > >! >=================================================== >============================= >! SETUP Section >! Description : Declares layout format of graphical >statement >! >=================================================== >============================= >Begin-Setup > Declare-Layout Default > Orientation = Landscape > Paper-Size = (Legal) ! (14,8.5) > Top-Margin = 0.50 > Bottom-Margin = 0.50 > Left-Margin = 0.10 > Right-Margin = 0.10 > Line-Height = 1 ! Define a 1 by 1 point grid >for > Char-Width = 1 ! precise print positioning > End-Declare !Default >End-Setup > >Suggestions welcome! > >Carla > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 17 13:42:35 2005 Subject: RE: [sqr-users] Horz-Line out of bounds Date: Thu, 17 Feb 2005 11:37:04 -0700 From: "Thompson, Carla" Bless you Don! Thanks to everyone for your input! :) !!!=20 -----Original Message----- From: sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org]On Behalf Of don.barclay@srs.gov Sent: Thursday, February 17, 2005 11:34 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Horz-Line out of bounds #current-line is the variable you are looking for. > It's *DEFINATELY* the command line that is causing a page break...=20 > up until now, this report has been printed on one page. The problem > has been caused by trying to print a second page.=20 >=20 > Now, is there any way for me to know what line SQR is on? >=20 > Q. Is there a variable that "knows" what Line SQR is processing?=20 >=20 > I thought maybe a test at the bottom of my SELECT/Loop could issue a > page-break if a line number maximum has been hit.=20 >=20 > P.S. The 990 points are ok because the legal size paper is 14=20 > inches... and 72 points per inch =3D 1008... so no true "out of=20 > bounds" caused by this statement.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 18 14:22:37 2005 Date: Fri, 18 Feb 2005 11:23:47 -0800 From: Subject: [sqr-users] Expanding TOC Hello All, Simple question. Running a small report using the following args. -BURST:P -PRINTER:HT -EH_CSV Is there a way to have the resulting html open with the TOC expanded ? I know it can be found by clicking the folder icon, but wanted my users to not have to do this. Thanks for any and all assistance, B. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 18 14:35:46 2005 From: "the dragon" Subject: RE: [sqr-users] Expanding TOC Date: Fri, 18 Feb 2005 13:33:23 -0600 Good grief, how lazy can your users be? Or are they too clueless? hee hee hee just kidding and trying to lighted up a Friday afternoon. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello All, Simple question. Running a small report using the following args. -BURST:P -PRINTER:HT -EH_CSV Is there a way to have the resulting html open with the TOC expanded ? I know it can be found by clicking the folder icon, but wanted my users to not have to do this. Thanks for any and all assistance, B. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 21 00:41:49 2005 Subject: RE: [sqr-users] Expanding TOC From: Soumya.Sankaran@blr.hexaware.com Date: Mon, 21 Feb 2005 11:17:00 +0530 Whats TOC? "the dragon" Sent by: sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org 19-02-2005 01:03 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject RE: [sqr-users] Expanding TOC Good grief, how lazy can your users be? Or are they too clueless? hee hee hee just kidding and trying to lighted up a Friday afternoon. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello All, Simple question. Running a small report using the following args. -BURST:P -PRINTER:HT -EH_CSV Is there a way to have the resulting html open with the TOC expanded ? I know it can be found by clicking the folder icon, but wanted my users to not have to do this. Thanks for any and all assistance, B. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 21 00:54:12 2005 Subject: RE: [sqr-users] Expanding TOC Date: Sun, 20 Feb 2005 21:50:17 -0800 From: "Allen Kinnard" Table of Contents. -----Original Message----- From: Soumya.Sankaran@blr.hexaware.com [mailto:Soumya.Sankaran@blr.hexaware.com]=20 Sent: Sunday, February 20, 2005 9:47 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Expanding TOC Whats TOC? =20 "the dragon" =20 Sent by: sqr-users-bounces+soumya.sankaran=3Dblr.hexaware.com@sqrug.org 19-02-2005 01:03 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject RE: [sqr-users] Expanding TOC Good grief, how lazy can your users be? Or are they too clueless? hee=20 hee=20 hee just kidding and trying to lighted up a Friday afternoon. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting=20 your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello All, Simple question. Running a small report using the following args. -BURST:P -PRINTER:HT -EH_CSV Is there a way to have the resulting html open with the TOC expanded ? I know it can be found by clicking the folder icon, but wanted my users to not have to do this. Thanks for any and all assistance, B. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 11:31:13 2005 From: "Sony Dada" Date: Wed, 23 Feb 2005 11:29:08 -0500 Subject: [sqr-users] dynamic array size Hi, I need some advice from sqr experts. Thought it would be simple but having hardtime to resolve it. Issue: create-array name=BUs size=100 field=legal_entity:char I have to set above 100 as dynamic and I know the count before I create this array. So, I changed the above code as below:- select count(*) &cnt let #count = &cnt from abc_table show 'count : ' #count create-array name=BUs size=#count field=legal_entity:char After I changed the program, it is not recognizing the #count. I replaced with {#count} but not working. I looked at the old postings and looks like it can be resolved. Could you send some suggestions on this. Thanks in advance. Sony _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 11:37:39 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 10:36:57 -0600 According to the documentation, the SIZE= clause only accepts a literal. Take a reasonable guess and then allow for expansion by declaring a value for EXTENTS=. -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Sony Dada Sent: Wednesday, February 23, 2005 10:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] dynamic array size Hi, I need some advice from sqr experts. Thought it would be simple but having hardtime to resolve it. Issue: create-array name=BUs size=100 field=legal_entity:char I have to set above 100 as dynamic and I know the count before I create this array. So, I changed the above code as below:- select count(*) &cnt let #count = &cnt from abc_table show 'count : ' #count create-array name=BUs size=#count field=legal_entity:char After I changed the program, it is not recognizing the #count. I replaced with {#count} but not working. I looked at the old postings and looks like it can be resolved. Could you send some suggestions on this. Thanks in advance. Sony _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 11:42:26 2005 Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 10:41:28 -0600 From: "Knapp, Richard" For version 4.3 which I use, arrays are created before any code is executed so a dynamic sizing is not possible (in this version.) Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sony Dada Sent: Wednesday, February 23, 2005 10:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] dynamic array size Hi, I need some advice from sqr experts. Thought it would be simple but having=20 hardtime to resolve it. Issue: create-array name=3DBUs size=3D100 field=3Dlegal_entity:char I have to set above 100 as dynamic and I know the count before I create this=20 array. So, I changed the above code as below:- select count(*) &cnt let #count =3D &cnt from abc_table show 'count : ' #count create-array name=3DBUs size=3D#count field=3Dlegal_entity:char After I changed the program, it is not recognizing the #count. I replaced=20 with {#count} but not working. I looked at the old postings and looks like=20 it can be resolved. Could you send some suggestions on this. Thanks in advance. Sony _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 12:29:35 2005 From: "Sony Dada" Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 12:26:15 -0500 I am not ruling out both (Richard & Jeff's) of your comments, but if we look at Dan's email which was posted in 2001, it looks like there is a possibility. Our sqr version is with SQR for PeopleSoft/8.45.05. ------------------------------------------------------------------------------------- Subject: Re: dynamic array size? From: "Johnson, Dan" Date: Fri, 19 Oct 2001 16:33:54 -0400 -------------------------------------------------------------------------------- There is a kludge for this. Unfortunately it only works for certain situations. You can use "ask" to get the array size. For instance we count the rows in a specific table and then call the sqr that has the array in it passing the row count as a parameter. Limited, but can be useful. Good luck, Dan >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] dynamic array size >Date: Wed, 23 Feb 2005 10:41:28 -0600 > > >For version 4.3 which I use, arrays are created before any code is >executed so a dynamic sizing is not possible (in this version.) > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Sony Dada >Sent: Wednesday, February 23, 2005 10:29 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] dynamic array size > >Hi, > >I need some advice from sqr experts. Thought it would be simple but >having >hardtime to resolve it. > >Issue: > >create-array name=BUs size=100 > field=legal_entity:char > >I have to set above 100 as dynamic and I know the count before I create >this >array. So, I changed the above code as below:- > >select count(*) &cnt >let #count = &cnt >from abc_table > show 'count : ' #count > >create-array name=BUs size=#count > field=legal_entity:char > >After I changed the program, it is not recognizing the #count. I >replaced >with {#count} but not working. I looked at the old postings and looks >like >it can be resolved. Could you send some suggestions on this. > >Thanks in advance. >Sony > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 13:01:02 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 11:59:59 -0600 Hmmm. If you could get the desired array size onto the command line you might just be able to make it work. This sample shows how ask can be used to set array size using a replacement variable. Don't know that this method would work if you are executing SQTs though. BEGIN-SETUP DECLARE-LAYOUT DEFAULT LEFT-MARGIN =.25 RIGHT-MARGIN = 0 BOTTOM-MARGIN =.25 ORIENTATION = PORTRAIT END-DECLARE ! #DEFINE ArraySize 25 ASK ArraySize 'What size is the array?' END-SETUP BEGIN-PROGRAM ! Create array using size from the ASK CREATE-ARRAY NAME = TestArray SIZE = {ArraySize} ! EXTENT = 10 FIELD = Moped:NUMBER PRINT '-----------' (+1,10,000) ! Stash some values into the array LET #idx = 0 WHILE #idx <= {ArraySize} PUT #idx INTO TestArray(#idx) ADD 1 TO #idx END-WHILE ! Retrieve and print what we just stashed LET #idx = 0 WHILE #idx <= {ArraySize} GET #idxOut FROM TestArray(#idx) ADD 1 TO #idx PRINT #idxOut (+1,10,00) END-WHILE -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Sony Dada Sent: Wednesday, February 23, 2005 11:26 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] dynamic array size I am not ruling out both (Richard & Jeff's) of your comments, but if we look at Dan's email which was posted in 2001, it looks like there is a possibility. Our sqr version is with SQR for PeopleSoft/8.45.05. ---------------------------------------------------------------------------- --------- Subject: Re: dynamic array size? From: "Johnson, Dan" Date: Fri, 19 Oct 2001 16:33:54 -0400 ---------------------------------------------------------------------------- ---- There is a kludge for this. Unfortunately it only works for certain situations. You can use "ask" to get the array size. For instance we count the rows in a specific table and then call the sqr that has the array in it passing the row count as a parameter. Limited, but can be useful. Good luck, Dan >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] dynamic array size >Date: Wed, 23 Feb 2005 10:41:28 -0600 > > >For version 4.3 which I use, arrays are created before any code is >executed so a dynamic sizing is not possible (in this version.) > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Sony Dada >Sent: Wednesday, February 23, 2005 10:29 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] dynamic array size > >Hi, > >I need some advice from sqr experts. Thought it would be simple but >having hardtime to resolve it. > >Issue: > >create-array name=BUs size=100 > field=legal_entity:char > >I have to set above 100 as dynamic and I know the count before I create >this array. So, I changed the above code as below:- > >select count(*) &cnt >let #count = &cnt >from abc_table > show 'count : ' #count > >create-array name=BUs size=#count > field=legal_entity:char > >After I changed the program, it is not recognizing the #count. I >replaced with {#count} but not working. I looked at the old postings >and looks like >it can be resolved. Could you send some suggestions on this. > >Thanks in advance. >Sony > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 13:04:26 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 09:59:04 -0800 There are a few kludges possible. The only question is how far you'll go. 1. Write another SQR program that gets the count from abc_table. 2a. Have it do a "call system" to execute your main program with the count as one of the parameters. Put an "ask" in your main program. 2b. Have it write a file with the name "count.sqc" and the contents "#define abc_count 100" Then have it execute your main program, or execute it yourself. Then main program needs the following statements: #include 'count.sqc' begin-setup create-array name BUs size={abc_count} ... end-setup Alternately, make the array big enough for anything. Are these Peoplesoft Business Units? Your organization isn't going to vary the number of business units by an order of magnitude. If they're something else, make the array 1000 or 100,000. Modern PCs or servers have hundreds or thousands of megabytes of main memory and operating systems that offer even more virtual memory. Go crazy if you have to - the memory will be there. If you're using the array simply to record the name of each business unit, and you're reading it once from a table and not changing it, consider "load-lookup." -----Original Message----- From: Sony Dada [mailto:sony_dada@hotmail.com] Sent: Wednesday, February 23, 2005 9:26 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] dynamic array size I am not ruling out both (Richard & Jeff's) of your comments, but if we look at Dan's email which was posted in 2001, it looks like there is a possibility. Our sqr version is with SQR for PeopleSoft/8.45.05. ---------------------------------------------------------------------------- --------- Subject: Re: dynamic array size? From: "Johnson, Dan" Date: Fri, 19 Oct 2001 16:33:54 -0400 ---------------------------------------------------------------------------- ---- There is a kludge for this. Unfortunately it only works for certain situations. You can use "ask" to get the array size. For instance we count the rows in a specific table and then call the sqr that has the array in it passing the row count as a parameter. Limited, but can be useful. Good luck, Dan >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] dynamic array size >Date: Wed, 23 Feb 2005 10:41:28 -0600 > > >For version 4.3 which I use, arrays are created before any code is >executed so a dynamic sizing is not possible (in this version.) > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Sony Dada >Sent: Wednesday, February 23, 2005 10:29 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] dynamic array size > >Hi, > >I need some advice from sqr experts. Thought it would be simple but >having >hardtime to resolve it. > >Issue: > >create-array name=BUs size=100 > field=legal_entity:char > >I have to set above 100 as dynamic and I know the count before I create >this >array. So, I changed the above code as below:- > >select count(*) &cnt >let #count = &cnt >from abc_table > show 'count : ' #count > >create-array name=BUs size=#count > field=legal_entity:char > >After I changed the program, it is not recognizing the #count. I >replaced >with {#count} but not working. I looked at the old postings and looks >like >it can be resolved. Could you send some suggestions on this. > >Thanks in advance. >Sony > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 13:21:58 2005 From: "the dragon" Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 12:19:32 -0600 All, Unless things have changed in recent versions, arrays are created at compile time. Therefore any dynamic declaration of the array must happen at compile time and can not be dependent upon any sql information. There might be various ways to get around this, such as running an sql select in a script first and then passing that variable into the sqr. Ultimately, I guess it boils town to cost-benefit..... Is it really worth the effort to make something dynamic just so you can prove tricky stuff works? or is it easier/more resource efficient to determine the maximum size it could ever be and add 10 - 20 percent? Given the speed of hardware and the cost of RAM, I am guessing the second is more cost effective. hope this helps. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I am not ruling out both (Richard & Jeff's) of your comments, but if we look at Dan's email which was posted in 2001, it looks like there is a possibility. Our sqr version is with SQR for PeopleSoft/8.45.05. ------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- There is a kludge for this. Unfortunately it only works for certain situations. You can use "ask" to get the array size. For instance we count the rows in a specific table and then call the sqr that has the array in it passing the row count as a parameter. Limited, but can be useful. Good luck, Dan > > >For version 4.3 which I use, arrays are created before any code is >executed so a dynamic sizing is not possible (in this version.) > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- > >Hi, > >I need some advice from sqr experts. Thought it would be simple but >having >hardtime to resolve it. > >Issue: > >create-array name=BUs size=100 > field=legal_entity:char > >I have to set above 100 as dynamic and I know the count before I create >this >array. So, I changed the above code as below:- > >select count(*) &cnt >let #count = &cnt >from abc_table > show 'count : ' #count > >create-array name=BUs size=#count > field=legal_entity:char > >After I changed the program, it is not recognizing the #count. I >replaced >with {#count} but not working. I looked at the old postings and looks >like >it can be resolved. Could you send some suggestions on this. > >Thanks in advance. >Sony > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 13:34:55 2005 Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 18:34:10 -0000 From: Hi All, I thought you could specify a very large array size and there was not any overhead with it. Because the C underneath didn't accually reserve size (used pointers) but needed the max size for other purposes (parsing of correct use of SQR). I have always doubled my expectations for size and haven't had any problems on even complex SQRs. (occassionally the ini file complains and I adjust) the dragon said: > All, > > Unless things have changed in recent versions, arrays are created at compile > time. Therefore any dynamic declaration of the array must happen at compile > time and can not be dependent upon any sql information. There might be > various ways to get around this, such as running an sql select in a script > first and then passing that variable into the sqr. > > Ultimately, I guess it boils town to cost-benefit..... Is it really worth > the effort to make something dynamic just so you can prove tricky stuff > works? or is it easier/more resource efficient to determine the maximum size > it could ever be and add 10 - 20 percent? Given the speed of hardware and > the cost of RAM, I am guessing the second is more cost effective. > > > hope this helps. > > peace, > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting your > services for 40 hours a week, not purchasing your soul. Your time is the > only real finite asset that you have, and once used it can never be > recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin you have, and only you > can determine how it will be spent. Be careful lest you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > I am not ruling out both (Richard & Jeff's) of your comments, but if we look > at Dan's email which was posted in 2001, it looks like there is a > possibility. Our sqr version is > with SQR for PeopleSoft/8.45.05. > --------------------------------------------------------------------------- ---------- > > --------------------------------------------------------------------------- ----- > > There is a kludge for this. Unfortunately it only works for certain > situations. You can use "ask" to get the array size. For instance we count > the rows in a specific table and then call the sqr that has the array in it > passing the row count as a parameter. Limited, but can be useful. > > Good luck, > Dan > > > > > > > > >For version 4.3 which I use, arrays are created before any code is > >executed so a dynamic sizing is not possible (in this version.) > > > >Richard Knapp > >Database Programmer/Analyst > >Institutional Research and Planning > >University of Missouri System > >573-882-8856 > >knappr@umsystem.edu > > > >-----Original Message----- > > > >Hi, > > > >I need some advice from sqr experts. Thought it would be simple but > >having > >hardtime to resolve it. > > > >Issue: > > > >create-array name=BUs size=100 > > field=legal_entity:char > > > >I have to set above 100 as dynamic and I know the count before I create > >this > >array. So, I changed the above code as below:- > > > >select count(*) &cnt > >let #count = &cnt > >from abc_table > > show 'count : ' #count > > > >create-array name=BUs size=#count > > field=legal_entity:char > > > >After I changed the program, it is not recognizing the #count. I > >replaced > >with {#count} but not working. I looked at the old postings and looks > >like > >it can be resolved. Could you send some suggestions on this. > > > >Thanks in advance. > >Sony > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 13:54:26 2005 Date: Wed, 23 Feb 2005 13:53:00 -0500 From: "George Jansen" Subject: RE: [sqr-users] dynamic array size A suggestion: the array is a simple case of a relation; so might be a database table. Use a database table. Wrap the access in a function with a begin-select or begin-sql paragraph if you wish to. Your employer is probably spending serious $$$ for the database, so you might as well use it. An exercise: time your program with varying array sizes vs. actual database access. Is the difference really worth sweating? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 14:42:16 2005 From: "Sony Dada" Subject: RE: [sqr-users] dynamic array size Date: Wed, 23 Feb 2005 14:40:31 -0500 Steve, Looks like your procedure will workout for me. But since this is a round-about procedure, I should get client's comments. All, I received marvellous feedback in few hours. Thanks Gurus. Sony _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Feb 23 14:50:59 2005 Date: Wed, 23 Feb 2005 14:50:22 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] dynamic array size Things have changed in recent versions! EXTENT was added to the create-array command in version 8 of non-peoplesoft sqr. Still needs a literal, but it can grow past that. On Wed, 23 Feb 2005, the dragon wrote: > All, > > Unless things have changed in recent versions, arrays are created at compile > time. Therefore any dynamic declaration of the array must happen at compile > time and can not be dependent upon any sql information. There might be > various ways to get around this, such as running an sql select in a script > first and then passing that variable into the sqr. > > Ultimately, I guess it boils town to cost-benefit..... Is it really worth > the effort to make something dynamic just so you can prove tricky stuff > works? or is it easier/more resource efficient to determine the maximum size > it could ever be and add 10 - 20 percent? Given the speed of hardware and > the cost of RAM, I am guessing the second is more cost effective. > > > hope this helps. > > peace, > clark 'the dragon' willis ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 01:50:17 2005 Date: Wed, 23 Feb 2005 17:22:53 -0800 From: marc pechaitis Subject: [sqr-users] How to return a Zero, instead of a NULL in a sub-query? You guys have been great in the past, and I am sure you'll be able to help on this one....I am running this sql statement and the problem I have is with the code identified between the "**********start**********" and "**********end**********": INSERT %Table(NU_SR0037_IWTAO) SELECT DISTINCT A.EMPLID , B.NAME , C.DEPTID , C.LOCATION , '' , ( SELECT SUM(A2.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A2 WHERE A.EMPLID = A2.EMPLID) , ( SELECT SUM(A3.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A3 WHERE A.EMPLID = A3.EMPLID AND A3.STRM >= %Bind(STRM_FROM) AND A3.STRM < %Bind(STRM)) , **********start********** (SELECT SUM(A4.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A4 WHERE A.EMPLID = A4.EMPLID AND A4.STRM >= %Bind(STRM) AND A4.STRM <= %Bind(STRM_TO)) **********end********** , '' , 0 FROM PS_NU_SR0037_TMP A, PS_PERSONAL_DATA B, PS_JOB C WHERE A.EMPLID = B.EMPLID AND A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_JOB C2 WHERE C.EMPLID = C2.EMPLID AND C.EMPL_RCD = C2.EMPL_RCD AND C.EFFDT = C2.EFFDT) AND C.EFFSEQ = ( SELECT MAX(C3.EFFSEQ) FROM PS_JOB C3 WHERE C.EMPLID = C3.EMPLID AND C.EMPL_RCD = C3.EMPL_RCD AND C.EFFDT = C3.EFFDT) GROUP BY A.EMPLID, B.NAME, C.DEPTID, C.LOCATION If the identified sub-query returns no values, the main statement tries to insert a NULL in its place. This is causing me problems because it is attempting to insert a NULL into a Nbr type field. Is there anyway to have it insert a Zero, instead of a NULL when the sub-query returns nothing? Thanks, Marc _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 05:13:08 2005 Date: Thu, 24 Feb 2005 11:09:53 +0100 From: "Lucien Lo-A-Njoe" Subject: [sqr-users] in search for Tony Delia's TD75PROJ.SQR --===============0806280417== content-class: urn:content-classes:message Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 SSdtIGxvb2tpbmcgZm9yIGEgdGhlIHRvb2wgVEQ3NVBST0ouU1FSIHRoYXQg cmVwb3J0cyBvbiBQZW9wbGVTb2Z0IFByb2plY3Qgb2JqZWN0cyBkZXRhaWxz Lg0KSXQgaXMgbm8gbG9uZ2VyIGRvd25sb2FkYWJsZSB2aWEgVG9ueSBEZWxp YSdzIHNpdGUgaHR0cDovL3d3dy5zcXJ0b29scy5jb20vcHJvamVjdHMuaHRt DQogDQpEb2VzIGFueW9uZSBoYXZlIGEgY29weSBvZiB0aGlzIGZpbGUgZm9y IG1lPw0KIA0KTHVjaWVuDQo= --===============0806280417== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============0806280417==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 06:39:50 2005 From: "Paul Hoyte" Subject: RE: [sqr-users] How to return a Zero, instead of a NULL in a sub-query? Date: Thu, 24 Feb 2005 06:38:49 -0500 You can force the sub query to return a zero by wrapping a case or decode statement around the sum statement..... Paul Hoyte (248) 752-6970 Cell (586) 421-9640 Fax pi_hoyte@si-proservices.com (Email) www.sharidionne.com (Web Site) -----Original Message----- From: sqr-users-bounces+pi_hoyte=si-proservices.com@sqrug.org [mailto:sqr-users-bounces+pi_hoyte=si-proservices.com@sqrug.org] On Behalf Of marc pechaitis Sent: Wednesday, February 23, 2005 8:23 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to return a Zero, instead of a NULL in a sub-query? You guys have been great in the past, and I am sure you'll be able to help on this one....I am running this sql statement and the problem I have is with the code identified between the "**********start**********" and "**********end**********": INSERT %Table(NU_SR0037_IWTAO) SELECT DISTINCT A.EMPLID , B.NAME , C.DEPTID , C.LOCATION , '' , ( SELECT SUM(A2.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A2 WHERE A.EMPLID = A2.EMPLID) , ( SELECT SUM(A3.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A3 WHERE A.EMPLID = A3.EMPLID AND A3.STRM >= %Bind(STRM_FROM) AND A3.STRM < %Bind(STRM)) , **********start********** (SELECT SUM(A4.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A4 WHERE A.EMPLID = A4.EMPLID AND A4.STRM >= %Bind(STRM) AND A4.STRM <= %Bind(STRM_TO)) **********end********** , '' , 0 FROM PS_NU_SR0037_TMP A, PS_PERSONAL_DATA B, PS_JOB C WHERE A.EMPLID = B.EMPLID AND A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_JOB C2 WHERE C.EMPLID = C2.EMPLID AND C.EMPL_RCD = C2.EMPL_RCD AND C.EFFDT = C2.EFFDT) AND C.EFFSEQ = ( SELECT MAX(C3.EFFSEQ) FROM PS_JOB C3 WHERE C.EMPLID = C3.EMPLID AND C.EMPL_RCD = C3.EMPL_RCD AND C.EFFDT = C3.EFFDT) GROUP BY A.EMPLID, B.NAME, C.DEPTID, C.LOCATION If the identified sub-query returns no values, the main statement tries to insert a NULL in its place. This is causing me problems because it is attempting to insert a NULL into a Nbr type field. Is there anyway to have it insert a Zero, instead of a NULL when the sub-query returns nothing? Thanks, Marc _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 07:06:37 2005 From: Soumya.Sankaran@blr.hexaware.com Date: Thu, 24 Feb 2005 17:41:40 +0530 Subject: [sqr-users] Writing msg to SQR log file Hi , Does anybody know how to write messages onto an SQR Log file?? Please mail back Soon Thanks Soumya _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 07:30:09 2005 Date: Thu, 24 Feb 2005 13:31:33 +0100 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20Writing=20msg=20to=20S?= =?ISO-8859-1?Q?QR=20log=20file=20?= Why don't you use this: #debug show 'your message' $YourVariable and you can use these too: #debugA show 'your message' $YourVariable #debugB show 'your message' $YourVariable #debugC show 'your message' $YourVariable and then put in menu 'Edit'/'Preferences' tab General, parameters box : -debugABC or -debugAB or -debugA as you need !!! Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 07:56:40 2005 From: "the dragon" Subject: RE: Rép. : [sqr-users] Writing msg to SQR log file Date: Thu, 24 Feb 2005 06:52:24 -0600 Heh, better yet, why don't you [original poster, not Philippe] buy an sqr manual. You can get them from SQR, or at Amazon - search for SQR. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Why don't you use this: #debug show 'your message' $YourVariable and you can use these too: #debugA show 'your message' $YourVariable #debugB show 'your message' $YourVariable #debugC show 'your message' $YourVariable and then put in menu 'Edit'/'Preferences' tab General, parameters box : -debugABC or -debugAB or -debugA as you need !!! Je reste à votre disposition pour toute demande d'information complémentaire. Cordialement, Philippe LEBLANC France Télécom Câble Direction Informatique Cellule Finances & Statistiques Assistance centralisée: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 08:07:38 2005 From: RHudgins@genencor.com Date: Thu, 24 Feb 2005 08:02:57 -0500 Subject: Re: [sqr-users] How to return a Zero, instead of a NULL in a sub-query? You can use the nvl function NVL(a.fielda,0) Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com -------------------------------------------------------- Sera nimis vita crastine; vive hodie. Too late is tomorrow's life; live for today. (Marcus Valerius Martialis) marc pechaitis Sent by: sqr-users-bounces+rhudgins=genencor.com@sqrug.org 02/23/2005 08:22 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] How to return a Zero, instead of a NULL in a sub-query? You guys have been great in the past, and I am sure you'll be able to help on this one....I am running this sql statement and the problem I have is with the code identified between the "**********start**********" and "**********end**********": INSERT %Table(NU_SR0037_IWTAO) SELECT DISTINCT A.EMPLID , B.NAME , C.DEPTID , C.LOCATION , '' , ( SELECT SUM(A2.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A2 WHERE A.EMPLID = A2.EMPLID) , ( SELECT SUM(A3.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A3 WHERE A.EMPLID = A3.EMPLID AND A3.STRM >= %Bind(STRM_FROM) AND A3.STRM < %Bind(STRM)) , **********start********** (SELECT SUM(A4.NU_SR_CLASS_WEIGHT) FROM PS_NU_SR0037_TMP A4 WHERE A.EMPLID = A4.EMPLID AND A4.STRM >= %Bind(STRM) AND A4.STRM <= %Bind(STRM_TO)) **********end********** , '' , 0 FROM PS_NU_SR0037_TMP A, PS_PERSONAL_DATA B, PS_JOB C WHERE A.EMPLID = B.EMPLID AND A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_JOB C2 WHERE C.EMPLID = C2.EMPLID AND C.EMPL_RCD = C2.EMPL_RCD AND C.EFFDT = C2.EFFDT) AND C.EFFSEQ = ( SELECT MAX(C3.EFFSEQ) FROM PS_JOB C3 WHERE C.EMPLID = C3.EMPLID AND C.EMPL_RCD = C3.EMPL_RCD AND C.EFFDT = C3.EFFDT) GROUP BY A.EMPLID, B.NAME, C.DEPTID, C.LOCATION If the identified sub-query returns no values, the main statement tries to insert a NULL in its place. This is causing me problems because it is attempting to insert a NULL into a Nbr type field. Is there anyway to have it insert a Zero, instead of a NULL when the sub-query returns nothing? Thanks, Marc _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Feb 24 10:15:28 2005 From: "the dragon" Date: Thu, 24 Feb 2005 09:13:49 -0600 Subject: [sqr-users] apology All, This morning I posted a suggestion which, due to the earliness of the morning, may be construed to be a bit harsher than I intended. It wasn't my intention to embarrass or put down anyone; I was just offering a suggestion, since sometimes it's faster to have a printed resource available rather than having to wait for the group. Pklease accept the apology. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 04:44:40 2005 Subject: Re: [sqr-users] apology From: Soumya.Sankaran@blr.hexaware.com Date: Fri, 25 Feb 2005 15:19:37 +0530 If we all were to use manuals we wouldnt need such a forum.. Anyways, I wanted to know how to write to an SQR log file not trace file. Show and display can of course be used to write to a trace file. Is it possible to write onto the log file which the process scheduler uses? Just a tht.. "the dragon" Sent by: sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org 24-02-2005 08:43 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] apology All, This morning I posted a suggestion which, due to the earliness of the morning, may be construed to be a bit harsher than I intended. It wasn't my intention to embarrass or put down anyone; I was just offering a suggestion, since sometimes it's faster to have a printed resource available rather than having to wait for the group. Pklease accept the apology. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 05:02:31 2005 Date: Fri, 25 Feb 2005 11:01:52 +0100 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20[sqr-users]=20apology?= Don't know why ! log file is for use with debug... Why not use #debug for your messages elsewhere=20 use a standard output file to write your messages ??? Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 06:09:59 2005 Subject: RE: [sqr-users] Writing msg to SQR log file Date: Fri, 25 Feb 2005 16:37:20 +0530 From: This is a multi-part message in MIME format... --=_Boundary_q1OiFkWtKJrgyyvoT9GR Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments. --=_Boundary_q1OiFkWtKJrgyyvoT9GR Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=_Boundary_q1OiFkWtKJrgyyvoT9GR-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 07:04:49 2005 Date: Fri, 25 Feb 2005 04:03:20 -0800 (PST) From: aravind kumar Subject: Re: [sqr-users] apology Hi Soumya, I think Show and disply will write to the log file only. Please check once. Try to run the SQR through Texpad. Those two writes to Log file. Thanks, Aravind --- Soumya.Sankaran@blr.hexaware.com wrote: > If we all were to use manuals we wouldnt need such a > forum.. > > Anyways, I wanted to know how to write to an SQR log > file not trace file. > > Show and display can of course be used to write to a > trace file. Is it > possible to write onto the log file which the > process scheduler uses? > > Just a tht.. > > > > > "the dragon" > Sent by: > sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org > 24-02-2005 08:43 PM > Please respond to > "This list is for discussion about the SQR database > reporting language > from Hyperion Solutions." > > > To > sqr-users@sqrug.org > cc > > Subject > [sqr-users] apology > > > > > > > > All, > > This morning I posted a suggestion which, due to the > earliness of the > morning, may be construed to be a bit harsher than I > intended. It wasn't > my > intention to embarrass or put down anyone; I was > just offering a > suggestion, > since sometimes it's faster to have a printed > resource available rather > than > having to wait for the group. > > Pklease accept the apology. > > peace, > clark 'the dragon' willis > > > PSA: Salary <> Slavery. If you earn a salary, your > employer is renting > your > services for 40 hours a week, not purchasing your > soul. Your time is the > only real finite asset that you have, and once used > it can never be > recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin > you have, and only you > > can determine how it will be spent. Be careful lest > you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 07:15:00 2005 Date: Fri, 25 Feb 2005 04:13:28 -0800 (PST) From: aravind kumar Subject: Re: [sqr-users] dynamic array size I think u can use substitution variables Instead of giving the count variable directly in array size param u can give sub variable. #define Count #count select count(*) &cnt let #count = &cnt from abc_table show 'count : ' #count create-array name=BUs size={Count} field=legal_entity:char This will solve the problem. --- Sony Dada wrote: > Hi, > > I need some advice from sqr experts. Thought it > would be simple but having > hardtime to resolve it. > > Issue: > > create-array name=BUs size=100 > field=legal_entity:char > > I have to set above 100 as dynamic and I know the > count before I create this > array. So, I changed the above code as below:- > > select count(*) &cnt > let #count = &cnt > from abc_table > show 'count : ' #count > > create-array name=BUs size=#count > field=legal_entity:char > > After I changed the program, it is not recognizing > the #count. I replaced > with {#count} but not working. I looked at the old > postings and looks like > it can be resolved. Could you send some suggestions > on this. > > Thanks in advance. > Sony > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 07:23:32 2005 Date: Fri, 25 Feb 2005 04:22:07 -0800 (PST) From: aravind kumar Subject: Re: [sqr-users] RE: error while using "unstring" function Please check the record length when u reading. --- ruscs ___ wrote: > I am trying to "Unstring" a line from a flat file. > > line XX: > Unstring $Input by ',' into $V1 $V2 $V3 $V4 $V5 $V6 > $V7 $V8 $V9 $V10 $V11 > $V12 $V13… > > (into 50 values) > > and am getting the following error: > > Error on line XX: > (SQR 4705) Program line too long; maximum is 511. > > Is there a solution? > > Thanks > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 07:43:58 2005 Date: Fri, 25 Feb 2005 08:42:26 -0400 From: "PeterG Clark" Subject: Re: [sqr-users] apology Soumya, You seem to be confusing the "SQR" Log file (sqr.log) with a "PeopleSoft" log file. The show and display commands write to the SQR log file (which is the one and only "SQR log file"). If you wish to write to a PeopleSoft log file(?) (are you referring to PSPRCSRQST?), you would do so in the same way you would write to any other file/table (Write or Insert). I disagree with your comment about the need for this forum. Often one encounters situations or questions that are not covered in a manual and one then uses this forum to draw upon the experience of others in resolving the situation or answering the question (why re-invent the wheel?). Everyone should at least attempt to use the manuals first. At least it would give you the understanding that SQR and PeopleSoft are two seperate and distinct software entities and that in the SQR world, "log file" refers to "sqr.log" (which is used to log the outputs of Display and Show commands). >>> Soumya.Sankaran@blr.hexaware.com 2005/02/25 05:49:37 >>> If we all were to use manuals we wouldnt need such a forum.. Anyways, I wanted to know how to write to an SQR log file not trace file. Show and display can of course be used to write to a trace file. Is it possible to write onto the log file which the process scheduler uses? Just a tht.. "the dragon" Sent by: sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org 24-02-2005 08:43 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] apology All, This morning I posted a suggestion which, due to the earliness of the morning, may be construed to be a bit harsher than I intended. It wasn't my intention to embarrass or put down anyone; I was just offering a suggestion, since sometimes it's faster to have a printed resource available rather than having to wait for the group. Pklease accept the apology. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 07:48:25 2005 Date: Fri, 25 Feb 2005 07:47:01 -0500 (GMT-05:00) From: "fpickava@earthlink.net" Subject: [sqr-users] SQRW Question To All, I am going to a client site that does not have SQRW installed. They develop SQR's in text and submit for execution via native Unix (ugly). How do I go abount obtaining the SQRW software and documentation? Would that be part of the RJSQR development software offered by RJ Solutions? Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 09:54:32 2005 Date: Fri, 25 Feb 2005 07:52:54 -0700 From: Robert Goshko Subject: Re: [sqr-users] SQRW Question On Fri, 25 Feb 2005 07:47:01 -0500 (GMT-05:00), fpickava@earthlink.net wrote: > To All, > > I am going to a client site that does not have SQRW installed. They develop SQR's in text and submit for execution via native Unix (ugly). How do I go abount obtaining the SQRW software and documentation? SQR programs are always text files, unless compiled to an SQT. If they do not own an SQRW license, then you would have to get one. I usually run SQR from the command line in UNIX, if you think that is ugly, try running SQR on MVS. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 1 GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 10:02:23 2005 From: Bob Stone Subject: RE: [sqr-users] apology Date: Fri, 25 Feb 2005 09:01:06 -0600 Soumya, I agree with Peter. Show and display both write to the SQR log file, so it sounds like you just need to find the right log file (not to be confused with the trace file). Your debugging hints should be in there. I also agree with him as far as this forum is concerned. This shouldn't be used for rather rudimentary questions. It should be more complex problems that an SQR manual probably wouldn't answer. Or, having tried the manuals extensively, someone asks a question that they cant find an answer to. Maybe it's because they're looking for the wrong words in the manual, there's an error they've never seen before, or it's just something not covered. Sometimes it's an entire logic-processing error (they're going about a problem bass-ackwards). That's what I see as the use for this forum. Nobody likes to spend the time explaining how to move a string to a number, how to write to a file, or how unstring and to_char work. Most people spend a decent amount of time on a problem before turning to the forum, out of respect for all the people who might take their time to answer the questions/problems. If you're relatively new to SQR, I agree with 'the dragon', you should look into getting a manual or SQR reference. I have a few places I look (including the archives of this sqr-user group) before actually sending out an email. Thanks. Bob Stone -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of PeterG Clark Sent: Friday, February 25, 2005 6:42 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] apology Soumya, You seem to be confusing the "SQR" Log file (sqr.log) with a "PeopleSoft" log file. The show and display commands write to the SQR log file (which is the one and only "SQR log file"). If you wish to write to a PeopleSoft log file(?) (are you referring to PSPRCSRQST?), you would do so in the same way you would write to any other file/table (Write or Insert). I disagree with your comment about the need for this forum. Often one encounters situations or questions that are not covered in a manual and one then uses this forum to draw upon the experience of others in resolving the situation or answering the question (why re-invent the wheel?). Everyone should at least attempt to use the manuals first. At least it would give you the understanding that SQR and PeopleSoft are two seperate and distinct software entities and that in the SQR world, "log file" refers to "sqr.log" (which is used to log the outputs of Display and Show commands). >>> Soumya.Sankaran@blr.hexaware.com 2005/02/25 05:49:37 >>> If we all were to use manuals we wouldnt need such a forum.. Anyways, I wanted to know how to write to an SQR log file not trace file. Show and display can of course be used to write to a trace file. Is it possible to write onto the log file which the process scheduler uses? Just a tht.. "the dragon" Sent by: sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org 24-02-2005 08:43 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] apology All, This morning I posted a suggestion which, due to the earliness of the morning, may be construed to be a bit harsher than I intended. It wasn't my intention to embarrass or put down anyone; I was just offering a suggestion, since sometimes it's faster to have a printed resource available rather than having to wait for the group. Pklease accept the apology. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 10:45:27 2005 Date: Fri, 25 Feb 2005 10:44:15 -0500 From: "White, Denise" Subject: [sqr-users] Log/Trace File This forum is not intended to be a substitute for using a manual. Many of = us DO use manuals, and we still need this forum, because not everything can= be determined or debugged using the manual. Very basic questions usually = can be answered by looking in the manual. That is why some of us do tend t= o get a bit frustrated when novices don't even bother trying to research th= eir very basic questions before posting a question. I understand where Cla= rk was coming from, and I also appreciate that he thought better of it and = apologized (after he woke up - LOL!). I think that PeopleSoft has confused things a bit with the way they label t= he files in Process Monitor. What they are calling 'Trace File' is, indeed= , the 'SQR log file'. This is the file you would get in c:\temp\sqr.log (o= r wherever you have your -o flag set) if you were to run the job using SQRW= (or run it on the client in older versions of PeopleSoft). So, what Peopl= eSoft is now calling a trace file is actually what SQR itself considers to = be the log file. Therefore, the correct way to write to the log file is st= ill DISPLAY or SHOW. How PeopleSoft produces what they call 'Message Log',= which shows all of the process parameters, I do not know. But it is not t= he 'SQR log file', as you call it; that IS the 'Trace File'. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 7 Date: Fri, 25 Feb 2005 15:19:37 +0530 From: Soumya.Sankaran@blr.hexaware.com Subject: Re: [sqr-users] apology To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: =09 Content-Type: text/plain; charset=3D"US-ASCII" If we all were to use manuals we wouldnt need such a forum.. Anyways, I wanted to know how to write to an SQR log file not trace file. Show and display can of course be used to write to a trace file. Is it=20 possible to write onto the log file which the process scheduler uses?=20 Just a tht..=20 =20 "the dragon" =20 Sent by: sqr-users-bounces+soumya.sankaran=3Dblr.hexaware.com@sqrug.org 24-02-2005 08:43 PM Please respond to "This list is for discussion about the SQR database reporting language=20 from Hyperion Solutions." To sqr-users@sqrug.org cc Subject [sqr-users] apology All, This morning I posted a suggestion which, due to the earliness of the=20 morning, may be construed to be a bit harsher than I intended. It wasn't= =20 my=20 intention to embarrass or put down anyone; I was just offering a=20 suggestion,=20 since sometimes it's faster to have a printed resource available rather=20 than=20 having to wait for the group. Pklease accept the apology. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting=20 your=20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 11:16:03 2005 Date: Fri, 25 Feb 2005 08:14:47 -0800 (PST) From: "fpickava@earthlink.net" Subject: Re: [sqr-users] SQRW Question Rob, Thank you for your reply. Where would obtain an SQRW license? And, I would br gratefull if you could reply back with an example of executing an SQR from the command line in UNIX. You would need to specify all of the neccessay arguments/system parms that the exucution would require to run the SQR. Yes or no? Frank -----Original Message----- From: Robert Goshko Sent: Feb 25, 2005 6:52 AM To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Subject: Re: [sqr-users] SQRW Question On Fri, 25 Feb 2005 07:47:01 -0500 (GMT-05:00), fpickava@earthlink.net wrote: > To All, > > I am going to a client site that does not have SQRW installed. They develop SQR's in text and submit for execution via native Unix (ugly). How do I go abount obtaining the SQRW software and documentation? SQR programs are always text files, unless compiled to an SQT. If they do not own an SQRW license, then you would have to get one. I usually run SQR from the command line in UNIX, if you think that is ugly, try running SQR on MVS. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 1 GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 12:28:26 2005 Date: Fri, 25 Feb 2005 09:27:05 -0800 (PST) From: Yuri Lakef Subject: Re: [sqr-users] SQRW Question Try the following to make running SQR's in Unix easier: (1) edit you .profile with an alias (2) create a shell script to receive the SQR pgm name as an argument Then it's just a matter of typing one or two words from the command line to run a pgm. "fpickava@earthlink.net" wrote:Rob, Thank you for your reply. Where would obtain an SQRW license? And, I would br gratefull if you could reply back with an example of executing an SQR from the command line in UNIX. You would need to specify all of the neccessay arguments/system parms that the exucution would require to run the SQR. Yes or no? Frank -----Original Message----- From: Robert Goshko Sent: Feb 25, 2005 6:52 AM To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Subject: Re: [sqr-users] SQRW Question On Fri, 25 Feb 2005 07:47:01 -0500 (GMT-05:00), fpickava@earthlink.net wrote: > To All, > > I am going to a client site that does not have SQRW installed. They develop SQR's in text and submit for execution via native Unix (ugly). How do I go abount obtaining the SQRW software and documentation? SQR programs are always text files, unless compiled to an SQT. If they do not own an SQRW license, then you would have to get one. I usually run SQR from the command line in UNIX, if you think that is ugly, try running SQR on MVS. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 1 GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 12:52:45 2005 From: "Peter Burton" Date: Fri, 25 Feb 2005 12:51:10 -0500 Subject: RE: [sqr-users] SQRW Question Frank, Running SQR from a Unix command is identical to running it from a Windows c= ommand line: sqr {program} {connectivity} [flags] [arguments] {program} Required .SQR module name {connectivity} Required database connectivity information. Typically the = username and password. The actual format is database dependent. Consult y= our SQR manual for specifics. [flags] Optional SQR command line flags. Consult your SQR manual f= or specifics. [arguments] Optional arguments for ASK and/or INPUT statements. If not= specified and you have ASK and/or INPUT statement you will be prompted for= them during program compilation and/or execution. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]On Behalf Of fpickava@earthlink.net Sent: Friday, February 25, 2005 11:15 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] SQRW Question Rob, Thank you for your reply. Where would obtain an SQRW license? And, I woul= d br gratefull if you could reply back with an example of executing an SQR = from the command line in UNIX. You would need to specify all of the necces= say arguments/system parms that the exucution would require to run the SQR.= Yes or no? Frank -----Original Message----- From: Robert Goshko Sent: Feb 25, 2005 6:52 AM To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Subject: Re: [sqr-users] SQRW Question On Fri, 25 Feb 2005 07:47:01 -0500 (GMT-05:00), fpickava@earthlink.net wrote: > To All, >=20 > I am going to a client site that does not have SQRW installed. They deve= lop SQR's in text and submit for execution via native Unix (ugly). How do = I go abount obtaining the SQRW software and documentation? SQR programs are always text files, unless compiled to an SQT. If they do not own an SQRW license, then you would have to get one. I usually run SQR from the command line in UNIX, if you think that is ugly, try running SQR on MVS. --=20 ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 1 GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 12:57:41 2005 Subject: Re: [sqr-users] apology From: Kaz.Narayanan@averydennison.com Date: Fri, 25 Feb 2005 09:26:42 -0800 Soumya, If you do not want your logs in the log file, you can use a Print command. That would create a .lis file. the name of the .lis file would be SQRNAME_PROCESS_INSTANCE.LIS This can also help. Thanks Regards KM Narayanan |---------+-----------------------------------------------------------> | | aravind kumar | | | Sent by: | | | sqr-users-bounces+kaz.narayanan=averydennison.co| | | m@sqrug.org | | | | | | | | | 02/25/2005 04:03 AM | | | Please respond to "This list is for discussion | | | about the SQR database reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] apology | >----------------------------------------------------------------------------------------------| Hi Soumya, I think Show and disply will write to the log file only. Please check once. Try to run the SQR through Texpad. Those two writes to Log file. Thanks, Aravind --- Soumya.Sankaran@blr.hexaware.com wrote: > If we all were to use manuals we wouldnt need such a > forum.. > > Anyways, I wanted to know how to write to an SQR log > file not trace file. > > Show and display can of course be used to write to a > trace file. Is it > possible to write onto the log file which the > process scheduler uses? > > Just a tht.. > > > > > "the dragon" > Sent by: > sqr-users-bounces+soumya.sankaran=blr.hexaware.com@sqrug.org > 24-02-2005 08:43 PM > Please respond to > "This list is for discussion about the SQR database > reporting language > from Hyperion Solutions." > > > To > sqr-users@sqrug.org > cc > > Subject > [sqr-users] apology > > > > > > > > All, > > This morning I posted a suggestion which, due to the > earliness of the > morning, may be construed to be a bit harsher than I > intended. It wasn't > my > intention to embarrass or put down anyone; I was > just offering a > suggestion, > since sometimes it's faster to have a printed > resource available rather > than > having to wait for the group. > > Pklease accept the apology. > > peace, > clark 'the dragon' willis > > > PSA: Salary <> Slavery. If you earn a salary, your > employer is renting > your > services for 40 hours a week, not purchasing your > soul. Your time is the > only real finite asset that you have, and once used > it can never be > recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin > you have, and only you > > can determine how it will be spent. Be careful lest > you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Feb 25 20:26:02 2005 From: Al H Subject: Re: [sqr-users] apology Date: Fri, 25 Feb 2005 17:21:38 -0800 I'm thinking you might be on an older version of PeopleSoft? Show and Display do indeed write to the SQR Log file. But in current releases of P/S, that log file is posted to the Report Repository where it is accessible from Process Monitor. As I recall, the earlier 8.1x releases, that was not the case. In older versions, you can post message into $prcs_message_parm1 (2, 3 and 4) and add the following lines to your program before the last process scheduler includes, and the info will show up in the process status page: let #prcs_message_set_nbr =3D #prcs_msg_set_nbr let #prcs_message_nbr =3D 30 On Fri, 25 Feb 2005 15:19:37 +0530, you wrote: >If we all were to use manuals we wouldnt need such a forum.. > >Anyways, I wanted to know how to write to an SQR log file not trace file. > >Show and display can of course be used to write to a trace file. Is it=20 >possible to write onto the log file which the process scheduler uses?=20 > >Just a tht..=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 09:56:25 2005 Date: Mon, 28 Feb 2005 07:55:15 -0700 From: Robert Goshko Subject: Re: [sqr-users] SQRW Question On Fri, 25 Feb 2005 08:14:47 -0800 (PST), fpickava@earthlink.net wrote: > Rob, > > Thank you for your reply. Where would obtain an SQRW license? And, I would br gratefull if you could reply back with an example of executing an SQR from the command line in UNIX. You would need to specify all of the neccessay arguments/system parms that the exucution would require to run the SQR. Yes or no? For a license, contact Hyperion Solutions. If you execute the sqr command on the UNIX machine it will tell you what command line parameters it is looking for usually: sqr program.sqr userid/password/database -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 1 GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 11:45:57 2005 Date: Mon, 28 Feb 2005 11:44:37 -0500 From: "Colin Abbott" Subject: [sqr-users] SQR upgrade 6 -> 8.3 Hi, We are about to begin a project to upgrade SQR from version 6 to version 8.3 this is our first SQR upgrade and are looking for any advice or gotchas. 1) Did you run into any problems during your upgrades that we should be aware of? 2) Are there any deprecated features or commands that forced you to rewrite code for the upgrade? 3) Did anyone write up a new features document for your programmers that you could share? 4) Is anyone running SQR against an Oracle 10g database yet? Any issues? Thanks Colin =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Colin Abbott Supervisor Database Operations Oracle 8i,9i Certified Professional Information Systems Resources McGill University=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 14:59:49 2005 From: Ray Ontko Date: Mon, 28 Feb 2005 14:58:56 -0500 Subject: Re: [sqr-users] SQR upgrade 6 -> 8.3 Hi Colin, We're doing a 6.2 -> 8.3 upgrade right now. I don't think we've run into anything that had to change in the code, but we are making some changes to take advantage of bugs that were fixed or features that were added. Ray On Mon, Feb 28, 2005 at 11:44:37AM -0500, Colin Abbott wrote: > Hi, > > We are about to begin a project to upgrade SQR from version 6 to > version 8.3 this is our first SQR upgrade and are looking for any advice > or gotchas. > > 1) Did you run into any problems during your upgrades that we should be > aware of? > 2) Are there any deprecated features or commands that forced you to > rewrite code for the upgrade? > 3) Did anyone write up a new features document for your programmers that > you could share? > > 4) Is anyone running SQR against an Oracle 10g database yet? Any issues? > > Thanks > Colin > =================================== > Colin Abbott > Supervisor Database Operations > Oracle 8i,9i Certified Professional > Information Systems Resources > McGill University > =================================== > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 17:12:20 2005 From: "Joe Johnson" Date: Mon, 28 Feb 2005 16:10:47 -0600 Subject: [sqr-users] problems with using length(field) I have a requirment to process data according to the length of one field. I am getting the length this way: SELECT ET.DESCR ET.GL_EXPENSE LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH FROM TABLE ET The result of &ET.GL_EXPENSE_LNGTH is then pared down to: let $GL_Expense_Lngth = &ET.GL_EXPENSE_LNGTH let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '0') let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '.') which changes "6.0000000000000000000000" to "6" I have show statements to verify that $GL_Expense_Lngth is identifying the correct length. However, when I try to apply some of the programming logic according to length, the logic fails. The code: evaluate $GL_Expense_Lngth when = '12' when > '12' show 'Length 12+' break when = '6' show 'Length 6' break when = '0' show 'Length 0' break end-evaluate There are two problems: 1) when the field is blank, it's being shows as $GL_Expense_Lngth=1 2) when the field is 6, it's applying the logic for $GL_Expense_Lngth => 12 Any help would be appreciated. Thanks, Joe Johnson ~ JEJ ;{) ~ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 17:25:56 2005 Date: Mon, 28 Feb 2005 17:25:11 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] problems with using length(field) The logic works perfectly, but you have to realize that you're doing string comparison, not number comparison. Try something like... SELECT ET.DESCR ET.GL_EXPENSE LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH=number FROM TABLE ET ... and ... evaluate &ET.GL_EXPENSE_LNGTH when >= 12 show 'Length 12+' break when = 6 show 'Length 6' break ... etc HTH, Don On Mon, 28 Feb 2005, Joe Johnson wrote: > I have a requirment to process data according to the length of one field. > > I am getting the length this way: > > SELECT > ET.DESCR > ET.GL_EXPENSE > LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH > FROM TABLE ET > > The result of &ET.GL_EXPENSE_LNGTH is then pared down to: > > let $GL_Expense_Lngth = &ET.GL_EXPENSE_LNGTH > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '0') > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '.') > > which changes "6.0000000000000000000000" to "6" > > I have show statements to verify that $GL_Expense_Lngth is identifying the > correct length. > > However, when I try to apply some of the programming logic according to > length, the logic fails. The code: > evaluate $GL_Expense_Lngth > when = '12' > when > '12' > show 'Length 12+' > break > when = '6' > show 'Length 6' > break > when = '0' > show 'Length 0' > break > end-evaluate > > There are two problems: > > 1) when the field is blank, it's being shows as $GL_Expense_Lngth=1 > > 2) when the field is 6, it's applying the logic for $GL_Expense_Lngth => 12 > > Any help would be appreciated. > > Thanks, > > Joe Johnson > > ~ JEJ ;{) ~ > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 17:30:05 2005 Date: Mon, 28 Feb 2005 17:29:05 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] problems with using length(field) Joe, You are trying to use text strings to compare numbers. The text string '6' is greater than '12' since 6 comes after 1 using ascii codes. Also, a blank field is actually a space (of length one). Try the following: SELECT ET.DESCR ET.GL_EXPENSE &ET.GL_EXPENSE let $GL_EXPENSE = ltrim(rtrim(&ET.GL_EXPENSE,' '),' ') ! strip out spaces at beginning and end let #GL_EXPENSE_LENGTH = length($GL_EXPENSE) evaluate #GL_EXPENSE_LENGTH when >= 12 show 'Length 12+' break when = 6 show 'Length 6' break when = 0 show 'Length 0' break end-evaluate FROM TABLE ET > I have a requirment to process data according to the length of one field. > > I am getting the length this way: > > SELECT > ET.DESCR > ET.GL_EXPENSE > LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH > FROM TABLE ET > > The result of &ET.GL_EXPENSE_LNGTH is then pared down to: > > let $GL_Expense_Lngth = &ET.GL_EXPENSE_LNGTH > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '0') > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '.') > > which changes "6.0000000000000000000000" to "6" > > I have show statements to verify that $GL_Expense_Lngth is identifying the > correct length. > > However, when I try to apply some of the programming logic according to > length, the logic fails. The code: > evaluate $GL_Expense_Lngth > when = '12' > when > '12' > show 'Length 12+' > break > when = '6' > show 'Length 6' > break > when = '0' > show 'Length 0' > break > end-evaluate > > There are two problems: > > 1) when the field is blank, it's being shows as $GL_Expense_Lngth=1 > > 2) when the field is 6, it's applying the logic for $GL_Expense_Lngth => 12 > > Any help would be appreciated. > > Thanks, > > Joe Johnson > > ~ JEJ ;{) ~ > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Feb 28 18:42:21 2005 From: "Joe Johnson" Subject: Re: [sqr-users] problems with using length(field) Date: Mon, 28 Feb 2005 17:39:08 -0600 Thanks to all for your help - it lead me to the correct approach. I changed the code to the following so that I was working with the numeric length, and the code now is correct: ================================================== begin-SELECT ET.DESCR ET.GL_EXPENSE let $Erncd_Descr = rtrim(&ET.DESCR,' ') let $GL_Expense = rtrim(&ET.GL_EXPENSE,' ') let #GL_Expense_Lngth = length(rtrim(&ET.GL_Expense, ' ')) evaluate #GL_Expense_Lngth when = 12 when > 12 show 'length 12+' if substr($GL_Expense,1,3) = '900' let $Acct_Cd = substr($GL_Expense,7,6) let $DeptID = '0000' end-if if substr($GL_Expense,1,2) = '10' let $DeptID = substr($GL_Expense,3,4) let $Acct_Cd = substr($GL_Expense,7,6) end-if if substr($GL_Expense,1,2) = '08' let $DeptID = substr($GL_Expense,3,4) let $Acct_Cd = substr($GL_Expense,7,6) end-if if substr($GL_Expense,1,3) = '000 ' let $Acct_Cd = substr($GL_Expense,7,6) let $DeptID = '0000' end-if break when = 6 show 'length 6' let $Acct_Cd = substr($GL_Expense,1,6) break end-evaluate from PS_EARNINGS_TBL ET where ET.ERNCD = $Erncd and ET.EFF_STATUS = 'A' and ET.EFFDT = (select max(ET1.EFFDT) from PS_EARNINGS_TBL ET1 where ET.ERNCD = ET1.ERNCD and ET1.EFF_STATUS = 'A' and ET1.EFFDT <= $AsOfToday) group by ET.DESCR, ET.GL_EXPENSE end-SELECT ========================================== - Joe ----Original Message Follows---- From: Don Mellen Reply-To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." Subject: Re: [sqr-users] problems with using length(field) Date: Mon, 28 Feb 2005 17:25:11 -0500 (EST) MIME-Version: 1.0 Received: from seldon.sqrug.org ([199.164.165.113]) by mc1-f37.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 28 Feb 2005 14:28:23 -0800 Received: from localhost([127.0.0.1] helo=seldon.sqrug.org ident=list)by seldon.sqrug.org with esmtp (Exim 3.35 #1 (Debian))id 1D5tNB-0004el-00for ; Mon, 28 Feb 2005 17:28:17 -0500 Received: from shire.ontko.com ([199.164.165.1] ident=root)by seldon.sqrug.org with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.35 #1 (Debian))id 1D5tKC-0004VS-00for ; Mon, 28 Feb 2005 17:25:13 -0500 Received: from shire.ontko.com (donm@localhost [127.0.0.1])by shire.ontko.com (8.12.3/8.12.3/Debian-7.1) with ESMTP idj1SMPCl3018353for ; Mon, 28 Feb 2005 17:25:12 -0500 Received: from localhost (donm@localhost)by shire.ontko.com (8.12.3/8.12.3/Debian-7.1) with SMTP idj1SMPC3Z018349for ; Mon, 28 Feb 2005 17:25:12 -0500 X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8= X-BeenThere: sqr-users@sqrug.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: sqr-users-bounces+jej1216=hotmail.com@sqrug.org Return-Path: sqr-users-bounces+jej1216=hotmail.com@sqrug.org X-OriginalArrivalTime: 28 Feb 2005 22:28:23.0956 (UTC) FILETIME=[D09BFD40:01C51DE4] The logic works perfectly, but you have to realize that you're doing string comparison, not number comparison. Try something like... SELECT ET.DESCR ET.GL_EXPENSE LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH=number FROM TABLE ET ... and ... evaluate &ET.GL_EXPENSE_LNGTH when >= 12 show 'Length 12+' break when = 6 show 'Length 6' break ... etc HTH, Don On Mon, 28 Feb 2005, Joe Johnson wrote: > I have a requirment to process data according to the length of one field. > > I am getting the length this way: > > SELECT > ET.DESCR > ET.GL_EXPENSE > LENGTH(ET.GL_EXPENSE) &ET.GL_EXPENSE_LNGTH > FROM TABLE ET > > The result of &ET.GL_EXPENSE_LNGTH is then pared down to: > > let $GL_Expense_Lngth = &ET.GL_EXPENSE_LNGTH > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '0') > let $GL_Expense_Lngth = rtrim($GL_Expense_Lngth, '.') > > which changes "6.0000000000000000000000" to "6" > > I have show statements to verify that $GL_Expense_Lngth is identifying the > correct length. > > However, when I try to apply some of the programming logic according to > length, the logic fails. The code: > evaluate $GL_Expense_Lngth > when = '12' > when > '12' > show 'Length 12+' > break > when = '6' > show 'Length 6' > break > when = '0' > show 'Length 0' > break > end-evaluate > > There are two problems: > > 1) when the field is blank, it's being shows as $GL_Expense_Lngth=1 > > 2) when the field is 6, it's applying the logic for $GL_Expense_Lngth => 12 > > Any help would be appreciated. > > Thanks, > > Joe Johnson > > ~ JEJ ;{) ~ > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Mar 01 00:00:59 2005 Date: Tue, 1 Mar 2005 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for lo