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 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 Mar 01 08:21:27 2005 Date: Tue, 01 Mar 2005 07:57:31 -0500 From: "George Jansen" Subject: Re: [sqr-users] problems with using length(field) Just my usual wet-blanket post: tell your DBAs that this is a gross violation of 1st Normal Form, i.e. thou shalt not encode information into a portion of a field. Unfortunately it's something you tend to pay for down the road. >>> jej1216@hotmail.com 2/28/2005 6:39:08 PM >>> 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 _______________________________________________ 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 09:19:21 2005 From: "John F. Connell Jr." Date: Tue, 1 Mar 2005 09:17:29 -0500 Subject: [sqr-users] CSV To XLS I'm looking to convert a csv output file to xls file in sqr or by using a command line utility. Does anyone know or have experience using a csv to xls command line utility that could perform this task? Regards, John John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net www - www.williamsconnell.com Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 _______________________________________________ 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 09:31:47 2005 From: Bob Stone Subject: RE: [sqr-users] CSV To XLS Date: Tue, 1 Mar 2005 08:29:33 -0600 CSV files open in Excel. You can name your csv output file '.xls' if you want, and it will open as Excel opens the CSV file. There are certain formatting things in Excel which cannot be set when outputting as a CSV, though. I believe Jeff Steinfeldt has a snipet of VB code he runs that can run some formatting, but I believe it needs to be run on a CSV file in order to do the formatting. You can run that in your SQR after you're done outputting to csv. In unix we write: call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' &email_address end-if where $command is the line that would say 'run the conversion script on the csv to output the xls' and #unix_status is the output line. For whatever formatting you need to do, you can figure out the code for it by starting an excel macro, then doing your formatting. The code Excel uses for the macro is VB, and recreateable. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of John F. Connell Jr. Sent: Tuesday, March 01, 2005 8:17 AM To: sqr-users@sqrug.org Subject: [sqr-users] CSV To XLS I'm looking to convert a csv output file to xls file in sqr or by using a command line utility. Does anyone know or have experience using a csv to xls command line utility that could perform this task? Regards, John John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net www - www.williamsconnell.com Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 _______________________________________________ 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 09:37:34 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] SQR upgrade 6 -> 8.3 Date: Tue, 1 Mar 2005 08:31:59 -0600 We tried to upgrade from 8.1 to 8.3 back in December. Some of our basic date math stopped working. Also had problems with simple report footers not working. Backed off to 8.1 and are awaiting patches from Hyperion; patches were due in mid-February but haven't received them yet. Suggest you proceed with caution, there is a reason that they call it the bleeding edge ... -----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 Colin Abbott Sent: Monday, February 28, 2005 10:45 AM To: sqr-users@sqrug.org 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 =================================== 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 _______________________________________________ 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 09:42:19 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] CSV To XLS Date: Tue, 1 Mar 2005 08:39:19 -0600 If you can execute a VB or Java script then you can open an Excel object and apply pretty-much any formatting you want to your document. Be aware that the Excel object model exposed via VB script and Java script differs slightly from the one exposed via VBA within Excel but recording an Excel macro will get you very close. -----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 Bob Stone Sent: Tuesday, March 01, 2005 8:30 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] CSV To XLS CSV files open in Excel. You can name your csv output file '.xls' if you want, and it will open as Excel opens the CSV file. There are certain formatting things in Excel which cannot be set when outputting as a CSV, though. I believe Jeff Steinfeldt has a snipet of VB code he runs that can run some formatting, but I believe it needs to be run on a CSV file in order to do the formatting. You can run that in your SQR after you're done outputting to csv. In unix we write: call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' &email_address end-if where $command is the line that would say 'run the conversion script on the csv to output the xls' and #unix_status is the output line. For whatever formatting you need to do, you can figure out the code for it by starting an excel macro, then doing your formatting. The code Excel uses for the macro is VB, and recreateable. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of John F. Connell Jr. Sent: Tuesday, March 01, 2005 8:17 AM To: sqr-users@sqrug.org Subject: [sqr-users] CSV To XLS I'm looking to convert a csv output file to xls file in sqr or by using a command line utility. Does anyone know or have experience using a csv to xls command line utility that could perform this task? Regards, John John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net www - www.williamsconnell.com Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 _______________________________________________ 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 Mar 01 10:01:49 2005 Subject: RE : [sqr-users] SQR upgrade 6 -> 8.3 Date: Tue, 1 Mar 2005 16:00:23 +0100 From: "RITTER, Philippe" You can try SQR 8.3.1 out for 2 days now. It solves our problem with C rout= ine. Philippe RITTER -----Message d'origine----- De : sqr-users-bounces+phr=3Dcdm.smis.ch@sqrug.org [mailto:sqr-users-bounce= s+phr=3Dcdm.smis.ch@sqrug.org] De la part de Jeff.Steinfeldt@wellsfargo.com Envoy=E9 : mardi, 1. mars 2005 15:32 =C0 : sqr-users@sqrug.org Objet : RE: [sqr-users] SQR upgrade 6 -> 8.3 We tried to upgrade from 8.1 to 8.3 back in December. Some of our basic date math stopped working. Also had problems with simple report footers not working. Backed off to 8.1 and are awaiting patches from Hyperion; patches were due in mid-February but haven't received them yet. Suggest you proceed with caution, there is a reason that they call it the bleeding edge ... -----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 Colin Abbott Sent: Monday, February 28, 2005 10:45 AM To: sqr-users@sqrug.org 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 _______________________________________________ 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 10:09:12 2005 Date: Tue, 1 Mar 2005 10:08:25 -0500 (EST) From: "Kevin Laroche" Subject: [sqr-users] Converting csv to XLS I use this vb script from this site which runs on the windows command line and works well on windows 2000 and xp for Brio 5 and 6. I just save the brio report as a .csv and run the vb script. Or you can write to a .csv file if you want finer control. http://www.borncity.com/WSHBazaar/WSHBazaar.htm look for Excel: Import a CSV file Kevin LaRoche-Oracle forms and Brio too Ottawa, Ontario _______________________________________________ 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 10:32:35 2005 Date: Tue, 1 Mar 2005 10:31:49 -0500 (EST) From: "Kevin Laroche" Subject: [sqr-users] #Define variables Hi all I am trying to write dynamic reports that resize columns based on the #Define no_columns variable. I would like to add a feature so that if the user selects a particular subset of data the report automatically adds a column and resizes all the column widths. I have been using #define no_columns 8 at the start of the report then I calculate the size of the columns from there My question is... This works but the report has to input the number of columns and I prefer not to link the form and the report that closely !--start of program #Define no_columns 8 BEGIN-PROGRAM input #no_columns 'number of columns' #Define no_columns #no_columns !{no_columns} is redefined here to whatever number I want !--much more code END-PROGRAM This doesnt work !--start of program #Define no_columns 8 BEGIN-PROGRAM input $user 'Enter a user name' IF $user = 'XXXX' let #no_columns = {no_columns} let #no_columns = #no_columns + 1 !{no_columns} is not redefined here -results are uncertain at best #Define no_columns #no_columns END-IF !--much more code END-PROGRAM Any suggestions from the guru's ? Thanks Brio 6.1 on Windows 2000 with Oracle 8i Kevin LaRoche - Oracle Forms and Brio too Ottawa Ontario _______________________________________________ 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 11:30:48 2005 Subject: Re: [sqr-users] #Define variables Date: Tue, 1 Mar 2005 16:29:56 -0000 From: Hi Kevin, I have used multiple defines in a separate include specifying the most likely sizes of columns and reports (like the use of a report template). I then use a maximum size 2 dimensional array in my main SQR and populate depending on the subset of data. This works for character oriented data only but allows variable field size (read column) in the array. The variable size is by using a print mask with defines on field size when printing. John Willson Kevin Laroche said: > Hi all > I am trying to write dynamic reports that resize columns based on the #Define no_columns > variable. I would like to add a feature so that if the user selects a particular > subset of data the report automatically adds a column and resizes all the column widths. > > I have been using > #define no_columns 8 > at the start of the report then I calculate the size of the columns from there > > My question is... > > This works but the report has to input the number of columns > and I prefer not to link the form and the report that closely > !--start of program > #Define no_columns 8 > BEGIN-PROGRAM > input #no_columns 'number of columns' > #Define no_columns #no_columns > !{no_columns} is redefined here to whatever number I want > > !--much more code > END-PROGRAM > > This doesnt work > !--start of program > #Define no_columns 8 > BEGIN-PROGRAM > input $user 'Enter a user name' > IF $user = 'XXXX' > let #no_columns = {no_columns} > let #no_columns = #no_columns + 1 > !{no_columns} is not redefined here -results are uncertain at best > #Define no_columns #no_columns > END-IF > > !--much more code > END-PROGRAM > > Any suggestions from the guru's ? > > Thanks > > Brio 6.1 on Windows 2000 with Oracle 8i > > > Kevin LaRoche - Oracle Forms and Brio too > Ottawa Ontario > > > _______________________________________________ > 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 11:48:29 2005 Date: Tue, 1 Mar 2005 11:47:48 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] #Define variables #Define is a compiler directive. What you are doing with ... #Define no_columns #no_columns ...is telling the compiler that after this point in the code, substitute the text "#no_columns" wherever you find the text "{no_columns}". When the program executes, it's using the numeric variable. From what I can see in your examples, get rid of the second #Define and use the numeric variable, like.... !--start of program #Define no_columns 8 BEGIN-PROGRAM input $user 'Enter a user name' move {no_columns} to #no_columns IF $user = 'XXXX' let #no_columns = #no_columns + 1 END-IF !--much more code END-PROGRAM ...if you don't need the number of columns as the first thing in the code, then you don't need the first #Define either, so it would be like... !--start of program BEGIN-PROGRAM input $user 'Enter a user name' move 8 to #no_columns IF $user = 'XXXX' let #no_columns = #no_columns + 1 END-IF !--much more code END-PROGRAM HTH, Don On Tue, 1 Mar 2005, Kevin Laroche wrote: > Hi all > I am trying to write dynamic reports that resize columns based on the #Define no_columns > variable. I would like to add a feature so that if the user selects a particular > subset of data the report automatically adds a column and resizes all the column widths. > > I have been using > #define no_columns 8 > at the start of the report then I calculate the size of the columns from there > > My question is... > > This works but the report has to input the number of columns > and I prefer not to link the form and the report that closely > !--start of program > #Define no_columns 8 > BEGIN-PROGRAM > input #no_columns 'number of columns' > #Define no_columns #no_columns > !{no_columns} is redefined here to whatever number I want > > !--much more code > END-PROGRAM > > This doesnt work > !--start of program > #Define no_columns 8 > BEGIN-PROGRAM > input $user 'Enter a user name' > IF $user = 'XXXX' > let #no_columns = {no_columns} > let #no_columns = #no_columns + 1 > !{no_columns} is not redefined here -results are uncertain at best > #Define no_columns #no_columns > END-IF > > !--much more code > END-PROGRAM > > Any suggestions from the guru's ? > > Thanks > > Brio 6.1 on Windows 2000 with Oracle 8i > > > Kevin LaRoche - Oracle Forms and Brio too > Ottawa Ontario > > > _______________________________________________ > 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 Tue Mar 01 12:22:51 2005 Date: Tue, 1 Mar 2005 12:21:46 -0500 (EST) From: "Kevin Laroche" Subject: [sqr-users] #Define variables Thank you, Don and John, for your suggestions. I realize that by using #Define variables I want it all, a global variable, that can be accessed even in local procedures without that pesky underscore, can be redefined anywhere, anytime. Oh, well failing that,I will work with your ideas. John, can you expand on your comments about a 2 D array with field masks. We print mostly character data, or numbers that can be converted to character so that could help. Thanks Kevin LaRoche Oracle Forms and Brio too Ottawa, Ontario _______________________________________________ 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 15:39:06 2005 From: "Bryson, Steven" Date: Tue, 1 Mar 2005 15:38:16 -0500 Subject: [sqr-users] Underlining a portion of paragraph I have created a letter (.pdf) where a series of words in the paragraph need to be underlined. I am not sure if this can be accomplished and was wondering if someone had any ideas. I have tried to create and print a variable containing all of the text leading up to the underline and then force printing the location of the underline text, however, the paragraph is dynamic and the location will never be the same place each time. Example text :Therefore, (underline)you must take one(/underline) of the following actions to avoid further consequences. Any help is appreciated. Steve Bryson - Technical Business Analyst Center for Analysis and Reporting -PHH ARVAL Steve.Bryson@phh.com (410) 771-2732 "The sender believes that this E-mail and any attachments were free of any harmful and malicious code or defects when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action regarding the code or such defects. The sender is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ 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 16:20:43 2005 Date: Tue, 01 Mar 2005 16:19:56 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Underlining a portion of paragraph Hi Steve, This is easy if you are using a monospace font. You can use separate print statements, and use a print location of (,+1) (same line, one column to the right) to add the underlined text at the proper location. For your example: Print 'Therefore,' (+1,10) Print 'you must take one' (,+1) underline Print 'of the following actions to avoid further consequences.' (,+1) If you are using a non-monospace font, it becomes much more difficult to properly place the text for the separate print statements. You can scan the archives for discussions on how to do this. Hope this helps, Don > I have created a letter (.pdf) where a series of words in the paragraph need > to be underlined. I am not sure if this can be accomplished and was > wondering if someone had any ideas. > > I have tried to create and print a variable containing all of the text > leading up to the underline and then force printing the location of the > underline text, however, the paragraph is dynamic and the location will > never be the same place each time. > > Example text :Therefore, (underline)you must take one(/underline) of the > following actions to avoid further consequences. > > Any help is appreciated. > > Steve Bryson - Technical Business Analyst > Center for Analysis and Reporting -PHH ARVAL > Steve.Bryson@phh.com > (410) 771-2732 _______________________________________________ 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 16:39:44 2005 From: "Bryson, Steven" Subject: RE: [sqr-users] Underlining a portion of paragraph Date: Tue, 1 Mar 2005 16:39:45 -0500 This was originally what I was going to do, however, the entire paragraph is dynamic and the underline portion could potentially span two rows. I am also using a proportional font. I have looked through some of the archives and checked some other resources. This was just kind of a last effort. Thank you for your response. -----Original Message----- From: don.barclay@srs.gov [mailto:don.barclay@srs.gov] Sent: Tuesday, March 01, 2005 4:20 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Underlining a portion of paragraph Hi Steve, This is easy if you are using a monospace font. You can use separate print statements, and use a print location of (,+1) (same line, one column to the right) to add the underlined text at the proper location. For your example: Print 'Therefore,' (+1,10) Print 'you must take one' (,+1) underline Print 'of the following actions to avoid further consequences.' (,+1) If you are using a non-monospace font, it becomes much more difficult to properly place the text for the separate print statements. You can scan the archives for discussions on how to do this. Hope this helps, Don > I have created a letter (.pdf) where a series of words in the paragraph need > to be underlined. I am not sure if this can be accomplished and was > wondering if someone had any ideas. > > I have tried to create and print a variable containing all of the text > leading up to the underline and then force printing the location of the > underline text, however, the paragraph is dynamic and the location will > never be the same place each time. > > Example text :Therefore, (underline)you must take one(/underline) of the > following actions to avoid further consequences. > > Any help is appreciated. > > Steve Bryson - Technical Business Analyst > Center for Analysis and Reporting -PHH ARVAL > Steve.Bryson@phh.com > (410) 771-2732 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users "The sender believes that this E-mail and any attachments were free of any harmful and malicious code or defects when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action regarding the code or such defects. The sender is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ 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 17:04:58 2005 Date: Tue, 01 Mar 2005 17:04:12 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Underlining a portion of paragraph Steve, I wrote a library that allows you to do (among many other things) the following: move 'This is some long text that will definitely wrap onto multiple lines. I want some of it to be underlined, but most of it will not be.' to $text do print_html($text,#length,#y,#x) or even move '

This paragraph will be right and left justified like a newspaper column. This is some long text that will definitely wrap onto multiple lines. I want some of it to be underlined, but most of it will not be.

This paragraph will have extra white space above it.

' to $text do print_html($text,#length,#y,#x) I haven't decided what to do with it yet (just give it away or try to license a toolkit). Is this what you are looking for? Steve, why don't you send me a note off line and we can work something out. Poll: Would any of your organizations want to do sophisticated things with proportional fonts and html rendering in SQR? Send me responses and I'll publish results back to this list. Cheers, Eric Bryson, Steven wrote: > This was originally what I was going to do, however, the entire paragraph is > dynamic and the underline portion could potentially span two rows. I am also > using a proportional font. I have looked through some of the archives and > checked some other resources. This was just kind of a last effort. > > Thank you for your response. > > -----Original Message----- > From: don.barclay@srs.gov [mailto:don.barclay@srs.gov] > Sent: Tuesday, March 01, 2005 4:20 PM > To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] Underlining a portion of paragraph > > > Hi Steve, > > This is easy if you are using a monospace font. You can use separate > print statements, and use a print location of (,+1) (same line, one column > to the right) to add the underlined text at the proper location. > > For your example: > > Print 'Therefore,' (+1,10) > Print 'you must take one' (,+1) underline > Print 'of the following actions to avoid further consequences.' (,+1) > > If you are using a non-monospace font, it becomes much more difficult to > properly place the text for the separate print statements. You can scan > the archives for discussions on how to do this. > > Hope this helps, > Don > > >>I have created a letter (.pdf) where a series of words in the paragraph > > need > >>to be underlined. I am not sure if this can be accomplished and was >>wondering if someone had any ideas. >> >>I have tried to create and print a variable containing all of the text >>leading up to the underline and then force printing the location of the >>underline text, however, the paragraph is dynamic and the location will >>never be the same place each time. >> >>Example text :Therefore, (underline)you must take one(/underline) of the >>following actions to avoid further consequences. >> >>Any help is appreciated. >> >>Steve Bryson - Technical Business Analyst >>Center for Analysis and Reporting -PHH ARVAL >>Steve.Bryson@phh.com >>(410) 771-2732 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > "The sender believes that this E-mail and any attachments were free of any > harmful and malicious code or defects when sent. This message and its > attachments could have been infected during transmission. By reading the > message and opening any attachments, the recipient accepts full > responsibility for taking protective and remedial action regarding the code > or such defects. The sender is not liable for any loss or damage arising in > any way from this message or its attachments." > > _______________________________________________ > 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 Mar 02 20:45:14 2005 From: "SRI Technologies" Date: Thu, 3 Mar 2005 12:54:54 +1100 Subject: [sqr-users] SqrPlus enhanced to support Unix platform All, We are pleased to advise that SqrPlus Workbench has been enhanced to support Unix platform. This means that you can develop or debug your sqr programs interactively using sqr product of Unix (e.g sqr/oracle or sqr/db2 on Unix etc) while enjoying windows GUI front end. For details please visit web site www.sritech.com.au Thanks to those who participated in the beta testing. Susan. _______________________________________________ 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 Mar 03 15:21:41 2005 Date: Thu, 3 Mar 2005 15:20:51 -0500 From: "Kaithi, Murali" Subject: [sqr-users] Report Printing I have a sqr (Version 4.3.2) program which prints a report in PeopleSoft 7.5 version which was working fine. I am using the same program in PeopleSoft 8.4 Version with sqr Version 6.2 and now the report is printing in Portrait instead of printing in Landscape. My program still has=20 #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size initialization in the beginning of the program. Any Ideas and suggestions as to how to make it print in Landscape. 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 Mar 03 15:53:26 2005 From: "Tommy Lacour" Subject: RE: [sqr-users] Report Printing Date: Thu, 3 Mar 2005 14:52:43 -0600 Try using #include 'setup32.sqc' Tommy -----Original Message----- From: sqr-users-bounces+tlacour=selu.edu@sqrug.org [mailto:sqr-users-bounces+tlacour=selu.edu@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, March 03, 2005 2:21 PM To: This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: [sqr-users] Report Printing I have a sqr (Version 4.3.2) program which prints a report in PeopleSoft 7.5 version which was working fine. I am using the same program in PeopleSoft 8.4 Version with sqr Version 6.2 and now the report is printing in Portrait instead of printing in Landscape. My program still has #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size initialization in the beginning of the program. Any Ideas and suggestions as to how to make it print in Landscape. 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 ______________________________________________________________________ _______________________________________________ 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 Mar 03 16:11:28 2005 Date: Thu, 3 Mar 2005 16:10:27 -0500 (GMT-05:00) From: "fpickava@earthlink.net" Subject: RE: [sqr-users] Report Printing A very good suggestion! -----Original Message----- From: Tommy Lacour Sent: Mar 3, 2005 3:52 PM To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Subject: RE: [sqr-users] Report Printing Try using #include 'setup32.sqc' Tommy -----Original Message----- From: sqr-users-bounces+tlacour=selu.edu@sqrug.org [mailto:sqr-users-bounces+tlacour=selu.edu@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, March 03, 2005 2:21 PM To: This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: [sqr-users] Report Printing I have a sqr (Version 4.3.2) program which prints a report in PeopleSoft 7.5 version which was working fine. I am using the same program in PeopleSoft 8.4 Version with sqr Version 6.2 and now the report is printing in Portrait instead of printing in Landscape. My program still has #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size initialization in the beginning of the program. Any Ideas and suggestions as to how to make it print in Landscape. 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 ______________________________________________________________________ _______________________________________________ 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 Mar 03 16:22:22 2005 Subject: RE: [sqr-users] Report Printing Date: Thu, 3 Mar 2005 16:21:18 -0500 From: "Kaithi, Murali" Thank you very much Tommy, It worked, I used #include 'setup32.sqc' instead of #include 'setup02.sqc' and the report printed in Landscape mode. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of Tommy Lacour Sent: Thursday, March 03, 2005 3:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Report Printing Try using #include 'setup32.sqc' Tommy -----Original Message----- From: sqr-users-bounces+tlacour=3Dselu.edu@sqrug.org [mailto:sqr-users-bounces+tlacour=3Dselu.edu@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, March 03, 2005 2:21 PM To: This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: [sqr-users] Report Printing I have a sqr (Version 4.3.2) program which prints a report in PeopleSoft 7.5 version which was working fine. I am using the same program in PeopleSoft 8.4 Version with sqr Version 6.2 and now the report is printing in Portrait instead of printing in Landscape. My program still has=20 #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size initialization in the beginning of the program. Any Ideas and suggestions as to how to make it print in Landscape. 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 ______________________________________________________________________ _______________________________________________ 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 ______________________________________________________________________ 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 Mar 03 16:27:43 2005 Date: Thu, 3 Mar 2005 16:26:28 -0500 (GMT-05:00) From: "fpickava@earthlink.net" Subject: RE: [sqr-users] Report Printing Good Move! -----Original Message----- From: Tommy Lacour Sent: Mar 3, 2005 3:52 PM To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Subject: RE: [sqr-users] Report Printing Try using #include 'setup32.sqc' Tommy -----Original Message----- From: sqr-users-bounces+tlacour=selu.edu@sqrug.org [mailto:sqr-users-bounces+tlacour=selu.edu@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, March 03, 2005 2:21 PM To: This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: [sqr-users] Report Printing I have a sqr (Version 4.3.2) program which prints a report in PeopleSoft 7.5 version which was working fine. I am using the same program in PeopleSoft 8.4 Version with sqr Version 6.2 and now the report is printing in Portrait instead of printing in Landscape. My program still has #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size initialization in the beginning of the program. Any Ideas and suggestions as to how to make it print in Landscape. 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 ______________________________________________________________________ _______________________________________________ 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 Mar 03 17:28:13 2005 From: "tam kag" Date: Thu, 03 Mar 2005 22:26:44 +0000 Subject: [sqr-users] using GIF files in SQR Hello, I have been using a GIF file that have been created a while ago, the generated PDF displays that GIF correctly. but now I'm trying to use a GIF file that I have created to use in a SQR program but it's not being displayed. Is there a special way to create the GIF file in order to allow it to be displayed on the PDF output. any input well be helpful. 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 Thu Mar 03 21:46:16 2005 From: "ramki pol" Date: Fri, 04 Mar 2005 02:44:36 +0000 Subject: [sqr-users] (no subject) Hi I have a sqr which uses to creates pdf files which are later used to send to different areas i am getting the following error SQR 6002) Cannot open the printer file C (2): No such file or directory Thanks Ram _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ 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 Mar 03 22:22:14 2005 From: "Susan Kelly" Date: Thu, 3 Mar 2005 19:21:02 -0800 Subject: [sqr-users] SQR coding offer Does anybody need a volunteer SQR coder in the Vancouver (Canada) area. I'm an ex-programmer/analyst, recently relocated here, and want to revive my slightly rusty technical skills. I haven't used it in a while, but I have about 5 years experience writing SQRs - also have advanced SQL development skills (stored procedures etc) and fledgling Crystal skills. Will work for next-to-nothing, or even nothing, for some local experience, and if I get the chance to learn something about PeopleSoft, I might even consider paying you (just kidding)!!! Best, Susan _______________________________________________ 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 Mar 04 14:57:24 2005 From: Bob Stone Date: Fri, 4 Mar 2005 13:56:09 -0600 Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:05:40 2005 Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:04:59 -0600 From: "Knapp, Richard" Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value).=20=20 In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone=20=20 Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body =3D 'BUs were added to Inventory Interfaces on '=20 || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit =3D &t.business_unit if **case one let $ps_live =3D 'Y' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live =3D 'N' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found =3D 'Y' let $email_subject =3D 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist =3D &district let $dist_descr =3D &district_descr let $reg =3D ®ion_code let $reg_descr =3D ®ional_descr let $_new_bu_email_body =3D $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body =3D $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit =3D $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT=20 email_address=20 let $email_address =3Dltrim( rtrim(&email_address, ' '), ' ') let $command =3D '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status=20=20=20 if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if=20 from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:18:58 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:17:45 -0600 if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:27:00 2005 Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:26:17 -0600 From: "Knapp, Richard" When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command =3D '(echo "' || $body || '") | mailx -s "'=20 || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value).=20=20 In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone=20=20 Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body =3D 'BUs were added to Inventory Interfaces on '=20 || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit =3D &t.business_unit if **case one let $ps_live =3D 'Y' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live =3D 'N' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found =3D 'Y' let $email_subject =3D 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist =3D &district let $dist_descr =3D &district_descr let $reg =3D ®ion_code let $reg_descr =3D ®ional_descr let $_new_bu_email_body =3D $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body =3D $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit =3D $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT=20 email_address=20 let $email_address =3Dltrim( rtrim(&email_address, ' '), ' ') let $command =3D '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status=20=20=20 if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if=20 from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:40:24 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:39:06 -0600 Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:46:18 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:45:01 -0600 I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:49:52 2005 Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:46:17 -0600 From: "Knapp, Richard" Why is the echo command and what it echos in parens? 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 Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body.=20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005.=20 ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner.=20 TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore.=20 SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey.=20 OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff.=20 ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner.=20 ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command =3D '(echo "' || $body || '") | mailx -s "'=20 || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value).=20=20 In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone=20=20 Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body =3D 'BUs were added to Inventory Interfaces on '=20 || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit =3D &t.business_unit if **case one let $ps_live =3D 'Y' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live =3D 'N' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found =3D 'Y' let $email_subject =3D 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist =3D &district let $dist_descr =3D &district_descr let $reg =3D ®ion_code let $reg_descr =3D ®ional_descr let $_new_bu_email_body =3D $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body =3D $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit =3D $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT=20 email_address=20 let $email_address =3Dltrim( rtrim(&email_address, ' '), ' ') let $command =3D '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status=20=20=20 if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if=20 from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:54:03 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:50:02 -0600 Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 15:59:11 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 14:54:39 -0600 I copied this from somewhere (where the mailx was working) and it was like that. Do you think it makes a difference? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:46 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Why is the echo command and what it echos in parens? 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 Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Mar 04 16:06:43 2005 Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 15:05:58 -0600 From: "Knapp, Richard" Don't know. I just don't understand it but I'm a little rusty on the unix. Why not try it without. 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 Bob Stone Sent: Friday, March 04, 2005 2:55 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I copied this from somewhere (where the mailx was working) and it was like that. Do you think it makes a difference?=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:46 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Why is the echo command and what it echos in parens? 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 Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body.=20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005.=20 ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner.=20 TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore.=20 SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey.=20 OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff.=20 ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner.=20 ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command =3D '(echo "' || $body || '") | mailx -s "'=20 || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value).=20=20 In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone=20=20 Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body =3D 'BUs were added to Inventory Interfaces on '=20 || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit =3D &t.business_unit if **case one let $ps_live =3D 'Y' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live =3D 'N' let $new_bu_email_body =3D $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found =3D 'Y' let $email_subject =3D 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist =3D &district let $dist_descr =3D &district_descr let $reg =3D ®ion_code let $reg_descr =3D ®ional_descr let $_new_bu_email_body =3D $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body =3D $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit =3D $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT=20 email_address=20 let $email_address =3Dltrim( rtrim(&email_address, ' '), ' ') let $command =3D '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status=20=20=20 if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if=20 from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Fri Mar 04 16:31:06 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 15:29:49 -0600 Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 Fri Mar 04 16:42:15 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 15:34:59 -0600 Ummm, when your SQR runs on the production machine is it running under a uid/pwd combination that allows the sending of email? -----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 Bob Stone Sent: Friday, March 04, 2005 3:30 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 _______________________________________________ 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 Mar 04 16:48:10 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 4 Mar 2005 15:46:53 -0600 I thought about that too, but I know that uid/pwd has to have permissions for sending emails because we get other emails everyday from a different SQR process run by the same AUTOSYS user. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 3:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Ummm, when your SQR runs on the production machine is it running under a uid/pwd combination that allows the sending of email? -----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 Bob Stone Sent: Friday, March 04, 2005 3:30 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 _______________________________________________ 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 Mar 04 17:02:30 2005 Date: Fri, 4 Mar 2005 14:01:13 -0800 (PST) From: Dattatraya Shetty Subject: RE: [sqr-users] unix email in SQR Bob, Here is my suggestion. Try it. This might not be the best but is sure to work ( I hope ) Write the body of the email to a file lets say open '/tmp/outmail' as 1 for-writing write 1 from $body close 1 now use the following command let $cmd = ' mailx -s test_mail email@address.com < /tmp/outmail ` system $cmd HTH Till then let me see what is wrong with this. Bob Stone wrote: I thought about that too, but I know that uid/pwd has to have permissions for sending emails because we get other emails everyday from a different SQR process run by the same AUTOSYS user. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 3:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Ummm, when your SQR runs on the production machine is it running under a uid/pwd combination that allows the sending of email? -----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 Bob Stone Sent: Friday, March 04, 2005 3:30 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 _______________________________________________ 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 --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web _______________________________________________ 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 Mar 04 18:59:45 2005 Date: Fri, 04 Mar 2005 18:58:14 -0500 From: "George Jansen" Subject: RE: [sqr-users] unix email in SQR Another suggestion: create a simple script, call it mailz, park it on your path, something like #!/usr/bin/env perl -w- open(OFILE, ">/tmp/mailz.txt") || die $!; while(<>) { print OFILE $_; } Swap mailz into your SQR for mailx and see what is actually getting through to the program. _______________________________________________ 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 08 10:08:46 2005 From: "SASI" Date: Tue, 8 Mar 2005 19:08:02 +0400 Subject: [sqr-users] Input Function with variable name Hi all, Is there any way to use Variables in the user prompt? Ex : I am looking for something like this.. let $strinput = 'Enter TEST REPORT NUMBER ' || 'for the EQNUM : ' || $strEQNUM input $m_GRN type=TEXT to_char($strinput) Pls help. Thanks sasi _______________________________________________ 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 08 10:27:04 2005 Date: Tue, 08 Mar 2005 10:26:29 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Input Function with variable name Hi Sasi, Try show $strinput noline input $m_GRN type=TEXT noprompt Don > Hi all, > > Is there any way to use Variables in the user prompt? > > Ex : I am looking for something like this.. > > let $strinput = 'Enter TEST REPORT NUMBER ' || 'for the EQNUM : ' || > $strEQNUM > > > input $m_GRN type=TEXT to_char($strinput) > > Pls help. > > Thanks > > sasi _______________________________________________ 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 08 17:00:55 2005 Date: Tue, 8 Mar 2005 14:02:24 -0800 From: Subject: [sqr-users] Calling SQR Report From .asp page/script Hi, I'm looking to create an .asp (active server page) page that passes parameters to an SQR report I have created. The SQR would run and create HTML/CSV output and email files to a user. I have seen examples using CGI and Perl, but would be interested in finding a solution using active server pages. Any ideas would be most welcome. 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 Tue Mar 08 20:33:24 2005 From: "Peter Daalder" Date: Tue, 8 Mar 2005 17:32:51 -0800 Subject: [sqr-users] #sqr-status issues Hi We have an sqr that is already running since ages. Now we did an PS88 upgrade project and this sqr moved to its new environment. The old env: - HP - Oracle 8i - SQR V6.1.4 The new env: - HP Itanium - Oracle 9i - SQR for PeopleSoft V8.45.09 When I run my sqr program ni the old env, a unique constraint error returns a -1. (with both old or new database) The procedure called: ********************************************* Begin-Procedure SQL-Load-Error show ' ' show 'Error Loading table ' $ps_table_name ' from ' $tname '. Table is now EMPTY.' show ' ' Display 'SQL error: ' noline Display $sql-error Display 'Error number: ' noline Display #sql-status 9999999 Display ' ' if #sql-status = -1 show 'with key ' $keydump else let $error_found = 'Y' let #return-status = 2 end-if End-Procedure ********************************************* The error in the output ********************************************* with key deptid = 38135 and cs_hierarchy_type = MANAGEMENT Error Loading table PS_CS_SI_DEP_TR_IN from SIADM.SI_HIERARCHY_PUBLISHED@si. Table is now EMPTY. SQL error: ORA-00001: unique constraint (SYSADM.PS_CS_SI_DEP_TR_IN) violated Error number: -1 ********************************************* When I now run this same sqr in the new environment, this same statement does this ********************************************* Error Loading table PS_CS_SI_DEP_TR_IN from SIADM.SI_HIERARCHY_PUBLISHED@si. Table is now EMPTY. SQL error: ORA-00001: unique constraint (SYSADM.PS_CS_SI_DEP_TR_IN) violated Error number: 1 ********************************************* As you can see, the return-status will be set to 2, and that is not what I want. Any suggestions. Did Peoplesoft adjust the sqr executable? Peter _______________________________________________ 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 Mar 09 04:49:18 2005 Date: Wed, 9 Mar 2005 01:47:59 -0800 (PST) From: Subject: [sqr-users] dynamic SQL problem Hi Sqr-Users I have a problem with SQL containing dynamic where clauses in a begin-select statement. When SQR compiles, it generates an error saying that it is missing a right parenthesis, however if I remove the dynamic SQL string it compiles with no errors: Sample: begin-select x.field do something FROM (SELECT b.field1 FROM table A, table B WHERE B.field1 = $variable1 AND A.field1 = B.field2 AND A.field3 = B.field3 AND A.field4 = $variable2 [$WC_Where_1] AND B.field5 BETWEEN $fromdate AND $thrudate AND A.field6 = (SELECT MAX(A1.field6) FROM table A1 WHERE A1.field1 = A.field1 AND A1.field2 = A.field2 AND A1.field6 <= $thrudate) GROUP BY B.field1 UNION SELECT d.field1 FROM table C, table D WHERE D.field1 = $variable1 AND C.field1 = D.field2 AND C.field3 = D.field3 AND C.field4 = $variable2 [$WC_Where_1] AND D.field5 BETWEEN $fromdate AND $thrudate AND C.field6 = (SELECT MAX(C1.field6) FROM table C1 WHERE C1.field1 = C.field1 AND C1.field2 = C.field2 AND C1.field6 <= $thrudate) GROUP BY B.field1) x GROUP BY x.field ORDER BY x.field end-select When it compiles the SQL error shows the following: ORA-00907: missing right parenthesis SQL: SELECT X.FIELD FROM (SELECT B.FIELD1 FROM TABLE A, TABLE B WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = B.FIELD2 AND A.FIELD3 = 'VALUE' GROUP BY B.FIELD1 It appears the dynamic variable $WC_Where_1 is causing the SQL to skip lines from the SQL and finish at the group by, it doesn't go to the UNION or finish to SQL to see there is a right parenthesis at the end. If I remove the dynamic variable $WC_Where_1 the SQR compiles the SQL successfully and generates a report. I want to introduce dynamic where clauses to filter the data returned. Any suggestions on what is going wrong would be greatly appreciated. The SQL above is an abridged version, there are 8 unions in the actual SQL. Regards, Daniel __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ _______________________________________________ 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 Mar 09 06:31:40 2005 Date: Wed, 9 Mar 2005 16:57:21 +0530 From: "Murty Mirthipati Venkata Suryanarayan" Subject: [sqr-users] Problem in printing a report with both Landscape and portrait pages Hi Everyone, I am running a report that has multiple pages. The first few pages orien= tation is Landascape. Then the report changes to Portrait. Please help me i= n changing the orientation of the new-page. Thanks in advance, Murty ;) _______________________________________________ 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 Mar 09 09:58:35 2005 From: "SASI" Subject: RE: [sqr-users] Input Function with variable name Date: Wed, 9 Mar 2005 18:23:01 +0400 Thanks Don, I tried with the show statement. But my problem was not yet solved. In the prompt I would like to display the variable value . Is that possible? The requirement is , I would like to user to input the value depends on the Variable value at a given point of time. He will enter the value inside a loop, (the iteration process is depends on the value of the variable). Is this possible? sasi -----Original Message----- From: don.barclay@srs.gov [mailto:don.barclay@srs.gov] Sent: Tuesday, March 08, 2005 7:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Input Function with variable name Hi Sasi, Try show $strinput noline input $m_GRN type=TEXT noprompt Don > Hi all, > > Is there any way to use Variables in the user prompt? > > Ex : I am looking for something like this.. > > let $strinput = 'Enter TEST REPORT NUMBER ' || 'for the EQNUM : ' || > $strEQNUM > > > input $m_GRN type=TEXT to_char($strinput) > > Pls help. > > Thanks > > sasi _______________________________________________ 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 Mar 09 10:01:48 2005 From: James Womeldorf Subject: RE: [sqr-users] dynamic SQL problem Date: Wed, 9 Mar 2005 09:00:40 -0600 Sometimes SQR gets fooled into thinking that part of a complicated sql statement is ready at compile time when it should wait until run time because of dynamic SQL statements. I've had this problem with dynamic SQL and have usually fixed it by placing an 'unnecessary' dynamic variable in all the select statements immediately after the 'from like I did in the following code. Some of the insertions may be REALLY be unnecessary but they are harmless. let $WhyAmIHere = '' begin-select x.field do something FROM [$WhyAmIHere] (SELECT b.field1 FROM [$WhyAmIHere] table A, table B WHERE B.field1 = $variable1 AND A.field1 = B.field2 AND A.field3 = B.field3 AND A.field4 = $variable2 [$WC_Where_1] AND B.field5 BETWEEN $fromdate AND $thrudate AND A.field6 = (SELECT MAX(A1.field6) FROM table A1 WHERE A1.field1 = A.field1 AND A1.field2 = A.field2 AND A1.field6 <= $thrudate) GROUP BY B.field1 UNION SELECT d.field1 FROM [$WhyAmIHere] table C, table D WHERE D.field1 = $variable1 AND C.field1 = D.field2 AND C.field3 = D.field3 AND C.field4 = $variable2 [$WC_Where_1] AND D.field5 BETWEEN $fromdate AND $thrudate AND C.field6 = (SELECT MAX(C1.field6) [$WhyAmIHere] FROM table C1 WHERE C1.field1 = C.field1 AND C1.field2 = C.field2 AND C1.field6 <= $thrudate) GROUP BY B.field1) x GROUP BY x.field ORDER BY x.field end-select -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of fbarchie@yahoo.com Sent: Wednesday, March 09, 2005 3:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] dynamic SQL problem Hi Sqr-Users I have a problem with SQL containing dynamic where clauses in a begin-select statement. When SQR compiles, it generates an error saying that it is missing a right parenthesis, however if I remove the dynamic SQL string it compiles with no errors: Sample: begin-select x.field do something FROM (SELECT b.field1 FROM table A, table B WHERE B.field1 = $variable1 AND A.field1 = B.field2 AND A.field3 = B.field3 AND A.field4 = $variable2 [$WC_Where_1] AND B.field5 BETWEEN $fromdate AND $thrudate AND A.field6 = (SELECT MAX(A1.field6) FROM table A1 WHERE A1.field1 = A.field1 AND A1.field2 = A.field2 AND A1.field6 <= $thrudate) GROUP BY B.field1 UNION SELECT d.field1 FROM table C, table D WHERE D.field1 = $variable1 AND C.field1 = D.field2 AND C.field3 = D.field3 AND C.field4 = $variable2 [$WC_Where_1] AND D.field5 BETWEEN $fromdate AND $thrudate AND C.field6 = (SELECT MAX(C1.field6) FROM table C1 WHERE C1.field1 = C.field1 AND C1.field2 = C.field2 AND C1.field6 <= $thrudate) GROUP BY B.field1) x GROUP BY x.field ORDER BY x.field end-select When it compiles the SQL error shows the following: ORA-00907: missing right parenthesis SQL: SELECT X.FIELD FROM (SELECT B.FIELD1 FROM TABLE A, TABLE B WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = B.FIELD2 AND A.FIELD3 = 'VALUE' GROUP BY B.FIELD1 It appears the dynamic variable $WC_Where_1 is causing the SQL to skip lines from the SQL and finish at the group by, it doesn't go to the UNION or finish to SQL to see there is a right parenthesis at the end. If I remove the dynamic variable $WC_Where_1 the SQR compiles the SQL successfully and generates a report. I want to introduce dynamic where clauses to filter the data returned. Any suggestions on what is going wrong would be greatly appreciated. The SQL above is an abridged version, there are 8 unions in the actual SQL. Regards, Daniel __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ _______________________________________________ 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 Mar 09 10:06:12 2005 Date: Wed, 09 Mar 2005 10:05:35 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] Input Function with variable name Hi Sasi, The show statement should display the string that includes the variable value. From your original question, you said > let $strinput = 'Enter TEST REPORT NUMBER ' || 'for the EQNUM : ' || > $strEQNUM so when you show the field $strinput, the text should include the variable value for $strEQNUM. Am I missing something? Don > Thanks Don, > > I tried with the show statement. > > But my problem was not yet solved. > > In the prompt I would like to display the variable value . Is that possible? > > The requirement is , I would like to user to input the value depends on the > Variable value at a given point of time. He will enter the value inside a > loop, (the iteration process is depends on the value of the variable). > > Is this possible? > > sasi _______________________________________________ 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 Mar 09 10:11:40 2005 Date: Wed, 09 Mar 2005 10:10:19 -0500 From: "Jessie Dickenson" Subject: Re: [sqr-users] dynamic SQL problem Can you email the values for $WC_Where_1 value, $fromdate and $thrudate? On a bird's eye-view, I see no alias name as 'field' in the sub-query, x. Out of curiosity, why are you grouping by b.field1? Are there other columns in the inline view, that you need the grouping? Thanks, Jessie >>> fbarchie@yahoo.com 03/09/05 4:47 AM >>> Hi Sqr-Users I have a problem with SQL containing dynamic where clauses in a begin-select statement. When SQR compiles, it generates an error saying that it is missing a right parenthesis, however if I remove the dynamic SQL string it compiles with no errors: Sample: begin-select x.field do something FROM (SELECT b.field1 FROM table A, table B WHERE B.field1 = $variable1 AND A.field1 = B.field2 AND A.field3 = B.field3 AND A.field4 = $variable2 [$WC_Where_1] AND B.field5 BETWEEN $fromdate AND $thrudate AND A.field6 = (SELECT MAX(A1.field6) FROM table A1 WHERE A1.field1 = A.field1 AND A1.field2 = A.field2 AND A1.field6 <= $thrudate) GROUP BY B.field1 UNION SELECT d.field1 FROM table C, table D WHERE D.field1 = $variable1 AND C.field1 = D.field2 AND C.field3 = D.field3 AND C.field4 = $variable2 [$WC_Where_1] AND D.field5 BETWEEN $fromdate AND $thrudate AND C.field6 = (SELECT MAX(C1.field6) FROM table C1 WHERE C1.field1 = C.field1 AND C1.field2 = C.field2 AND C1.field6 <= $thrudate) GROUP BY B.field1) x GROUP BY x.field ORDER BY x.field end-select When it compiles the SQL error shows the following: ORA-00907: missing right parenthesis SQL: SELECT X.FIELD FROM (SELECT B.FIELD1 FROM TABLE A, TABLE B WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = B.FIELD2 AND A.FIELD3 = 'VALUE' GROUP BY B.FIELD1 It appears the dynamic variable $WC_Where_1 is causing the SQL to skip lines from the SQL and finish at the group by, it doesn't go to the UNION or finish to SQL to see there is a right parenthesis at the end. If I remove the dynamic variable $WC_Where_1 the SQR compiles the SQL successfully and generates a report. I want to introduce dynamic where clauses to filter the data returned. Any suggestions on what is going wrong would be greatly appreciated. The SQL above is an abridged version, there are 8 unions in the actual SQL. Regards, Daniel __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ _______________________________________________ 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 Mar 09 13:06:42 2005 Date: Wed, 9 Mar 2005 13:06:03 -0500 (EST) From: "Kevin Laroche" Subject: [sqr-users] How to relate the length of a string to the amount of space used Hi Brio users I use the columns feature to set printing positions for labels in a report. I am trying to have column titles in a report automatically wrapped if they are too long by storing the label and the space available to print it in an array called headers. It works but the titles wrap well before the line marking the start of the next column. I think this is because, for a proportional font, you may need less than 20 spaces to print 20 letters. How can I relate the length of a string to the space required to print it? create-array name=headers size={max_rows} field=titles:char !labels go here field=wrap:number !this is supposed to be the amount of space available to print ~more code here let #i = 2 while #i <= {no_columns} !--- this line is supposed to yield the amount of space available to print let headers.wrap(#i - 1) = col.umn(#i) - col.umn(#i - 1) - 1 !--where the col array is the numeric values of the columns I have set up let $label = headers.titles(#i) let #wrap = headers.wrap(#i - 1) let #i = #i + 1 end-while ~more code here, another while loop !time to print the labels use-column #i let $title = headers.titles(#i) let #wrap = headers.wrap(#i) print $title () wrap #wrap 4 keep-top Hope my question is short and clear! Thanks Kevin LaRoche Ottawa, Ontario Brio 6.1 Oracle 8i Windows 2000 _______________________________________________ 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 Mar 09 13:29:35 2005 From: "the dragon" Subject: RE: [sqr-users] How to relate the length of a string to the amount ofspace used Date: Wed, 09 Mar 2005 12:27:45 -0600 Use fixed font???? 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---- Hi Brio users I use the columns feature to set printing positions for labels in a report. I am trying to have column titles in a report automatically wrapped if they are too long by storing the label and the space available to print it in an array called headers. It works but the titles wrap well before the line marking the start of the next column. I think this is because, for a proportional font, you may need less than 20 spaces to print 20 letters. How can I relate the length of a string to the space required to print it? create-array name=headers size={max_rows} field=titles:char !labels go here field=wrap:number !this is supposed to be the amount of space available to print ~more code here let #i = 2 while #i <= {no_columns} !--- this line is supposed to yield the amount of space available to print let headers.wrap(#i - 1) = col.umn(#i) - col.umn(#i - 1) - 1 !--where the col array is the numeric values of the columns I have set up let $label = headers.titles(#i) let #wrap = headers.wrap(#i - 1) let #i = #i + 1 end-while ~more code here, another while loop !time to print the labels use-column #i let $title = headers.titles(#i) let #wrap = headers.wrap(#i) print $title () wrap #wrap 4 keep-top Hope my question is short and clear! 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 Mar 09 13:57:02 2005 Date: Wed, 09 Mar 2005 13:56:30 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] How to relate the length of a string to the amount of space used Kevin, As I posted about a week ago, I wrote an SQR library that handles this and many other situations. I have not made it publicly available on our website since I may decide to sell something some day, but I am willing to give away copies (that you can use forever) to a few people to help them solve their problems. You would be able to replace "print $title () wrap #wrap 4 keep-top" with "do wrap($title, #wrap, 0, 0)" and it will handle the proportional font. Hope this helps, Eric Kevin Laroche wrote: > Hi Brio users > I use the columns feature to set printing positions for labels in a report. > I am trying to have column titles in a report automatically wrapped > if they are too long by storing the label and the space available to print it in an > array called headers. It works but > the titles wrap well before the line marking the start of the next column. > I think this is because, for a proportional font, you may need > less than 20 spaces to print 20 letters. > How can I relate the length of a string to the space required to print it? > > > create-array > name=headers > size={max_rows} > field=titles:char !labels go here > field=wrap:number !this is supposed to be the amount of space available to print > > ~more code here > let #i = 2 > while #i <= {no_columns} > !--- this line is supposed to yield the amount of space available to print > let headers.wrap(#i - 1) = col.umn(#i) - col.umn(#i - 1) - 1 > !--where the col array is the numeric values of the columns I have set up > let $label = headers.titles(#i) > let #wrap = headers.wrap(#i - 1) > let #i = #i + 1 > end-while > > ~more code here, another while loop > !time to print the labels > use-column #i > let $title = headers.titles(#i) > let #wrap = headers.wrap(#i) > print $title () wrap #wrap 4 keep-top > > Hope my question is short and clear! > > Thanks > > > Kevin LaRoche > Ottawa, Ontario > Brio 6.1 Oracle 8i Windows 2000 > > > > > _______________________________________________ > 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 Mar 09 18:58:21 2005 Date: Wed, 09 Mar 2005 18:56:59 -0500 From: "Robert K. Foster" Subject: Re: [sqr-users] dynamic SQL problem This is a multi-part message in MIME format... --------------070407080506030003040406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Try taking the 'AND' out of the $WC_Where_1 variable. Like: AND [$WC_Where_1] It seems like it is something in the content of the variable itself that may be causing the problem. Try let $WC_Where_1 = '1 = 1' (an "and" parameter that should have no effect) and see if you can run the query. Then alter the variable to your desired parameters if that works. Also, you are using the same 'where' clause in two locations. Are the "and" parameters in the where clause truly the same for both queries? Bob. sqr-users-request@sqrug.org wrote: > Subject: > [sqr-users] dynamic SQL problem > From: > > Date: > Wed, 9 Mar 2005 01:47:59 -0800 (PST) > To: > sqr-users@sqrug.org > > To: > sqr-users@sqrug.org > > >Hi Sqr-Users > >I have a problem with SQL containing dynamic where >clauses in a begin-select statement. When SQR >compiles, it generates an error saying that it is >missing a right parenthesis, however if I remove the >dynamic SQL string it compiles with no errors: > >Sample: > >begin-select >x.field > do something >FROM (SELECT >b.field1 >FROM table A, table B >WHERE B.field1 = $variable1 > AND A.field1 = B.field2 > AND A.field3 = B.field3 > AND A.field4 = $variable2 > [$WC_Where_1] > AND B.field5 BETWEEN $fromdate AND $thrudate > AND A.field6 = (SELECT MAX(A1.field6) FROM table A1 > WHERE A1.field1 = A.field1 > AND A1.field2 = A.field2 > AND A1.field6 <= $thrudate) >GROUP BY B.field1 >UNION >SELECT >d.field1 >FROM table C, table D >WHERE D.field1 = $variable1 > AND C.field1 = D.field2 > AND C.field3 = D.field3 > AND C.field4 = $variable2 > [$WC_Where_1] > AND D.field5 BETWEEN $fromdate AND $thrudate > AND C.field6 = (SELECT MAX(C1.field6) FROM table C1 > WHERE C1.field1 = C.field1 > AND C1.field2 = C.field2 > AND C1.field6 <= $thrudate) >GROUP BY B.field1) x >GROUP BY x.field >ORDER BY x.field >end-select > >When it compiles the SQL error shows the following: > >ORA-00907: missing right parenthesis >SQL: SELECT X.FIELD FROM (SELECT B.FIELD1 FROM TABLE >A, > TABLE B WHERE A.FIELD1 = B.FIELD1 AND A.FIELD2 = > B.FIELD2 AND A.FIELD3 = 'VALUE' GROUP BY >B.FIELD1 > >It appears the dynamic variable $WC_Where_1 is causing >the SQL to skip lines from the SQL and finish at the >group by, it doesn't go to the UNION or finish to SQL >to see there is a right parenthesis at the end. > >If I remove the dynamic variable $WC_Where_1 the SQR >compiles the SQL successfully and generates a report. > > >I want to introduce dynamic where clauses to filter >the data returned. > >Any suggestions on what is going wrong would be >greatly appreciated. > >The SQL above is an abridged version, there are 8 >unions in the actual SQL. > >Regards, >Daniel > > -- === Bob Foster Info. Systems Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 rkf@radiology.msu.edu Need a Better Web Browser? Get Firefox! --------------070407080506030003040406 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. --------------070407080506030003040406 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 --------------070407080506030003040406-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Mar 10 09:17:50 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] How to relate the length of a string to the amoun t of space used Date: Thu, 10 Mar 2005 07:59:22 -0600 We had a similar problem and solved it by pulling the font metrics out of the Adobe Font Metrics (AFM) files. Now we can examine a string that will be printed with a proportional font and determine how wide it is in points. >From there it is an easy conversion to width in tenths of an inch, which is what I assume you are printing at. Then wrapping, centering, or right justification becomes relatively simple. Concept is simple but process is rather too complex to go into here; contact me offline if you are interested in more information or the code to make it work. -----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 Laroche Sent: Wednesday, March 09, 2005 12:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to relate the length of a string to the amount of space used Hi Brio users I use the columns feature to set printing positions for labels in a report. I am trying to have column titles in a report automatically wrapped if they are too long by storing the label and the space available to print it in an array called headers. It works but the titles wrap well before the line marking the start of the next column. I think this is because, for a proportional font, you may need less than 20 spaces to print 20 letters. How can I relate the length of a string to the space required to print it? create-array name=headers size={max_rows} field=titles:char !labels go here field=wrap:number !this is supposed to be the amount of space available to print ~more code here let #i = 2 while #i <= {no_columns} !--- this line is supposed to yield the amount of space available to print let headers.wrap(#i - 1) = col.umn(#i) - col.umn(#i - 1) - 1 !--where the col array is the numeric values of the columns I have set up let $label = headers.titles(#i) let #wrap = headers.wrap(#i - 1) let #i = #i + 1 end-while ~more code here, another while loop !time to print the labels use-column #i let $title = headers.titles(#i) let #wrap = headers.wrap(#i) print $title () wrap #wrap 4 keep-top Hope my question is short and clear! Thanks Kevin LaRoche Ottawa, Ontario Brio 6.1 Oracle 8i Windows 2000 _______________________________________________ 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 Mar 10 13:49:43 2005 From: "Peter Daalder (pdaalder)" Date: Thu, 10 Mar 2005 10:49:01 -0800 Subject: [sqr-users] sql-status return -1 in sqr vSQR V6.1.4 Hi Need some, already send an email prior to this on this topic, but I did some further testing. This is the sqr program I run begin-program begin-sql on-error=sql-error( 'insert into yp_temp values (12345,1-feb-2003)') insert into yp_temp values ('12345','01-feb-2003') end-sql begin-select on-error=sql-error('select emplid,effdt from yp_temp') emplid to_char(effdt,'ddd-dag-yyyy') &effdt show 'emplid:' &emplid ' ' &effdt from yp_temp end-select begin-sql on-error=sql-error('insert into yp_temp values (12345,100)') insert into yp_temp values ('12345',100) end-sql end-program begin-procedure sql-error($msg) show $msg show $_sql-error show #_sql-status show #_return-status end-procedure I've setup this table: CREATE TABLE YP_TEMP (EMPLID VARCHAR2(10 BYTE),EFFDT DATE) CREATE UNIQUE INDEX YP_TEMP ON YP_TEMP (EMPLID, EFFDT) and insert this row: INSERT INTO YP_TEMP VALUES('12345','01-FEB-2003') commit When I run this with sqr V6.1.4 it returns this: SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. insert into yp_temp values (12345,1-feb-2003) ORA-00001: unique constraint (SYSADM.YP_TEMP) violated -1.000000 0.000000 select emplid,effdt from yp_temp ORA-01821: date format not recognized -1.000000 0.000000 insert into yp_temp values (12345,100) ORA-00932: inconsistent datatypes: expected DATE got NUMBER -1.000000 0.000000 SQR: End of Run. When I now run it with sqr V8.45.09, it returns this: SQR for PeopleSoft V8.45.09 insert into yp_temp values (12345,1-feb-2003) ORA-00001: unique constraint (SYSADM.YP_TEMP) violated 1.000000 0.000000 select emplid,effdt from yp_temp ORA-01821: date format not recognized 1821.000000 0.000000 insert into yp_temp values (12345,100) ORA-00932: inconsistent datatypes: expected DATE got NUMBER 932.000000 0.000000 SQR for PeopleSoft: End of Run. The problem I'm having that some sqc where developed with the understanding of -1 as sql-error. I'm trying to find out what the cause of this is, the sqr? or the environmetn? Please provide any feedback you have _______________________________________________ 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 Mar 10 17:52:16 2005 Date: Thu, 10 Mar 2005 16:42:54 -0500 From: "George Jansen" Subject: Re: [sqr-users] sql-status return -1 in sqr vSQR V6.1.4 As far as the error-handling in Oracle, your machine likely has $ORACLE_HOME/bin/oratclsh, which is used by Oracle Intelligent Agent to run Oracle Enterprise Manager jobs Try a script such as: !/usr/bin/env oratclsh set lda [oralogon scott/tiger@mydb] set crs [oraopen $lda] orasql $crs "SELECT 1 FROM 123" puts $oramsg(rc) in both cases, 8.1.7, and 9.2.0, I get plain old "903", invalid table name; I don't get -903 in either. It seems to me that this is an SQRism. _______________________________________________ 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 Mar 10 20:26:24 2005 From: "Peter Daalder" Subject: RE: [sqr-users] sql-status return -1 in sqr vSQR V6.1.4 Date: Thu, 10 Mar 2005 17:25:47 -0800 Many thanks, got the same. I opened a case with PS to find out what they did Peter -----Original Message----- From: sqr-users-bounces+pdaalder=2coolboarders.com@sqrug.org [mailto:sqr-users-bounces+pdaalder=2coolboarders.com@sqrug.org] On Behalf Of George Jansen Sent: 10 March 2005 13:43 To: sqr-users@sqrug.org Subject: Re: [sqr-users] sql-status return -1 in sqr vSQR V6.1.4 As far as the error-handling in Oracle, your machine likely has $ORACLE_HOME/bin/oratclsh, which is used by Oracle Intelligent Agent to run Oracle Enterprise Manager jobs Try a script such as: !/usr/bin/env oratclsh set lda [oralogon scott/tiger@mydb] set crs [oraopen $lda] orasql $crs "SELECT 1 FROM 123" puts $oramsg(rc) in both cases, 8.1.7, and 9.2.0, I get plain old "903", invalid table name; I don't get -903 in either. It seems to me that this is an SQRism. _______________________________________________ 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 Mar 11 16:40:45 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Fri, 11 Mar 2005 15:39:30 -0600 I think multiple people have suggested that I let my $command variable be the product of left-carroting a file to my mailx command, like this - mailx -s "subject" email@comp.com < /path/email_body_in_file.txt That's what I've now implemented, although we haven't had the process trigger the email section with that $command yet. We only get an email from the process when a new business_unit is added, and it doesn't happen every day. It works on our DEV and TST systems, but so did the other way. I'll let you all know if it worked for PRODUCTION. >From a UNIX perspective, I'm still confused why echo pipe to mailx doesn't work. Or, I should say that I'm really confused why it worked on one system and not the other. I dont know if it was something in the SQR or if it was the command itself. Thanks to all those who gave me ideas. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Friday, March 04, 2005 4:01 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Bob, Here is my suggestion. Try it. This might not be the best but is sure to work ( I hope ) Write the body of the email to a file lets say open '/tmp/outmail' as 1 for-writing write 1 from $body close 1 now use the following command let $cmd = ' mailx -s test_mail email@address.com < /tmp/outmail ` system $cmd HTH Till then let me see what is wrong with this. Bob Stone wrote: I thought about that too, but I know that uid/pwd has to have permissions for sending emails because we get other emails everyday from a different SQR process run by the same AUTOSYS user. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 3:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Ummm, when your SQR runs on the production machine is it running under a uid/pwd combination that allows the sending of email? -----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 Bob Stone Sent: Friday, March 04, 2005 3:30 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 _______________________________________________ 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 --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web _______________________________________________ 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 Mar 14 05:03:21 2005 From: "Manoj Singh" Date: Mon, 14 Mar 2005 18:01:55 +0800 Subject: [sqr-users] Printing on the first line Hi Guys, I have a requirement in which I am creating a csv file and where I am summ= ing up a field after the last record I have fetched I have to put that valu= e on the first line of CSV file .Is it possible in CSV File ? I have one op= tion where I can write a sql for sum(salary) write it into the file and the= n fetch one by one row and write in a CSV file. Is there any other option. eg. o/p Should be=20 Total salary :10500 emplid salary 0001 5000 0002 3000 0003 2500 --=20 India.com free e-mail - www.india.com.=20 Check out our value-added Premium features, such as an extra 20MB for mail = storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze _______________________________________________ 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 Mar 14 09:53:48 2005 From: Bob Stone Subject: RE: [sqr-users] Printing on the first line Date: Mon, 14 Mar 2005 08:52:33 -0600 I can think of 2 possibilities. First, figure out which line "Total salary: xxxx" will go on. I assume there would be some sort of header rows, so maybe it would be on the 4th line. Set your rownum to 5, and print each row after that through your SQL. '0001' '5000', and so forth. Then at the end, you know your sum, and you can print using rownum of 4 again. In this case you have to have some sort of 'write_to_csv' procedure. For example, if you wanted to print a number on a specific column you could: let $to_write = 'C' || $rownum || $column || ';K' || $actual_output_data write #file from $to_write The second possibility, probably less work for you, but also less efficient...if that matters to you in your specific environment. Run through your SQL you use for the sum once at the beginning to get the sum. Print your total. Then run it through again to look at each specific row, printing as you go. begin-sql sum(columns_you_need) $total write 1 from 'total salary: ' || $total from table a, table b where a.key = b.key end-sql write 1 from 'emplid' || $tab || 'salary' begin-sql !same from clause. emplid salary write 1 from $emplid || $tab || $salary from table a, table b where a.key = b.key end-sql -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Manoj Singh Sent: Monday, March 14, 2005 4:02 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: [sqr-users] Printing on the first line Hi Guys, I have a requirement in which I am creating a csv file and where I am summing up a field after the last record I have fetched I have to put that value on the first line of CSV file .Is it possible in CSV File ? I have one option where I can write a sql for sum(salary) write it into the file and then fetch one by one row and write in a CSV file. Is there any other option. eg. o/p Should be Total salary :10500 emplid salary 0001 5000 0002 3000 0003 2500 -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze _______________________________________________ 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 Mar 14 11:51:06 2005 Date: Mon, 14 Mar 2005 11:49:58 -0500 From: "Robert K. Foster" Subject: RE: [sqr-users] unix email in SQR This is a multi-part message in MIME format... --------------030705060101050908070608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The only suggestion I can come up with is to check which version of "echo" your production server is using ("which echo" at a command prompt). Sometimes using a full pathname for the echo command (when you setup the command in the SQR report) will provide more predictable results. Below is some info from the "man" pages of an older Solaris unix box to illustrate what I am getting at. The theory being that something in the contents of your SQR generated variable is being taken by the "echo" command as something other than plain "content". Also, what is the default shell for users on the production server (or at least the one that SQR commands are executed in) korn, bourne, cshell? That may be effecting how "echo" is behaving differently from your other servers. If you can grab the actual value of #unix_status you may get a better idea of how "echo" is crashing. Bob. * * * NAME echo - echo arguments SYNOPSIS /usr/bin/echo [ string ... ] USAGE Portable applications should not use -n (as the first argu- ment) or escape sequences. The printf(1) utility can be used portably to emulate any of the traditional behaviors of the echo utility as follows: o The Solaris 2.6 operating environment or compatible version's/usr/bin/echo is equivalent to: printf "%b\n" "$*" o The /usr/ucb/echo is equivalent to: if [ "X$1" = "X-n" ] then shift printf "%s" "$*" else printf "%s\n" "$*" fi New applications are encouraged to use printf instead of echo. sqr-users-request@sqrug.org wrote: >I think multiple people have suggested that I let my $command variable be >the product of left-carroting a file to my mailx command, like this - > >mailx -s "subject" email@comp.com < /path/email_body_in_file.txt > >That's what I've now implemented, although we haven't had the process >trigger the email section with that $command yet. We only get an email from >the process when a new business_unit is added, and it doesn't happen every >day. It works on our DEV and TST systems, but so did the other way. I'll >let you all know if it worked for PRODUCTION. > >>From a UNIX perspective, I'm still confused why echo pipe to mailx doesn't >work. Or, I should say that I'm really confused why it worked on one system >and not the other. I dont know if it was something in the SQR or if it was >the command itself. > >Thanks to all those who gave me ideas. > > -- === Bob Foster Info. Systems Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 rkf@radiology.msu.edu Need a Better Web Browser? Get Firefox! --------------030705060101050908070608 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. --------------030705060101050908070608 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 --------------030705060101050908070608-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Mar 14 15:43:42 2005 From: "Nachman Kreitman" Date: Mon, 14 Mar 2005 15:47:01 -0500 Subject: [sqr-users] SQR Logon Problem A while back I had a few problems connecting into SQR. When I connected with an ODBC profile, I received the error: "Connect Failed: Driver Error Message [Microsoft][ODBC Driver for Oracle][Oracle}". I also cannot create any DDO profiles. I receive the error "Unable to read DDO Registry". I recently reinstalled SQL on my Windows 2000 machine, but apparently that did not help. I appreciate if anyone has any suggestions. 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 Mon Mar 14 16:12:03 2005 Subject: Re: [sqr-users] SQR Logon Problem Date: Mon, 14 Mar 2005 21:11:25 -0000 From: Hi. Most windows/Office xxx machines have northwind.mdb as an example access database. I verify that I can connect to northwind.mdb before going after ODBC to Oracle. In many cases, a client will have Oracle needing tnsnames.ora configured or a path with \\clientserver\ configured. So I try the various options for an SQR driver after I have verified that I can run a non-selecting SQR against northwind.mdb. Hope this helps. John Willson Nachman Kreitman said: > A while back I had a few problems connecting into SQR. When I connected with > an ODBC profile, I received the error: "Connect Failed: Driver Error Message > [Microsoft][ODBC Driver for Oracle][Oracle}". > > I also cannot create any DDO profiles. I receive the error "Unable to read > DDO Registry". > > I recently reinstalled SQL on my Windows 2000 machine, but apparently that > did not help. I appreciate if anyone has any suggestions. > > 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 Mon Mar 14 16:31:43 2005 From: "Nachman Kreitman" Subject: RE: [sqr-users] SQR Logon Problem Date: Mon, 14 Mar 2005 16:35:04 -0500 I appreciate your help. I do not,however, have an Access database on my machine. In addition, the file northwind.mdb does not exist. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of jwillson@dssltd.com Sent: Monday, March 14, 2005 4:11 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR Logon Problem Hi. Most windows/Office xxx machines have northwind.mdb as an example access database. I verify that I can connect to northwind.mdb before going after ODBC to Oracle. In many cases, a client will have Oracle needing tnsnames.ora configured or a path with \\clientserver\ configured. So I try the various options for an SQR driver after I have verified that I can run a non-selecting SQR against northwind.mdb. Hope this helps. John Willson Nachman Kreitman said: > A while back I had a few problems connecting into SQR. When I connected with > an ODBC profile, I received the error: "Connect Failed: Driver Error Message > [Microsoft][ODBC Driver for Oracle][Oracle}". > > I also cannot create any DDO profiles. I receive the error "Unable to read > DDO Registry". > > I recently reinstalled SQL on my Windows 2000 machine, but apparently that > did not help. I appreciate if anyone has any suggestions. > > 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 _______________________________________________ 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 Mar 14 16:40:18 2005 From: Bob Stone Subject: RE: [sqr-users] SQR Logon Problem Date: Mon, 14 Mar 2005 15:39:07 -0600 he's saying that you could use a sample database to connect to, making sure that the connection works to an access database (for example) before Oracle. because sometimes it's some settings on the windows machine, oracle, sqr, etc. that are off, and you would be able to tell which ones easier. Your errors could be the problem of a lot of different things, and this might be a good way to narrow it down. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Nachman Kreitman Sent: Monday, March 14, 2005 3:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Logon Problem I appreciate your help. I do not,however, have an Access database on my machine. In addition, the file northwind.mdb does not exist. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of jwillson@dssltd.com Sent: Monday, March 14, 2005 4:11 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR Logon Problem Hi. Most windows/Office xxx machines have northwind.mdb as an example access database. I verify that I can connect to northwind.mdb before going after ODBC to Oracle. In many cases, a client will have Oracle needing tnsnames.ora configured or a path with \\clientserver\ configured. So I try the various options for an SQR driver after I have verified that I can run a non-selecting SQR against northwind.mdb. Hope this helps. John Willson Nachman Kreitman said: > A while back I had a few problems connecting into SQR. When I connected with > an ODBC profile, I received the error: "Connect Failed: Driver Error Message > [Microsoft][ODBC Driver for Oracle][Oracle}". > > I also cannot create any DDO profiles. I receive the error "Unable to read > DDO Registry". > > I recently reinstalled SQL on my Windows 2000 machine, but apparently that > did not help. I appreciate if anyone has any suggestions. > > 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 Mon Mar 14 16:57:19 2005 Date: Mon, 14 Mar 2005 16:56:02 -0500 From: "George Jansen" Subject: Re: [sqr-users] SQR Logon Problem It sounds as if you may have some registry damage. You need SQL*Net connect= ivity, then you need ODBC set up properly. Do you have SQL*Net connectivity= ? For an Oracle database, say "larry", can you tnsping larry and get an OK message? If so, does your Oracle client install include the ODBC test component? Wha= t happens there? _______________________________________________ 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 Mar 16 05:14:09 2005 From: "Steve Cavill" Subject: RE: [sqr-users] Printing on the first line Date: Wed, 16 Mar 2005 21:12:40 +1100 You could "write" it all to an array, then at the end write the contents of the array to the file. Or you could write two files, detail.txt and header.txt, then at the end concatenate them together, either with sqr or just a operating system command. Cheers, Steve. Infoclarity -----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 Manoj Singh Sent: Monday, 14 March 2005 9:02 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Printing on the first line Hi Guys, I have a requirement in which I am creating a csv file and where I am summing up a field after the last record I have fetched I have to put that value on the first line of CSV file .Is it possible in CSV File ? I have one option where I can write a sql for sum(salary) write it into the file and then fetch one by one row and write in a CSV file. Is there any other option. eg. o/p Should be Total salary :10500 emplid salary 0001 5000 0002 3000 0003 2500 -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze _______________________________________________ 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 Mar 16 09:47:57 2005 From: "Nachman Kreitman" Date: Wed, 16 Mar 2005 09:47:03 -0500 Subject: [sqr-users] SQR Database Object Problem I want to create a report with tables from a particular schema. This schema contains 119 tables, 197 views and 69,913 synonyms. When I click on the schema, it takes 9 minutes before I get any response back (nothing else is running on my desktop). The "+" sign disappears and I see no database objects from that schema. When I click on a schema that does not have too may objects, the response comes back with no problem, and I see all of the necessary objects from that schema. How may I retrieve the database objects from this large schema? You assistance is greatly appreciated. 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 Mar 16 09:54:58 2005 Subject: RE: [sqr-users] SQR Database Object Problem Date: Wed, 16 Mar 2005 08:54:23 -0600 From: "Knapp, Richard" Sounds like not an SQR question. What tool are you using? PS query? If so, you're screwed without the quick security fix. Use another tool, sqlplus, eg or toad and query the user or dba tables. 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 Nachman Kreitman Sent: Wednesday, March 16, 2005 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Database Object Problem I want to create a report with tables from a particular schema. This schema contains 119 tables, 197 views and 69,913 synonyms. When I click on the schema, it takes 9 minutes before I get any response back (nothing else is running on my desktop). The "+" sign disappears and I see no database objects from that schema. When I click on a schema that does not have too may objects, the response comes back with no problem, and I see all of the necessary objects from that schema. How may I retrieve the database objects from this large schema? You assistance is greatly appreciated. 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 Mar 16 10:26:55 2005 From: "Nachman Kreitman" Subject: RE: [sqr-users] SQR Database Object Problem Date: Wed, 16 Mar 2005 10:25:59 -0500 I am not using any tool. This happens when I go into the "Query Builder - Select Tables". All this is SQR supplied. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Wednesday, March 16, 2005 9:54 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQR Database Object Problem Sounds like not an SQR question. What tool are you using? PS query? If so, you're screwed without the quick security fix. Use another tool, sqlplus, eg or toad and query the user or dba tables. 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 Nachman Kreitman Sent: Wednesday, March 16, 2005 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Database Object Problem I want to create a report with tables from a particular schema. This schema contains 119 tables, 197 views and 69,913 synonyms. When I click on the schema, it takes 9 minutes before I get any response back (nothing else is running on my desktop). The "+" sign disappears and I see no database objects from that schema. When I click on a schema that does not have too may objects, the response comes back with no problem, and I see all of the necessary objects from that schema. How may I retrieve the database objects from this large schema? You assistance is greatly appreciated. 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 _______________________________________________ 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 Mar 16 10:52:58 2005 From: Bob Stone Subject: RE: [sqr-users] unix email in SQR Date: Wed, 16 Mar 2005 09:51:43 -0600 Today there was a new BU, which meant that we should get an email...AND WE DID! and it's a good thing, because otherwise I might have started pounding my head on the wall...which would probably bring it down because it's a relatively flimsy cube wall. And who knows what kind of chain reaction one wall falling could have on the rest of the area. Anyway, I wanted to show you what I used to get my email notification to work as I wanted. Because a working solution should be shared. The final solution was to left carrot a file containing the body of the email to the mailx command. Throughout the SQR, as I'm checking certain things and adding the BUs to different tables, I was also adding to a string called $email_body things like "ABCDE - new BU added to table_x for this purpose. PS Live." || $cr Then at the end, I check to see if my $new_bu_found flag was set to 'YUP', and if so I wanted to email whatever I'd set the string to. I wrote a procedure 'email-message' to send it. So I pass in the group (we're inventory, so 'IN'), the program ('in176.sqr'), the subject (string containing "New BUs added"), and the body ($email_body). We have an email table we use for notifications like this, orgainized by group/program. So for each active (status = 'A') email, it will fire off the command. And the command looks like this: mailx -s "New BUs added" email@company.com < /path/in176_new_bu_email.txt With that in mind, here's the email procedure: !**************************************************** begin-procedure email-message($group, $prog_name, $subject, $body) !**************************************************** LET $filepathname = $path || 'in176_new_bu_email.txt' OPEN $filepathname AS 1 FOR-WRITING RECORD=5000 write 1 from $body close 1 begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = 'mailx -s "' || $subject || '" ' || $email_address || ' < ' || $filepathname call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where fas_group = $group and fas_prg_name = $prog_name and status = 'A' end-select end-procedure -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 11, 2005 3:40 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I think multiple people have suggested that I let my $command variable be the product of left-carroting a file to my mailx command, like this - mailx -s "subject" email@comp.com < /path/email_body_in_file.txt That's what I've now implemented, although we haven't had the process trigger the email section with that $command yet. We only get an email from the process when a new business_unit is added, and it doesn't happen every day. It works on our DEV and TST systems, but so did the other way. I'll let you all know if it worked for PRODUCTION. >From a UNIX perspective, I'm still confused why echo pipe to mailx doesn't work. Or, I should say that I'm really confused why it worked on one system and not the other. I dont know if it was something in the SQR or if it was the command itself. Thanks to all those who gave me ideas. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Friday, March 04, 2005 4:01 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Bob, Here is my suggestion. Try it. This might not be the best but is sure to work ( I hope ) Write the body of the email to a file lets say open '/tmp/outmail' as 1 for-writing write 1 from $body close 1 now use the following command let $cmd = ' mailx -s test_mail email@address.com < /tmp/outmail ` system $cmd HTH Till then let me see what is wrong with this. Bob Stone wrote: I thought about that too, but I know that uid/pwd has to have permissions for sending emails because we get other emails everyday from a different SQR process run by the same AUTOSYS user. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 3:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Ummm, when your SQR runs on the production machine is it running under a uid/pwd combination that allows the sending of email? -----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 Bob Stone Sent: Friday, March 04, 2005 3:30 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yup. When I run that command (copied and pasted DIRECTLY from the log file) on the unix command line on the machine that runs our SQRs, it sends the email. That's one of the extremely frustrating parts of this entire thing...it works everywhere I've tested, but not production. I've been fiddling with this stupid email thing off and on for about 3 weeks. Each time I'm pretty sure it will work (because it does on our TST system) it doesn't. GRR! *slams head into wall* ..*wall falls over because it's only a cube wall*... I dont understand any of this. It works one place, but doesn't work another. When I'm in our DEV system, it sends the email...but not PRD. When I use the command line manually it works, but not when called from the SQR. When it was the old way it worked...but not since changes that shouldn't have caused problems... I need magic-fairy-dust to sprinkle on my SQR...that would make it all better. That, or any ideas you guys might have. Thanks. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jeff.Steinfeldt@wellsfargo.com Sent: Friday, March 04, 2005 2:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] unix email in SQR Have you tried manually dropping the text from the $command variable into a shell batch file and executing it? -----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 Bob Stone Sent: Friday, March 04, 2005 2:45 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR I should also note that the 'bstone@fastenal.com appears on the same line as the rest of the command (there's no return between them)...it's just the format of the SQR group emails that pushed it over. Same thing goes for the District names. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, March 04, 2005 2:39 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR Yes. this is true. Here's a copy of what's sent to the OS, the '$command' variable (between the +++'s). notice where the (echo " ... ") is. Everything between those two " is the $body. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ (echo "BUs were added to Inventory Interfaces on 03-03-2005. ----- MNSAK - added to fas_intfc_ty. not PS live. REGION: 500, Winona - Steven A Rucinski. DISTRICT: 0416, Gary G Branstner. TNNA1 - added to fas_intfc_ty. PS live. REGION: 1000, Atlanta - Steven J Roembke. DISTRICT: 1026, Steven L Moore. SKEST - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1006, Erik McCluskey. OKCLA - added to fas_intfc_ty. not PS live. REGION: 1100, Dallas - James C Jansen. DISTRICT: 1117, Patrick L Jolliff. ONGOD - added to fas_intfc_ty. PS live. REGION: 1200, Canada - Kenneth R Nance. DISTRICT: 1012, Maximilian Bezner. ----- MNSAK - added to ps_fasintfl_lock for multiproc. TNNA1 - added to ps_fasintfl_lock for multiproc. SKEST - added to ps_fasintfl_lock for multiproc. OKCLA - added to ps_fasintfl_lock for multiproc. ONGOD - added to ps_fasintfl_lock for multiproc. ----- MNSAK - added to ps_est_int_ctl for estimator. OKCLA - added to ps_est_int_ctl for estimator. ONGOD - added to ps_est_int_ctl for estimator. SKEST - added to ps_est_int_ctl for estimator. TNNA1 - added to ps_est_int_ctl for estimator. ") | mailx -s "New BUs added to PeopleSoft Inventory Interfaces." bstone@fastenal.com Error sending e-mail to: bstone@fastenal.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:26 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR When you do the show on the command you are sending off to the OS, it should show only the actual text you are sending and should not contain any variable names. Maybe this is what you are doing but giving us a shorthand version in your email to the group. Can you send the exact text produced by the show $command in your last procedure? 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 Bob Stone Sent: Friday, March 04, 2005 2:18 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] unix email in SQR if i get what you're saying, you think the entire command should be one string? Because that is what I'm doing. I go through the entire main, constructing a $new_bu_email_body string so that it looks rights, then in the email (the last step of the program) i concat that into one big string ($command) and send command to the unix box. let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address otherwise, I'm not sure I understand your advice. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, March 04, 2005 2:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] unix email in SQR Yeah. There's definitely something wrong with the string you are passing. You want sqr to interpret and substitute the $body and $subject variables before the string is constructed and sent off to the OS. 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 Bob Stone Sent: Friday, March 04, 2005 1:56 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: [sqr-users] unix email in SQR I'm having a problem having my Unix machine send mail messages from SQR, and I dont understand why. I know that all of my select logic and program logic is correct. The program does everything it's supposed to except send the message to us to let us know it did it. In the log message I get the error 'Error sending e-mail to: bstone@fastenal.com' ...which is the message I make with the 'show' statement when the #unix_status returns some non-0 value (error value). In my opinion, this error has something to do with the string that I'm passing to the I had this working before in our production environment, but it stopped working when I started using the DIST_REGION_INFO procedure. In my opinion, this error has something to do with the string I pass into the body...because that's the only part that's changed since it was working. the command I pass is: (echo "body") | mailx -s "subject" bstone@fastenal.com Does someone see something wrong with the string I'm making? Are there some sort of protected Unix characters that I'm messing with inside the "body" section? please let me know if you have any ideas. Thanks Bob Stone Fastenal Inventory Developer Here's a shortened version of the code: !******************************************************************* begin-procedure MAIN !******************************************************************* ENCODE '<13>' INTO $cr let $new_bu_email_body = 'BUs were added to Inventory Interfaces on ' || $current_date || '. ' || $cr || $cr || '-----' || $cr || $cr BEGIN-SELECT t.business_unit &t.business_unit let $business_unit = &t.business_unit if **case one let $ps_live = 'Y' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. PS live.' || $cr end-if if **other case let $ps_live = 'N' let $new_bu_email_body = $new_bu_email_body ||$business_unit || ' - added to fas_intfc_ty. not PS live.' || $cr end-if do dist_region_info($business_unit) !possibly something in this procedure?? do other_processing FROM sysadm.some_tables WHERE {$clause} END-SELECT ! there are 2 other selects which add to $new_bu_email_body in the exact same way as above. not the problem. if $new_bu_found = 'Y' let $email_subject = 'New BUs added to PeopleSoft Inventory Interfaces.' do email-message('IN', 'FASIN176', $email_subject, $new_bu_email_body) end-if end-procedure MAIN !******************************************************************* begin-procedure dist_region_info($bu) !******************************************************************* begin-select dist &district dist_descr &district_descr reg ®ion_code reg_descr ®ional_descr let $dist = &district let $dist_descr = &district_descr let $reg = ®ion_code let $reg_descr = ®ional_descr let $_new_bu_email_body = $_new_bu_email_body || ' REGION: ' || $reg || ', ' || $reg_descr || '. ' let $_new_bu_email_body = $_new_bu_email_body || 'DISTRICT: ' || $dist || ', ' || $dist_descr || '. ' || $_cr from sysadm.ps_fas_rmdm_vw where business_unit = $bu end-select end-procedure dist_region !******************************************************************* begin-procedure email-message($module, $prog_name, $subject, $body) !******************************************************************* begin-SELECT email_address let $email_address =ltrim( rtrim(&email_address, ' '), ' ') let $command = '(echo "' || $body || '") | mailx -s "' || $subject || '" ' || $email_address show $command call system using $command #unix_status if #unix_status <> 0 show 'Error sending e-mail to: ' $email_address end-if from ps_fas_email_tbl where {$clause} end-select end-procedure _______________________________________________ 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 _______________________________________________ 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 --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web _______________________________________________ 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 Mar 16 10:57:31 2005 From: "the dragon" Subject: RE: [sqr-users] SQR Database Object Problem Date: Wed, 16 Mar 2005 09:55:04 -0600 I think she's using the workbench... If that's the case, and you're experiencing these issues, guess you'll have to build your sqr from scratch, the old fashioned way. 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 using any tool. This happens when I go into the "Query Builder - Select Tables". All this is SQR supplied. -----Original Message----- Sounds like not an SQR question. What tool are you using? PS query? If so, you're screwed without the quick security fix. Use another tool, sqlplus, eg or toad and query the user or dba tables. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- I want to create a report with tables from a particular schema. This schema contains 119 tables, 197 views and 69,913 synonyms. When I click on the schema, it takes 9 minutes before I get any response back (nothing else is running on my desktop). The "+" sign disappears and I see no database objects from that schema. When I click on a schema that does not have too may objects, the response comes back with no problem, and I see all of the necessary objects from that schema. How may I retrieve the database objects from this large schema? You assistance is greatly appreciated. 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 Mar 16 11:10:14 2005 From: James Womeldorf Subject: RE: [sqr-users] Printing on the first line Date: Wed, 16 Mar 2005 10:09:04 -0600 I think it might be possible to use New-Report to establish a CSV file with an appropriate name. Then 'Print' command to place data in the file starting with the second line. As long as the page length is longer than the number of lines of data I believe you should be able to do a Print TotalValues (1,1) and it will place the totals on the first line. Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Steve Cavill Sent: Wednesday, March 16, 2005 4:13 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] Printing on the first line You could "write" it all to an array, then at the end write the contents of the array to the file. Or you could write two files, detail.txt and header.txt, then at the end concatenate them together, either with sqr or just a operating system command. Cheers, Steve. Infoclarity -----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 Manoj Singh Sent: Monday, 14 March 2005 9:02 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Printing on the first line Hi Guys, I have a requirement in which I am creating a csv file and where I am summing up a field after the last record I have fetched I have to put that value on the first line of CSV file .Is it possible in CSV File ? I have one option where I can write a sql for sum(salary) write it into the file and then fetch one by one row and write in a CSV file. Is there any other option. eg. o/p Should be Total salary :10500 emplid salary 0001 5000 0002 3000 0003 2500 -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze _______________________________________________ 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 Mar 17 12:21:43 2005 Date: Thu, 17 Mar 2005 09:20:05 -0800 From: "Irez, Erol" Subject: [sqr-users] ORA-3113 Hi folks. =20 I am using SQR for PeopleSoft 8.42 (on HRMS 8.8) and running on Oracle 8.1.2. We moved the file/process server to a new 'box' and now none of the sqr programs that select off of Oracle linked tables work! Has anyone run into a problem where SQR can't execute sql referring to a table from another system (finance) using a db_link? =20 Here is a set of strange symptoms: 1. The db_links are fine and active 2. I can tnsping the servers from my desktop (I have no access to the server) 3. The SQR runs fine when run from my desktop 4. The SQR crashes when run from process scheduler (the server) 5. The sql statements all execute fine when run directly in TOAD or SQL Plus (I dump all cursors to the SQR log and execute them) =20 I am stumped. I stumped my DBA too. I thought it was a tnsnames issue but the file has not changed. =20 Any help is appreciated. =20 Best, Erol =20 Erol Mark Irez | Sr. PeopleSoft Developer - Business Systems | ChartOne, Inc. 617.648.4700 x4765 voice | 617.413.5814 cell | EIrez@ChartOne.com | www.ChartOne.com =20 =20 =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 Thu Mar 17 12:27:24 2005 Subject: RE: [sqr-users] ORA-3113 Date: Thu, 17 Mar 2005 11:26:48 -0600 From: "Knapp, Richard" Yup. Have to use a previous non-mangled-by-PS version to keep the links. 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 Irez, Erol Sent: Thursday, March 17, 2005 11:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] ORA-3113 Hi folks. =20 I am using SQR for PeopleSoft 8.42 (on HRMS 8.8) and running on Oracle 8.1.2. We moved the file/process server to a new 'box' and now none of the sqr programs that select off of Oracle linked tables work! Has anyone run into a problem where SQR can't execute sql referring to a table from another system (finance) using a db_link? =20 Here is a set of strange symptoms: 1. The db_links are fine and active 2. I can tnsping the servers from my desktop (I have no access to the server) 3. The SQR runs fine when run from my desktop 4. The SQR crashes when run from process scheduler (the server) 5. The sql statements all execute fine when run directly in TOAD or SQL Plus (I dump all cursors to the SQR log and execute them) =20 I am stumped. I stumped my DBA too. I thought it was a tnsnames issue but the file has not changed. =20 Any help is appreciated. =20 Best, Erol =20 Erol Mark Irez | Sr. PeopleSoft Developer - Business Systems | ChartOne, Inc. 617.648.4700 x4765 voice | 617.413.5814 cell | EIrez@ChartOne.com | www.ChartOne.com =20 =20 =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 Mar 18 17:08:03 2005 Date: Fri, 18 Mar 2005 16:06:44 -0600 From: "Brooke Funk" Subject: [sqr-users] Windows NT to 2003 Active Directory This came to me from another bank and I thought I would pose this question = and see if anyone had any response that I could pass along to them. We just changed our Domain from Windows NT to 2003 Active directory and are having issues with SQRT jobs not ending sometimes for hours after the jobs has finished. Also, can only run one workstation at a time during nightly processing. If multiple queue's are running at once several jobs are tripling in runtime. Has anyone seen these kinds of issues????? 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 Mon Mar 21 11:50:50 2005 Date: Mon, 21 Mar 2005 10:49:18 -0600 From: "Brooke Funk" Subject: [sqr-users] Active Directory issues This came to me from another bank and I thought I would pose this question = and see if anyone had any response that I could pass along to them. We just changed our Domain from Windows NT to 2003 Active directory and are having issues with SQRT jobs not ending sometimes for hours after the jobs has finished. Also, can only run one workstation at a time during nightly processing. If multiple queue's are running at once several jobs are tripling in runtime. Has anyone seen these kinds of issues????? 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 Tue Mar 22 02:31:24 2005 From: "Anantha Rao" Date: Tue, 22 Mar 2005 12:51:13 +0530 Subject: [sqr-users] HI HI I Need draw horizontal line in SQR report which has PDF out put thi line should be in blue color, Please help me in assign the color to the lines. Thanks in advance Regards Anantha Ro 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 Tue Mar 22 05:48:17 2005 Subject: RE: [sqr-users] HI Date: Tue, 22 Mar 2005 16:13:47 +0530 From: "Murty Mirthipati Venkata Suryanarayan" Try printing an underline for a line of spaces with foreground as blue.=20 Not sure whether this exactly works out Murty ;) -----Original Message----- From: Anantha Rao [mailto:Anantha.Rao@lntinfotech.com] Sent: Tuesday, March 22, 2005 12:51 PM To: sqr-users@sqrug.org Subject: [sqr-users] HI HI I Need draw horizontal line in SQR report which has PDF out put thi line should be in blue color, Please help me in assign the color to the lines. Thanks in advance Regards Anantha Ro 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 Tue Mar 22 18:08:34 2005 Date: Wed, 23 Mar 2005 07:07:33 +0800 From: Lionel Zhou Subject: [sqr-users] Freelancers for hire Need help with software development? Looking for Freelancers or Outsourcers? Rent-A-Pro.COM consulting and outsourcing marketplace, where you can post project requirement and receive bids from a global pool of freelancers and companies. http://www.rent-a-pro.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 Tue Mar 22 21:22:43 2005 Subject: RE: [sqr-users] Freelancers for hire Date: Tue, 22 Mar 2005 21:21:27 -0500 From: "Kelly Keller" This is a multi-part message in MIME format... ------_=_NextPart_001_01C52F4F.1D4FE7E8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Bad form. Not a forum for solicitation. ________________________________ From: sqr-users-bounces+kelly_keller=3Dinrangeconsulting.com@sqrug.org on b= ehalf of Lionel Zhou Sent: Tue 3/22/2005 6:07 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freelancers for hire Need help with software development? Looking for Freelancers or Outsourcers? Rent-A-Pro.COM consulting and outsourcing marketplace, where you can post project requirement and receive bids from a global pool of freelancers and companies. http://www.rent-a-pro.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C52F4F.1D4FE7E8 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_01C52F4F.1D4FE7E8 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_01C52F4F.1D4FE7E8-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Mar 23 06:14:54 2005 Date: Wed, 23 Mar 2005 12:13:09 +0100 From: "Teresita Alvarez Couvreu" Subject: [sqr-users] Re: sqr-users Digest, Vol 13, Issue 18 ((Automatic reply)) This is an automated reply. I am on away from the office until Friday 1st April inclusive. I will reply to you personnally upon my return. For any matters concerning PeopleSoft support for DRRMS or PeopleSoft Legacy Archives, please contact Mike Oldroyd. For any matters concerning PIOUS including the Budget Staffing Table, please contact Louise Johnson. For any ICC technical problems, please contact Gary Threadgold or Mike Oldroyd. For any other matters that cannot wait until my return, please contact Andreas Ioannou. Thank you, Teresita _______________________________________________ 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 Mar 24 12:02:55 2005 Date: Wed, 23 Mar 2005 13:42:30 -0500 From: "Gunjala Pradeep (XFF3PXG)" Subject: [sqr-users] SQE Error logging in mainframe environment Hello Esteemed List, Please share your ideas or best practices you have implemented. We run our SQRs in mainframe environment using JCL and database is DB2 on OS/390. We are tryingn to desing a good error logging or capturing mechanism in our SQRs those would write enough information to SYSOUT, so that operaters and developers can easily figureout the nature of error.=20 As far as DB2 errors are concerned we are thinking to customize SQL-ERROR SQC to have more detailed information like in which procedure it failed etc...But as far as file related errors, or runtime errors or environment errors are concerned, how do we capture them and write them to SYSOUT. I am sure many of you might have implemented some error logging mechanism, please share your ideas and experiences.=20 Thank you. - Pete _______________________________________________ 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 Mar 24 12:05:55 2005 Date: Wed, 23 Mar 2005 14:42:57 -0800 (PST) From: subrahmanyam Uppuganti Subject: [sqr-users] Problem in Printing Terms and conditions in sqr Hi, Iam trying to add the terms and conditions to the PO dispatch report (POPO005.sqr) and need to print the Terms and conditions ( 2 Pages) after every Purchase order. The Terms and conditions is a static data and doesn't need to store in the data base. Can some one suggest me how to Print this.... Thanks in advance. Subbu Uppuganti --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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 Mar 24 12:08:40 2005 Date: Wed, 23 Mar 2005 15:09:18 -0500 From: "Wes Williams" Subject: [sqr-users] (SQR 5528) ORACLE OCIStmtExecute error 3113 We had some machines replaced that are are using Oracle 9i libraries. It appears this has resulted in certain reports failing with this error. We are running brio 6.2. I can still run these reports from my machine which has the 8.17 client. The database is still running 8.17. =20 Is there a compatibility issue between 6.2 and Oracle 9i? =20 TIA =20 Wes =20 =20 =20 (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 4: ORA-03113: end-of-file on communication channel Error on line 137: (SQR 3723) Problem executing cursor. SQR: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE =20 Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =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 Mar 24 14:57:08 2005 From: "the dragon" Subject: RE: [sqr-users] Problem in Printing Terms and conditions in sqr Date: Thu, 24 Mar 2005 11:11:41 -0600 Put it in your database anyway, since it may change, and call it from there. Or create a new sqc that contains the T&C and call the procedure. 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---- Hi, Iam trying to add the terms and conditions to the PO dispatch report (POPO005.sqr) and need to print the Terms and conditions ( 2 Pages) after every Purchase order. The Terms and conditions is a static data and doesn't need to store in the data base. Can some one suggest me how to Print this.... Thanks in advance. Subbu Uppuganti _______________________________________________ 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 Mar 24 14:59:52 2005 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIStmtExecute error 3113 Date: Thu, 24 Mar 2005 09:11:40 -0800 From: "Irez, Erol" Hi Wes, We had the same problem - and we had to install Oracle 8i libraries on the new servers to get our SQRs working again. 9i clients work fine with 8i servers as long as you do not used linked tables in your SQL statements. Regards, Erol -----Original Message----- From: sqr-users-bounces+eirez=3Dchartone.com@sqrug.org [mailto:sqr-users-bounces+eirez=3Dchartone.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, March 23, 2005 3:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIStmtExecute error 3113=20 We had some machines replaced that are are using Oracle 9i libraries. It appears this has resulted in certain reports failing with this error. We are running brio 6.2. I can still run these reports from my machine which has the 8.17 client. The database is still running 8.17. =20 Is there a compatibility issue between 6.2 and Oracle 9i? =20 TIA =20 Wes =20 =20 =20 (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 4: ORA-03113: end-of-file on communication channel Error on line 137: (SQR 3723) Problem executing cursor. SQR: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE =20 Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =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 Thu Mar 24 15:02:38 2005 Subject: RE: [sqr-users] SQE Error logging in mainframe environment Date: Thu, 24 Mar 2005 11:29:29 -0600 From: "Sengupta, Rajib \(Contractor\)" I had implemented this successfully in different OS/390 environments using = SYSPRINT, SYSTERM and SYSERR. Thanks, Rajib Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems -----Original Message----- From: sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org [mailto:sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org]On Behalf Of Gunjala Pradeep (XFF3PXG) Sent: Wednesday, March 23, 2005 12:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQE Error logging in mainframe environment Hello Esteemed List, Please share your ideas or best practices you have implemented. We run our SQRs in mainframe environment using JCL and database is DB2 on OS/390. We are tryingn to desing a good error logging or capturing mechanism in our SQRs those would write enough information to SYSOUT, so that operaters and developers can easily figureout the nature of error.=20 As far as DB2 errors are concerned we are thinking to customize SQL-ERROR SQC to have more detailed information like in which procedure it failed etc...But as far as file related errors, or runtime errors or environment errors are concerned, how do we capture them and write them to SYSOUT. I am sure many of you might have implemented some error logging mechanism, please share your ideas and experiences.=20 Thank you. - Pete _______________________________________________ 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 Mar 24 15:05:28 2005 Date: Thu, 24 Mar 2005 09:43:29 -0800 (PST) From: Subject: Re: [sqr-users] Problem in Printing Terms and conditions in sqr You could try storing the terms on a file server, open in it read it and print it on the PO? --- subrahmanyam Uppuganti wrote: > Hi, > Iam trying to add the terms and conditions to the PO > dispatch report (POPO005.sqr) and need to print the > Terms and conditions ( 2 Pages) after every Purchase > order. > The Terms and conditions is a static data and > doesn't need to store in the data base. > Can some one suggest me how to Print this.... > Thanks in advance. > Subbu Uppuganti > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ _______________________________________________ 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 Mar 24 15:08:21 2005 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIStmtExecute error 3113 Date: Thu, 24 Mar 2005 11:56:03 -0600 From: "Knapp, Richard" Update your sqlnet.ora to include the new encryption protocols or whatever they are called. 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 Wes Williams Sent: Wednesday, March 23, 2005 2:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIStmtExecute error 3113=20 We had some machines replaced that are are using Oracle 9i libraries. It appears this has resulted in certain reports failing with this error. We are running brio 6.2. I can still run these reports from my machine which has the 8.17 client. The database is still running 8.17. =20 Is there a compatibility issue between 6.2 and Oracle 9i? =20 TIA =20 Wes =20 =20 =20 (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 4: ORA-03113: end-of-file on communication channel Error on line 137: (SQR 3723) Problem executing cursor. SQR: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE =20 Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =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 Mar 25 11:19:40 2005 Subject: RE: [sqr-users] SQE Error logging in mainframe environment Date: Thu, 24 Mar 2005 15:17:30 -0500 From: "Gunjala Pradeep (XFF3PXG)" Hi Rajib, Nice to know that you have implemented SQR's on OS/390 platform. Could you explain me did you use customized SQC's or what was your approach. As far as DB2 errors we can capture them by using SQL-ERROR SQC. I am specifically trying to design the error logging technique to capture the errors other than DB2. Could you please share one of the SQR you have implemented and JCL. I would really appreciate it. Thanks, -----Original Message----- From: Sengupta, Rajib (Contractor) [mailto:Rajib.Sengupta@conagrafoods.com]=20 Sent: Thursday, March 24, 2005 12:29 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQE Error logging in mainframe environment I had implemented this successfully in different OS/390 environments using SYSPRINT, SYSTERM and SYSERR. Thanks, Rajib Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems -----Original Message----- From: sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org [mailto:sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org]On Behalf Of Gunjala Pradeep (XFF3PXG) Sent: Wednesday, March 23, 2005 12:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQE Error logging in mainframe environment Hello Esteemed List, Please share your ideas or best practices you have implemented. We run our SQRs in mainframe environment using JCL and database is DB2 on OS/390. We are tryingn to desing a good error logging or capturing mechanism in our SQRs those would write enough information to SYSOUT, so that operaters and developers can easily figureout the nature of error.=20 As far as DB2 errors are concerned we are thinking to customize SQL-ERROR SQC to have more detailed information like in which procedure it failed etc...But as far as file related errors, or runtime errors or environment errors are concerned, how do we capture them and write them to SYSOUT. I am sure many of you might have implemented some error logging mechanism, please share your ideas and experiences.=20 Thank you. - Pete _______________________________________________ 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 Mar 25 11:22:52 2005 Subject: RE: [sqr-users] Problem in Printing Terms and conditions in sqr Date: Thu, 24 Mar 2005 15:27:36 -0500 From: "Kaithi, Murali" Hi Subbu, I have written some terms and conditions in the footer section of POPO005.sqr You can add this code just before the end-footing. let $discl1 =3D 'xxx ' let $discl2 =3D 'xxx ' let $discl3 =3D 'xxx ' =20=20=20 let $disclaimer =3D $discl1 || $discl2 || $discl3=20 print $disclaimer (2,1,82) wrap 82 3 alter-printer point-size=3D6 font=3D4 let $lgl01 =3D 'xxx ' let $lgl02 =3D 'xxx ' let $lgl03 =3D 'xxx ' =20=20=20 let $legaltalk =3D $lgl01 || $lgl02 || $lgl03=20 print $legaltalk (5,1,225) let $lgl01 =3D 'xxx ' let $lgl02 =3D 'xxx ' let $lgl03 =3D 'xxx ' =20=20=20 let $legaltalk =3D $lgl01 || $lgl02 || $lgl03=20 print $legaltalk (6,1,225) let $lgl01 =3D 'xxx ' let $lgl02 =3D 'xxx ' let $lgl03 =3D 'xxx ' =20=20=20 let $legaltalk =3D $lgl01 || $lgl02 || $lgl03=20 print $legaltalk (7,1,225) Thanks, Murali Kaithi Spencer Gifts, LLC. =20 -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of subrahmanyam Uppuganti Sent: Wednesday, March 23, 2005 5:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem in Printing Terms and conditions in sqr Hi, Iam trying to add the terms and conditions to the PO dispatch report (POPO005.sqr) and need to print the Terms and conditions ( 2 Pages) after every Purchase order. The Terms and conditions is a static data and doesn't need to store in the data base. Can some one suggest me how to Print this.... Thanks in advance. Subbu Uppuganti=20 =09=09 --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site!=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ 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 Fri Mar 25 11:26:00 2005 From: "radhika reddy" Date: Thu, 24 Mar 2005 19:08:00 -0600 Subject: [sqr-users] SQR Report Hi, i am trying to figure out the best way to write this report. It is from the following two queries for which i have to write the SQR report: select b.paygroup,a.trc,sum(a.tl_quantity) from ps_tl_rptd_elptime a,ps_job b,ps_fast_persgl_vw1 b1 where b.emplid = b1.emplid and b1.rowsecclass = 'DPALL' and a.emplid = b.emplid and a.empl_rcd = b.empl_rcd and b.effdt = (select max(b_ed.effdt) from ps_job b_ed where b.emplid = b_ed.emplid and b.empl_rcd= b_ed.empl_rcd) and b.effseq = (select max(b_es.effseq) from ps_job b_es where b.emplid = b_es.emplid and b.empl_rcd = b_es.empl_rcd and b.effdt = b_es.effdt) and b.paygroup = :1 !User is prompted for paygroup and a.dur between :2 and :3 !user is prompter for payperiod begin and end dates group by b.paygroup,a.trc select b.paygroup,a.trc,sum(a.tl_quantity) from ps_tl_payable_time a,ps_job b,ps_fast_persgl_vw1 b1 where b.emplid = b1.emplid and b1.rowsecclass = 'DPALL' and a.emplid = b.emplid and a.empl_rcd = b.empl_rcd and b.effdt = (select max(b_ed.effdt) from ps_job b_ed where b.emplid = b_ed.emplid and b.empl_rcd= b_ed.empl_rcd) and b.effseq = (select max(b_es.effseq) from ps_job b_es where b.emplid = b_es.emplid and b.empl_rcd = b_es.empl_rcd and b.effdt = b_es.effdt) and b.paygroup = :1 !User is prompted for paygroup and a.dur between :2 and :3 !user is prompter for payperiod begin and end dates group by b.paygroup,a.trc Output looks like this:- Paygroup TRC Elapsedtime Payable time Difference BWH HOL 78 75 3 BWH PER 100 100 : : : ----- --------- ----------- 178 175 3 I tried doing it using arrays in the following way ************************************************************************ Begin-Procedure Process-Main !************************************************************************ #DebugH Show 'Enter Procedure Main' Begin-Select Job.emplid Job.empl_rcd Let $Emplid = &Job.emplid Let $Emplrcd = &Job.empl_rcd #Debugh show 'emplid' $emplid Do Calculate-Elapsed-Time from PS_Job Job,PS_FAST_PERSGL_VW1 Fastvw where Job.emplid = Fastvw.emplid and Fastvw.Rowsecclass = 'DPALL' and Job.effdt = (Select Max(b1.effdt) from ps_job b1 where b1.emplid = Job.emplid and b1.empl_rcd = Job.empl_rcd and b1.effdt <= Sysdate) and Job.effseq = (Select Max(b2.effseq) from ps_job b2 where b2.emplid = Job.emplid and b2.empl_rcd = Job.empl_rcd and b2.effdt = Job.effdt) and Job.paygroup = $Paygroup order by Job.emplid End-Select End-Procedure !***************************************** Begin-Procedure Calculate-Elapsed-Time !***************************************** #DebugH Show 'Enter Procedure Calculate Elapsed Time' Begin-Select Elptime.emplid Elptime.TRC &TRC Sum(Elptime.Tl_Quantity) &Tl_qty1 #Debugh show 'emplid' $Emplid 'sumoftime' &Tl_qty1 'TRC' &TRC If #i = 0 and Time_qty.TRC(#i) = '' Let Time_qty.TRC(#i) = &TRC end-If If Time_qty.TRC(#i)!=&TRC !here i am not able to compare with TRC codes available in the array except for previous one, which is wrong. can we do it using 'FOR' loop Let #i = #i + 1 If #i>= {Max_TRC} display 'Error:There are more than {Max_TRC} Time Reporting Codes' stop end-If Let Time_qty.TRC(#i) = &TRC End-If Let #j = 0 Let Time_qty.TM_qty(#i,#j) = Time_qty.TM_qty(#i,#j) + &Tl_qty1 Do Calculate-Payable-Time !here the j = 1 which i have to change from PS_TL_RPTD_ELPTIME Elptime where Elptime.emplid = $Emplid and Elptime.empl_rcd = $Emplrcd and Elptime.dur between $Pay_Begin_dt and $Pay_End_dt group by Elptime.emplid,Elptime.TRC order by Elptime.TRC End-Select End-Procedure !***************************************** Begin-Procedure Calculate-Payable-Time !***************************************** #DebugH Show 'Enter Procedure Calculate Payable Time' Begin-Select Paytime.emplid Paytime.TRC Sum(Paytime.Tl_Quantity) &Tl_qty2 #Debugh show 'emplid' $Emplid 'sumoftime' &Tl_qty2 from PS_TL_PAYABLE_TIME Paytime where Paytime.emplid = $Emplid and Paytime.empl_rcd = $Emplrcd and Paytime.TRC = &TRC and Paytime.dur between $Pay_Begin_dt and $Pay_End_dt group by Paytime.emplid,Paytime.TRC order by Paytime.TRC End-Select End-Procedure Is there is any other idea which i can implement? please let me know. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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 Mar 25 11:28:47 2005 Date: Thu, 24 Mar 2005 20:35:35 -0800 (PST) From: subrahmanyam Uppuganti Subject: [sqr-users] Dynamic Heading size Hi All, Iam Printing an sqr report and it has multiple pages.In the first page I have 21 Lines for the Heading ( in my sqr, I gave the size of the Heading as 21). But from the 2nd page I don't need 21 Lines for Heading. Is there any way I can change the Heading dynamically in the Program. Any one has some suggestions or sample code in this regard, Thanks in advance. Subbu Uppuganti --------------------------------- Do you Yahoo!? Make Yahoo! your 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 Fri Mar 25 11:38:52 2005 From: "Paul Hoyte" Subject: RE: [sqr-users] Dynamic Heading size Date: Fri, 25 Mar 2005 11:38:16 -0500 After the first page has printed, issue the alter-report command and change the heading size to whatever you need..... Example: alter-report heading-size=xx alter-report footing-size=xx Where xx = number of lines you need...... Paul Hoyte (248) 752-6970 Cell (586) 421-9640 Fax pa_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 subrahmanyam Uppuganti Sent: Thursday, March 24, 2005 11:36 PM To: sqr user Subject: [sqr-users] Dynamic Heading size Hi All, Iam Printing an sqr report and it has multiple pages.In the first page I have 21 Lines for the Heading ( in my sqr, I gave the size of the Heading as 21). But from the 2nd page I don't need 21 Lines for Heading. Is there any way I can change the Heading dynamically in the Program. Any one has some suggestions or sample code in this regard, Thanks in advance. Subbu Uppuganti --------------------------------- Do you Yahoo!? Make Yahoo! your 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 Fri Mar 25 15:50:23 2005 From: yamuna_pandiyan@freddiemac.com Date: Fri, 25 Mar 2005 15:49:47 -0500 Subject: [sqr-users] Using UNIX command thru SQR I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I want to read the most recent data file created in the data directory into the SQR program. I use the following command on the Unix box to sort the most recent file > ls -lts I need some help with the code to read the most recent file from the data directory into the SQR program . Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 25 16:03:04 2005 Date: Fri, 25 Mar 2005 13:01:57 -0800 (PST) From: subrahmanyam Uppuganti Subject: RE: [sqr-users] Dynamic Heading size Paul, Thanks a lot it worked!!!!!!!! Subbu Paul Hoyte wrote: After the first page has printed, issue the alter-report command and change the heading size to whatever you need..... Example: alter-report heading-size=xx alter-report footing-size=xx Where xx = number of lines you need...... Paul Hoyte (248) 752-6970 Cell (586) 421-9640 Fax pa_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 subrahmanyam Uppuganti Sent: Thursday, March 24, 2005 11:36 PM To: sqr user Subject: [sqr-users] Dynamic Heading size Hi All, Iam Printing an sqr report and it has multiple pages.In the first page I have 21 Lines for the Heading ( in my sqr, I gave the size of the Heading as 21). But from the 2nd page I don't need 21 Lines for Heading. Is there any way I can change the Heading dynamically in the Program. Any one has some suggestions or sample code in this regard, Thanks in advance. Subbu Uppuganti --------------------------------- Do you Yahoo!? Make Yahoo! your 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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 Mar 25 16:06:46 2005 Subject: RE: [sqr-users] Using UNIX command thru SQR Date: Fri, 25 Mar 2005 15:06:11 -0600 From: "Knapp, Richard" How much data? What does it look like? 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 yamuna_pandiyan@freddiemac.com Sent: Friday, March 25, 2005 2:50 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using UNIX command thru SQR=20 I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I want to read the most recent data file created in the data directory into the SQR program. I use the following command on the Unix box to sort the most recent file > ls -lts I need some help with the code to read the most recent file from the data directory into the SQR program . Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 25 16:10:14 2005 Subject: RE: [sqr-users] Using UNIX command thru SQR From: yamuna_pandiyan@freddiemac.com Date: Fri, 25 Mar 2005 16:09:39 -0500 The data files contains around 5000 records Thanks, Yamuna 918-5127 "Knapp, Richard" To "This list is for discussion about Sent by : the SQR database reportinglanguage sqr-users-bounces+yamuna_pan from Hyperion Solutions." diyan=freddiemac.com@sqrug.o rg cc Subject 03/25/2005 04:06 RE: [sqr-users] Using UNIX command PM thru SQR Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." How much data? What does it look like? 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 yamuna_pandiyan@freddiemac.com Sent: Friday, March 25, 2005 2:50 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using UNIX command thru SQR I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I want to read the most recent data file created in the data directory into the SQR program. I use the following command on the Unix box to sort the most recent file > ls -lts I need some help with the code to read the most recent file from the data directory into the SQR program . Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 25 17:50:57 2005 From: "Paul Hoyte" Subject: RE: [sqr-users] Using UNIX command thru SQR Date: Fri, 25 Mar 2005 17:50:13 -0500 First, use the call system command from within SQR to issue the UNIX command that will execute the ls -lts command. Re-direct the output into a text file on the file system. Then from within SQR open the text file and read the first 2 records which will contain the latest 2 files in the directory. You will probably have to parse the file since it will contain a lot of extra information that you probably don't need. Paul Hoyte (248) 752-6970 Cell (586) 421-9640 Fax pa_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 yamuna_pandiyan@freddiemac.com Sent: Friday, March 25, 2005 3:50 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using UNIX command thru SQR I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I want to read the most recent data file created in the data directory into the SQR program. I use the following command on the Unix box to sort the most recent file > ls -lts I need some help with the code to read the most recent file from the data directory into the SQR program . Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 27 11:35:21 2005 Date: Sun, 27 Mar 2005 08:34:14 -0800 (PST) From: Dattatraya Shetty Subject: RE: [sqr-users] Using UNIX command thru SQR Hi Yamuna, Just an addition to what paul has mentioned here. You can use the command as below that way lot of junk can be avoided. try the Program here and see if it works ==== ! You need to code the rest like Paul mentioned but here is a suggestion for the Unix Command. let $command = 'ls -lts | tr -s " " | cut -d" " -f9 > /tmp/files.txt' then execute the command using system command and inside the SQR follow Pauls Instruction. =========================================== HTH Datta. --- Paul Hoyte wrote: > First, use the call system command from within SQR to issue the UNIX > command that will execute the ls -lts command. Re-direct the output > into a > text file on the file system. Then from within SQR open the text > file and > read the first 2 records which will contain the latest 2 files in the > directory. You will probably have to parse the file since it will > contain a > lot of extra information that you probably don't need. > > > Paul Hoyte > (248) 752-6970 Cell > (586) 421-9640 Fax > pa_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 yamuna_pandiyan@freddiemac.com > Sent: Friday, March 25, 2005 3:50 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Using UNIX command thru SQR > > > > I am using a program which needs to compare the current data with the > previous data file. the data files are created with date and time > stamp. > This program runs once a week, and has to compare the previous weeks > data > file to monitor the data changes. > > I want to read the most recent data file created in the data > directory into > the SQR program. > > I use the following command on the Unix box to sort the most recent > file > > > ls -lts > > I need some help with the code to read the most recent file from the > data > directory into the SQR program . > > > Thanks, > Yamuna > 918-5127 > > > _______________________________________________ > 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! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ _______________________________________________ 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 Mar 28 12:25:05 2005 Date: Mon, 28 Mar 2005 09:23:56 -0800 (PST) From: Charles Burns Subject: [sqr-users] SQL output parameter in SQR Here's my sqr version: SQR Server/6.1.3/PC/Windows NT 4.0/Odbc Level 2/Oct 20 2000. Database is MS SQL Server 2000 I'm trying to print the output parameter from a Stored Procedure. Here's the code I'm using, I can print everything but the $filename variable. Thanks in advance for any help you can give. begin-setup declare-variable text $filename end-declare end-setup begin-program do main end-program begin-procedure main input $where input $bdate maxlen=10 type=char 'Enter Beginning Date.' input $edate maxlen=10 type=char 'Enter Ending Date.' execute maxlawbill @bdate = $bdate,@edate = $edate,@filename = $filename output show $filename print $bdate (+2,1)BOLD print $edate (+2,1)BOLD print $filename (+2,1)BOLD Print 'SUCCESS!!'(+2,1)BOLD print 'End of Procedure' (+2,1) end-procedure --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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 Mar 28 12:28:17 2005 Subject: RE: [sqr-users] Using UNIX command thru SQR Date: Mon, 28 Mar 2005 11:27:32 -0600 From: "Knapp, Richard" Small enough to palce the data from the first file in an array and then look up (pass through the array) for each row in the second file. 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 yamuna_pandiyan@freddiemac.com Sent: Friday, March 25, 2005 3:10 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Using UNIX command thru SQR The data files contains around 5000 records Thanks, Yamuna 918-5127 =20 "Knapp, Richard" To=20 "This list is for discussion about=20=20 Sent by : the SQR database reportinglanguage=20=20 sqr-users-bounces+yamuna_pan from Hyperion Solutions." diyan=3Dfreddiemac.com@sqrug.o rg cc=20 =20 =20 Subject=20 03/25/2005 04:06 RE: [sqr-users] Using UNIX command=20=20 PM thru SQR =20 =20 Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." =20 =20 How much data? What does it look like? 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 yamuna_pandiyan@freddiemac.com Sent: Friday, March 25, 2005 2:50 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using UNIX command thru SQR I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I want to read the most recent data file created in the data directory into the SQR program. I use the following command on the Unix box to sort the most recent file > ls -lts I need some help with the code to read the most recent file from the data directory into the SQR program . Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 28 13:18:08 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] SQR Report Date: Mon, 28 Mar 2005 10:16:34 -0800 I suggest you try to stay close to the original queries. Your SQR program has a main selection that identifies employees in the proper paygroup and in the departments accessible to DPALL. Then you select PS_TL_RPTD_ELPTIME for each employee. Then you select PS_TL_PAYABLE_TIME for each employee and TRC. That's going to be slow. Is DPALL defined as "all departments?" If so, take it out of your selections entirely and save the join of PS_FAST_PERSGL_VW1. Keep the PS_JOB join to PS_TL_RPTD_ELPTIME and to PS_TL_PAYABLE_TIME. That will reduce the number of SQL executes and probably speed you up more than the join to PS_JOB will slow you down. You don't care about individual employees, only the total for each TRC. The current row of PS_JOB should be as of PAY_END_DT, not as of SYSDATE. You want the employees who were in that PAYGROUP during that pay period - not the employees who are in the paygroup when you run the report. Don't call the payable time selection from the elapsed time selection. It's unlikely, but what if there is time in a TRC in payable time but not in elapsed time? You'd want to catch that type of error. I think you have the right approach to use arrays. You could create a load-lookup to map your complete list of TRCs to the index of your array. If you're using Oracle, the return value is ROWNUM. I don't know what you'd do in other databases: load-lookup name=trc_index table='(select T.TRC, ROWNUM from PS_TL_TRC_TBL T where T.EFFDT = (select max(EFFDT) from PS_TL_TRC_TBL where TRC = T.TRC) order by T.TRC)' key=T.TRC return_value=ROWNUM rows=100 -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Thursday, March 24, 2005 5:08 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Report Hi, i am trying to figure out the best way to write this report. It is from the following two queries for which i have to write the SQR report: select b.paygroup,a.trc,sum(a.tl_quantity) from ps_tl_rptd_elptime a,ps_job b,ps_fast_persgl_vw1 b1 where b.emplid = b1.emplid and b1.rowsecclass = 'DPALL' and a.emplid = b.emplid and a.empl_rcd = b.empl_rcd and b.effdt = (select max(b_ed.effdt) from ps_job b_ed where b.emplid = b_ed.emplid and b.empl_rcd= b_ed.empl_rcd) and b.effseq = (select max(b_es.effseq) from ps_job b_es where b.emplid = b_es.emplid and b.empl_rcd = b_es.empl_rcd and b.effdt = b_es.effdt) and b.paygroup = :1 !User is prompted for paygroup and a.dur between :2 and :3 !user is prompter for payperiod begin and end dates group by b.paygroup,a.trc select b.paygroup,a.trc,sum(a.tl_quantity) from ps_tl_payable_time a,ps_job b,ps_fast_persgl_vw1 b1 where b.emplid = b1.emplid and b1.rowsecclass = 'DPALL' and a.emplid = b.emplid and a.empl_rcd = b.empl_rcd and b.effdt = (select max(b_ed.effdt) from ps_job b_ed where b.emplid = b_ed.emplid and b.empl_rcd= b_ed.empl_rcd) and b.effseq = (select max(b_es.effseq) from ps_job b_es where b.emplid = b_es.emplid and b.empl_rcd = b_es.empl_rcd and b.effdt = b_es.effdt) and b.paygroup = :1 !User is prompted for paygroup and a.dur between :2 and :3 !user is prompter for payperiod begin and end dates group by b.paygroup,a.trc Output looks like this:- Paygroup TRC Elapsedtime Payable time Difference BWH HOL 78 75 3 BWH PER 100 100 : : : ----- --------- ----------- 178 175 3 I tried doing it using arrays in the following way ************************************************************************ Begin-Procedure Process-Main !************************************************************************ #DebugH Show 'Enter Procedure Main' Begin-Select Job.emplid Job.empl_rcd Let $Emplid = &Job.emplid Let $Emplrcd = &Job.empl_rcd #Debugh show 'emplid' $emplid Do Calculate-Elapsed-Time from PS_Job Job,PS_FAST_PERSGL_VW1 Fastvw where Job.emplid = Fastvw.emplid and Fastvw.Rowsecclass = 'DPALL' and Job.effdt = (Select Max(b1.effdt) from ps_job b1 where b1.emplid = Job.emplid and b1.empl_rcd = Job.empl_rcd and b1.effdt <= Sysdate) and Job.effseq = (Select Max(b2.effseq) from ps_job b2 where b2.emplid = Job.emplid and b2.empl_rcd = Job.empl_rcd and b2.effdt = Job.effdt) and Job.paygroup = $Paygroup order by Job.emplid End-Select End-Procedure !***************************************** Begin-Procedure Calculate-Elapsed-Time !***************************************** #DebugH Show 'Enter Procedure Calculate Elapsed Time' Begin-Select Elptime.emplid Elptime.TRC &TRC Sum(Elptime.Tl_Quantity) &Tl_qty1 #Debugh show 'emplid' $Emplid 'sumoftime' &Tl_qty1 'TRC' &TRC If #i = 0 and Time_qty.TRC(#i) = '' Let Time_qty.TRC(#i) = &TRC end-If If Time_qty.TRC(#i)!=&TRC !here i am not able to compare with TRC codes available in the array except for previous one, which is wrong. can we do it using 'FOR' loop Let #i = #i + 1 If #i>= {Max_TRC} display 'Error:There are more than {Max_TRC} Time Reporting Codes' stop end-If Let Time_qty.TRC(#i) = &TRC End-If Let #j = 0 Let Time_qty.TM_qty(#i,#j) = Time_qty.TM_qty(#i,#j) + &Tl_qty1 Do Calculate-Payable-Time !here the j = 1 which i have to change from PS_TL_RPTD_ELPTIME Elptime where Elptime.emplid = $Emplid and Elptime.empl_rcd = $Emplrcd and Elptime.dur between $Pay_Begin_dt and $Pay_End_dt group by Elptime.emplid,Elptime.TRC order by Elptime.TRC End-Select End-Procedure !***************************************** Begin-Procedure Calculate-Payable-Time !***************************************** #DebugH Show 'Enter Procedure Calculate Payable Time' Begin-Select Paytime.emplid Paytime.TRC Sum(Paytime.Tl_Quantity) &Tl_qty2 #Debugh show 'emplid' $Emplid 'sumoftime' &Tl_qty2 from PS_TL_PAYABLE_TIME Paytime where Paytime.emplid = $Emplid and Paytime.empl_rcd = $Emplrcd and Paytime.TRC = &TRC and Paytime.dur between $Pay_Begin_dt and $Pay_End_dt group by Paytime.emplid,Paytime.TRC order by Paytime.TRC End-Select End-Procedure Is there is any other idea which i can implement? please let me know. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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 Mar 28 14:38:37 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] SQL output parameter in SQR Date: Mon, 28 Mar 2005 13:36:45 -0600 Has the filename variable been declared for OUTPUT within the stored procedure? Example of SQR code: @#ProcReturnStatus = N839073.JVproc_DataHubInSyncChk @inSync = #inSync OUTPUT Example of procedure declaration: ALTER PROCEDURE N839073.JVproc_DataHubInSyncChk @inSync INTEGER OUTPUT -----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 Charles Burns Sent: Monday, March 28, 2005 11:24 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQL output parameter in SQR Here's my sqr version: SQR Server/6.1.3/PC/Windows NT 4.0/Odbc Level 2/Oct 20 2000. Database is MS SQL Server 2000 I'm trying to print the output parameter from a Stored Procedure. Here's the code I'm using, I can print everything but the $filename variable. Thanks in advance for any help you can give. begin-setup declare-variable text $filename end-declare end-setup begin-program do main end-program begin-procedure main input $where input $bdate maxlen=10 type=char 'Enter Beginning Date.' input $edate maxlen=10 type=char 'Enter Ending Date.' execute maxlawbill @bdate = $bdate,@edate = $edate,@filename = $filename output show $filename print $bdate (+2,1)BOLD print $edate (+2,1)BOLD print $filename (+2,1)BOLD Print 'SUCCESS!!'(+2,1)BOLD print 'End of Procedure' (+2,1) end-procedure --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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 Mar 28 14:52:05 2005 Date: Mon, 28 Mar 2005 11:50:58 -0800 (PST) From: Charles Burns Subject: RE: [sqr-users] SQL output parameter in SQR Yes, it has. Jeff.Steinfeldt@wellsfargo.com wrote:Has the filename variable been declared for OUTPUT within the stored procedure? Example of SQR code: @#ProcReturnStatus = N839073.JVproc_DataHubInSyncChk @inSync = #inSync OUTPUT Example of procedure declaration: ALTER PROCEDURE N839073.JVproc_DataHubInSyncChk @inSync INTEGER OUTPUT -----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 Charles Burns Sent: Monday, March 28, 2005 11:24 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQL output parameter in SQR Here's my sqr version: SQR Server/6.1.3/PC/Windows NT 4.0/Odbc Level 2/Oct 20 2000. Database is MS SQL Server 2000 I'm trying to print the output parameter from a Stored Procedure. Here's the code I'm using, I can print everything but the $filename variable. Thanks in advance for any help you can give. begin-setup declare-variable text $filename end-declare end-setup begin-program do main end-program begin-procedure main input $where input $bdate maxlen=10 type=char 'Enter Beginning Date.' input $edate maxlen=10 type=char 'Enter Ending Date.' execute maxlawbill @bdate = $bdate,@edate = $edate,@filename = $filename output show $filename print $bdate (+2,1)BOLD print $edate (+2,1)BOLD print $filename (+2,1)BOLD Print 'SUCCESS!!'(+2,1)BOLD print 'End of Procedure' (+2,1) end-procedure --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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! Small Business - Try our new resources site! _______________________________________________ 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 Mar 28 19:35:20 2005 Date: Mon, 28 Mar 2005 16:34:18 -0800 (PST) From: subrahmanyam Uppuganti Subject: [sqr-users] Question on wrap command Hi All, Iam trying to Print the Terms and conditions (POPO 005.sqr) on my report using the wrap command. I have the code something like this.. print &TERMSDESC.COMMENTS_2000 (1, 1, 150) wrap 150 204 ON=<10> STRIP=<13> My question here is, how do I justify the string when it prints the report, I mean both left and right. Any one has any suggestions in this regard. Thanks in advance. Subbu --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! _______________________________________________ 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 Mar 30 11:43:47 2005 From: "tam kag" Date: Wed, 30 Mar 2005 16:42:41 +0000 Subject: [sqr-users] Smart Forms Hello, I'm developing a custome parameter screen for an SQR job using ONE/SmartForms. the Pick List on the screen should bring values from a database table, I'm sure that nothing is wrong with the SQL that brings the data. and I think that the problem is these code lines. 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 Mar 30 11:54:10 2005 Subject: RE: [sqr-users] Smart Forms Date: Wed, 30 Mar 2005 09:53:03 -0700 From: "Lance Munger" I don't claim to be much of an HTML programmer, but I thought it might help you out if I included some code we use for our parameter pages. One thing that jumps out for me are that your=20 , whereas mine says Hope this helps! Lance D. Munger 720/364-4721 Select International Indicator(s):

-----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 tam kag Sent: Wednesday, March 30, 2005 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Smart Forms Hello, I'm developing a custome parameter screen for an SQR job using=20 ONE/SmartForms. the Pick List on the screen should bring values from a database table, I'm=20 sure that nothing is wrong with the SQL that brings the data. and I think=20 that the problem is these code lines.
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 Mar 30 12:52:28 2005 Date: Wed, 30 Mar 2005 12:51:43 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Smart Forms Shoo 'nuff, You didn't include the start of the block. If there isn't a line above those that says: Then that would be a problem. The other issue is that you put your options inside a and it should work. Hope this helps, Eric P.S. You can use your browser's "show source" feature to check what is going on. tam kag wrote: > Hello, > > I'm developing a custome parameter screen for an SQR job using > ONE/SmartForms. > > the Pick List on the screen should bring values from a database table, > I'm sure that nothing is wrong with the SQL that brings the data. and I > think that the problem is these code lines. > > > > > > > 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 Mar 30 15:02:59 2005 Date: Wed, 30 Mar 2005 15:01:31 -0500 From: "Susan Lomovasky" Subject: [sqr-users] how can I post a question? How can I post an sqr-related question? Thanks. Susan Lomovasky Systems Analyst M.I.S. Department Maimonides Medical Center p 718.283.1819 | f 718.283.1880 _______________________________________________ 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 Mar 30 15:08:28 2005 Date: Wed, 30 Mar 2005 15:07:06 -0500 From: "Susan Lomovasky" Subject: [sqr-users] Printing in mirror mode Hi everybody! Does anyone know how to print in mirror mode using sqr? I know there was n= o such capability back in 1996 but maybe there has been some progress. We = are on SQR V.4.3.4. We need to print employee name and address in mirror m= ode on a glassine window on the paycheck which, when folded, is readable. Thanks. Susan Lomovasky Systems Analyst M.I.S. Department Maimonides Medical Center p 718.283.1819 | f 718.283.1880 _______________________________________________ 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 Mar 30 15:11:36 2005 From: "the dragon" Subject: RE: [sqr-users] how can I post a question? Date: Wed, 30 Mar 2005 14:10:19 -0600 ummmmmm, you just did.... Do it just like you did... Some things we find useful: OS, SQR version, DB and version, PS versions if you're using PS. A brief description of the issue, and code, either snippets or the entire program, depending on what the problems is.... 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---- How can I post an sqr-related question? Thanks. Susan Lomovasky Systems Analyst M.I.S. Department Maimonides Medical Center p 718.283.1819 | f 718.283.1880 _______________________________________________ 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 Mar 30 15:24:52 2005 Date: Wed, 30 Mar 2005 15:24:06 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Printing in mirror mode Susan, If you are generating Postscript (or are willing to get you final output format by applying a filter to PS) there is an easy solution. You can use "print-direct" to enter PS commands into your output file. There is an example of printing rotated text here: http://www.ontko.com/sqr/ Look for "vertical printing" about 1/2 way down the page. Of course you will want it rotated 180 degrees rather than 90. There is probably a command for flipping text over so that it can be read from the back, but I don't have a PS manual handy. Hope this helps, Eric Susan Lomovasky wrote: > Hi everybody! Does anyone know how to print in mirror mode using sqr? > I know there was no such capability back in 1996 but maybe there has > been some progress. We are on SQR V.4.3.4. We need to print > employee name and address in mirror mode on a glassine window on the > paycheck which, when folded, is readable. Thanks. Susan Lomovasky > Systems Analyst M.I.S. Department Maimonides Medical Center p > 718.283.1819 | f 718.283.1880 > > _______________________________________________ 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 Mar 30 15:29:13 2005 From: yamuna_pandiyan@freddiemac.com Date: Wed, 30 Mar 2005 15:28:34 -0500 Subject: [sqr-users] Call SYSTEM command in SQR I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I am using the following command on the Unix box to sort the most recent file let $file_list = '{FILEPREFIX}Latestfile.dat' let $syscmd = '{FILEPREFIX}' || 'ls -lts SAMPLE.DAT >' || $file_list call system using $syscmd #unix_status if #unix_status != 0 stop quiet end-if The Latestfile.dat file is created in the data directory mentioned under {FILEPREFIX}. But the file is empty. I would like to send the result of the command ls -lts FMUBSOPT.DAT* to the above file. when I execute the above program in the unix server , I ge the following error - {FILEPREFIX} : cannot execute, but a blank file in the name of Latestfile.dat is created. any help in greatly appreciated. Thanks, Yamuna 918-5127 _______________________________________________ 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 Mar 30 16:07:19 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Printing in mirror mode Date: Wed, 30 Mar 2005 15:06:01 -0600 Might take a little effort but I think you could make it work. There are a number of companies that are willing to create TTF fonts for a fee. You would need to purchase a font in the typeface you need (probably an OCR with barcode capability?). Be sure to request that they flip the glyphs horizontally. There is an open source program to convert TTF fonts to Adobe Type 1 fonts: http://mheath.customer.netspace.net.au/ttf2pt1/ This provides the PFB and AFM files of which you will need the AFM. Copy the new AFM to the same folder as the AFMs, supplied with SQR, for the Adobe core fonts. Add references to the new AFM in SQR.ini and pdflib.upr. In the print routine you'll need to reverse the name and address strings and right-justify them. Reference the new font on the PRINT statement. The barcode might prove to be more of a challenge if you are currently letting SQR generate it. -----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 Susan Lomovasky Sent: Wednesday, March 30, 2005 2:07 PM To: sqr-users@sqrug.org Cc: Richard Westbay Subject: [sqr-users] Printing in mirror mode Hi everybody! Does anyone know how to print in mirror mode using sqr? I know there was no such capability back in 1996 but maybe there has been some progress. We are on SQR V.4.3.4. We need to print employee name and address in mirror mode on a glassine window on the paycheck which, when folded, is readable. Thanks. Susan Lomovasky Systems Analyst M.I.S. Department Maimonides Medical Center p 718.283.1819 | f 718.283.1880 _______________________________________________ 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 Mar 30 16:15:44 2005 Date: Wed, 30 Mar 2005 13:14:38 -0800 (PST) From: Dattatraya Shetty Subject: Re: [sqr-users] Call SYSTEM command in SQR Hi Yamuna, The Second part of the Problem is that FILEPREFIX may be an environment variable not defined? In the fist part the $ is missing for an environment variable. It would help if you let us know what is the excat command you are typing in at the command prompt. e.g $> ls -tls FMUBSOPT.DAT* > ${FILEPREFIX}Latestfile.dat is this what you are typing ? The fact that you are getting a file called Latestfile.dat tells me that the FILEPREFIX is not defined or you are not keying it correctly what is it ? HTH Datta. yamuna_pandiyan@freddiemac.com wrote: I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I am using the following command on the Unix box to sort the most recent file let $file_list = '{FILEPREFIX}Latestfile.dat' let $syscmd = '{FILEPREFIX}' || 'ls -lts SAMPLE.DAT >' || $file_list call system using $syscmd #unix_status if #unix_status != 0 stop quiet end-if The Latestfile.dat file is created in the data directory mentioned under {FILEPREFIX}. But the file is empty. I would like to send the result of the command ls -lts FMUBSOPT.DAT* to the above file. when I execute the above program in the unix server , I ge the following error - {FILEPREFIX} : cannot execute, but a blank file in the name of Latestfile.dat is created. any help in greatly appreciated. Thanks, Yamuna 918-5127 _______________________________________________ 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 Thu Mar 31 08:00:53 2005 From: dinsx Date: Thu, 31 Mar 2005 14:59:59 +0200 Subject: [sqr-users] where is spf62.zip file? Hello, i'm trying to generate a .csv file from sqr viewer (sqrwv.exe) using the "Save as CSV" option menu, but this action don't produce any file. I'm searching information and experiencing by myself and i see that i need the follow folder structure, ./jre/jre122/... and sqrwv.exe search the file spf62.zip in the path ./jre/jre122/lib/spf62.zip when i try to convert to csv but this file not exist. I need that everybody send it to me or say me how or where i can take it. Thanks. Bye 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 Thu Mar 31 08:46:49 2005 From: "Steve Cavill" Subject: RE: [sqr-users] where is spf62.zip file? Date: Thu, 31 Mar 2005 23:44:37 +1000 If you have files missing I recommend you reinstall SQR as you can't be sure that is the only file that is missing. Steve. -----Original Message----- To: sqr-users@sqrug.org Subject: [sqr-users] where is spf62.zip file? Hello, i'm trying to generate a .csv file from sqr viewer (sqrwv.exe) using the "Save as CSV" option menu, but this action don't produce any file. I'm searching information and experiencing by myself and i see that i need the follow folder structure, ./jre/jre122/... and sqrwv.exe search the file spf62.zip in the path ./jre/jre122/lib/spf62.zip when i try to convert to csv but this file not exist. I need that everybody send it to me or say me how or where i can take it. Thanks. Bye 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 Thu Mar 31 09:05:32 2005 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] where is spf62.zip file? Date: Thu, 31 Mar 2005 08:04:22 -0600 You shouldn't need that folder structure or file to use sqrwv.exe. But you DO need to select text in the report prior to using "Save as CSV". -----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 dinsx Sent: Thursday, March 31, 2005 7:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] where is spf62.zip file? Hello, i'm trying to generate a .csv file from sqr viewer (sqrwv.exe) using the "Save as CSV" option menu, but this action don't produce any file. I'm searching information and experiencing by myself and i see that i need the follow folder structure, ./jre/jre122/... and sqrwv.exe search the file spf62.zip in the path ./jre/jre122/lib/spf62.zip when i try to convert to csv but this file not exist. I need that everybody send it to me or say me how or where i can take it. Thanks. Bye 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 Thu Mar 31 09:11:58 2005 From: "Peter Burton" Date: Thu, 31 Mar 2005 09:10:47 -0500 Subject: RE: [sqr-users] where is spf62.zip file? All, The "Save As CSV" functionality of SQR Viewer requires the "SPF62.JAR" file. If the file is missing I would reinstall the software (other stuff might be missing as well). 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 Jeff.Steinfeldt@wellsfargo.com Sent: Thursday, March 31, 2005 9:04 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] where is spf62.zip file? You shouldn't need that folder structure or file to use sqrwv.exe. But you DO need to select text in the report prior to using "Save as CSV". -----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 dinsx Sent: Thursday, March 31, 2005 7:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] where is spf62.zip file? Hello, i'm trying to generate a .csv file from sqr viewer (sqrwv.exe)=20 using the "Save as CSV" option menu, but this action don't produce any=20 file. I'm searching information and experiencing by myself and i see=20 that i need the follow folder structure, ./jre/jre122/... and sqrwv.exe=20 search the file spf62.zip in the path ./jre/jre122/lib/spf62.zip when i=20 try to convert to csv but this file not exist. I need that everybody=20 send it to me or say me how or where i can take it. Thanks. Bye 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 ************************************************************************ 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 Thu Mar 31 09:26:43 2005 Subject: Re: [sqr-users] Call SYSTEM command in SQR From: yamuna_pandiyan@freddiemac.com Date: Thu, 31 Mar 2005 09:26:07 -0500 Hi Datta, The sqr program resides in the ' /shared/main/prog/sqr' directory. The data file is created in the ' /shared/main/files/data/' directory. The "This list is for discussion about the SQR database reporting language Sent by : from Hyperion Solutions." sqr-users-bounces+yamuna_pan diyan=freddiemac.com@sqrug.o cc rg Subject Re: [sqr-users] Call SYSTEM 03/30/2005 04:14 command in SQR PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Hi Yamuna, The Second part of the Problem is that FILEPREFIX may be an environment variable not defined? In the fist part the $ is missing for an environment variable. It would help if you let us know what is the excat command you are typing in at the command prompt. e.g $> ls -tls FMUBSOPT.DAT* > ${FILEPREFIX}Latestfile.dat is this what you are typing ? The fact that you are getting a file called Latestfile.dat tells me that the FILEPREFIX is not defined or you are not keying it correctly what is it ? HTH Datta. yamuna_pandiyan@freddiemac.com wrote: I am using a program which needs to compare the current data with the previous data file. the data files are created with date and time stamp. This program runs once a week, and has to compare the previous weeks data file to monitor the data changes. I am using the following command on the Unix box to sort the most recent file let $file_list = '{FILEPREFIX}Latestfile.dat' let $syscmd = '{FILEPREFIX}' || 'ls -lts SAMPLE.DAT >' || $file_list call system using $syscmd #unix_status if #unix_status != 0 stop quiet end-if The Latestfile.dat file is created in the data directory mentioned under {FILEPREFIX}. But the file is empty. I would like to send the result of the command ls -lts SAMPLE.DAT* to the above file. when I execute the above program in the unix server , I ge the following error - {FILEPREFIX} : cannot execute, but a blank file in the name of Latestfile.dat is created. any help in greatly appreciated. Thanks, Yamuna 918-5127 _______________________________________________ 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 _______________________________________________ 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 Mar 31 10:29:55 2005 From: "tam kag" Subject: Re: [sqr-users] Smart Forms Date: Thu, 31 Mar 2005 15:28:49 +0000 Thank you all for your help, removing the and it should work. > >Hope this helps, >Eric > >P.S. You can use your browser's "show source" feature to check what is >going on. > >tam kag wrote: >>Hello, >> >>I'm developing a custome parameter screen for an SQR job using >>ONE/SmartForms. >> >>the Pick List on the screen should bring values from a database table, I'm >>sure that nothing is wrong with the SQL that brings the data. and I think >>that the problem is these code lines. >> >> >> >> >>
>> >>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 _______________________________________________ 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 Mar 31 10:38:08 2005 From: "tam kag" Subject: Re: [sqr-users] Smart Forms Date: Thu, 31 Mar 2005 15:37:00 +0000 removing the and it should work. >> >>Hope this helps, >>Eric >> >>P.S. You can use your browser's "show source" feature to check what is >>going on. >> >>tam kag wrote: >>>Hello, >>> >>>I'm developing a custome parameter screen for an SQR job using >>>ONE/SmartForms. >>> >>>the Pick List on the screen should bring values from a database table, >>>I'm sure that nothing is wrong with the SQL that brings the data. and I >>>think that the problem is these code lines. >>> >>> >>> >>> >>> >>> >>>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 > > > >_______________________________________________ >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 Mar 31 13:26:57 2005 Date: Thu, 31 Mar 2005 10:25:45 -0800 (PST) From: Dattatraya Shetty Subject: Re: [sqr-users] Call SYSTEM command in SQR This fix is simple change the command to below let $syscmd = 'ls -lts SAMPLE.DAT >' || $file_list call system using $syscmd #unix_status if #unix_status != 0 stop quiet end-if No need to Add the fileprefix to ls command. Its a Unix command and if you add fileprefix to it the OS will try and execute the ls command from the path in fileprefix which is wrong because the ls command is not stored there. its some where in /usr/bin: if you need to give the path then log into unix and issue the following command $> whence ls see the path displayed and use that. HTH Datta. --- yamuna_pandiyan@freddiemac.com wrote: > > Hi Datta, > > The sqr program resides in the ' /shared/main/prog/sqr' directory. > The > data file is created in the ' /shared/main/files/data/' directory. > The There > is nothing wrong in the {FILEPREFIX} variable, since it woks fine > with all > other programs. > > But I am not able to debug, since I have limited knowledge on the > Call > System commands. When the below program is executed, the > Latestfile.dat is > created in the directory ' /shared/main/files/data/'. > > The error that is generated when executing the program is 'sh: > /shared/main/files/data/ls : not found' if I use the below command. > if I remove the {FILEPREFIX} from the command line, the following > error is > generated - '/shared/main/files/data/ : cannot execute' > > Thanks, > Yamuna > 918-5127 > > > > > "Dattatraya > > Shetty" > > To > oo.com> "This list is for discussion > about > the SQR database reporting > language > Sent by : from Hyperion Solutions." > > sqr-users-bounces+yamuna_pan > > diyan=freddiemac.com@sqrug.o > cc > rg > > > Subject > Re: [sqr-users] Call SYSTEM > > 03/30/2005 04:14 command in SQR > > PM > > > > > > Please respond to > > "This list is > > for discussion > > about the SQR > > database > > reporting > > language from > > Hyperion > > Solutions." > > > .org> > > > > > > > > > > Hi Yamuna, > The Second part of the Problem is that FILEPREFIX may be an > environment > variable not defined? > > In the fist part the $ is missing for an environment variable. > > It would help if you let us know what is the excat command you are > typing > in at the command > prompt. > > e.g > > $> ls -tls FMUBSOPT.DAT* > ${FILEPREFIX}Latestfile.dat > is this what you are typing ? > > The fact that you are getting a file called Latestfile.dat tells me > that > the FILEPREFIX is not defined or you are not keying it correctly what > is it > ? > > HTH > Datta. > > > > yamuna_pandiyan@freddiemac.com wrote: > I am using a program which needs to compare the current data with the > previous data file. the data files are created with date and time > stamp. > This program runs once a week, and has to compare the previous weeks > data > file to monitor the data changes. > > I am using the following command on the Unix box to sort the most > recent > file > > let $file_list = '{FILEPREFIX}Latestfile.dat' > > let $syscmd = '{FILEPREFIX}' || 'ls -lts SAMPLE.DAT >' || $file_list > call system using $syscmd #unix_status > if #unix_status != 0 > stop quiet > end-if > > The Latestfile.dat file is created in the data directory mentioned > under > {FILEPREFIX}. But the file is empty. I would like to send the result > of the > command > ls -lts SAMPLE.DAT* to the above file. > when I execute the above program in the unix server , I ge the > following > error - {FILEPREFIX} : cannot execute, but a blank file in the name > of > Latestfile.dat is created. > > any help in greatly appreciated. > > Thanks, > Yamuna > 918-5127 > > > > _______________________________________________ > 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 > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.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 Mar 31 13:30:41 2005 Date: Thu, 31 Mar 2005 20:33:01 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20[sqr-users]=20Call=20SYSTEM=20?= =?ISO-8859-1?Q?=20command=20in=20SQR?= --===============1469960052== Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: base64 Content-Disposition: inline ROlzb2zpLCBqJ2FpIHF1aXR06SBsYSBzb2Np6XTpIEZyYW5jZSBU6WzpY29t IEPiYmxlIGV0DQpjZXR0ZSBzb2Np6XTpIG4nZXhpc3RlIHBsdXMgYXUgMzEv MDMvMjAwNS4NCg== --===============1469960052== 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 --===============1469960052==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Mar 31 14:20:24 2005 Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_Re=3A_=5Bsqr-users=5D_Call_SYSTEM__?= =?iso-8859-1?Q?command_in_SQR?= Date: Thu, 31 Mar 2005 14:17:37 -0500 From: "Burns, Lawrence" Je regrette, mais je ne parle pas Francais. -----Original Message----- From: sqr-users-bounces+laburns=3Dnyct.com@sqrug.org [mailto:sqr-users-bounces+laburns=3Dnyct.com@sqrug.org] Sent: Thursday, March 31, 2005 1:33 PM To: sqr-users@sqrug.org Subject: R=E9p. : Re: [sqr-users] Call SYSTEM command in SQR D=E9sol=E9, j'ai quitt=E9 la soci=E9t=E9 France T=E9l=E9com C=E2ble et cette soci=E9t=E9 n'existe plus au 31/03/2005. _______________________________________________ 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 Mar 31 14:24:59 2005 From: "sgreenwood@juno.com" Date: Thu, 31 Mar 2005 19:22:43 GMT Subject: [sqr-users] ORACLE OCISessionBegin(RDBMS) error 28002 when running report Hello, I have a client that is running a report, and receiving the following error when the report attempts to connect to the database: (SQR 5528) ORACLE OCISessionBegin(RDBMS) error 28002 in cursor0: ORA-28002: the password will expire within 14 days (SQR 4701) Cannot logon to the database. As you can see from the error, the user's Oracle password has expired and is in the grace period. However, that shouldn't prevent the report from running. (For instance, you can still log into SQL*Plus in this situation.) Also, when I test this out on my own system, I don't see this error. I can set up a user with a password in the grace period, and then run the report with no problem. I'd appreciate any suggestions. Hyperion SQR version 6.2 Oracle version 8.1.7.4 running on Unix. Thanks, Steve ___________________________________________________________________ Speed up your surfing with Juno SpeedBand. Now includes pop-up blocker! Only $14.95/month -visit http://www.juno.com/surf to sign up today! _______________________________________________ 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 Mar 31 14:31:58 2005 From: Bob Stone Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_Re=3A_=5Bsqr-users=5D_Call_S?= =?iso-8859-1?Q?YSTEM__command_in_SQR?= Date: Thu, 31 Mar 2005 13:30:53 -0600 He said: "Sorry, I left the France Telecom Cable society and this society will no longer exists as of March 31, 2005."=20 I can only assume that his use of the word 'societ=E9' has a similar meaning to 'group' or 'department' in the American technology vernacular. I also assume that he will thus no longer be a part of the mailing group, or at least not with that email address. I dont know. His job function has changed or been removed.=20=20 Then you said: "I'm sorry, but I don't speak French."=20 Which is odd because you said it in almost perfect French, except that you capitalized Francais when you shouldn't. The French as a people are capitalized, French as a language is not. I hope that clears up any language questions people had from these emails. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Burns, Lawrence Sent: Thursday, March 31, 2005 1:18 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: R=E9p. : Re: [sqr-users] Call SYSTEM command in SQR Je regrette, mais je ne parle pas Francais. -----Original Message----- From: sqr-users-bounces+laburns=3Dnyct.com@sqrug.org [mailto:sqr-users-bounces+laburns=3Dnyct.com@sqrug.org] Sent: Thursday, March 31, 2005 1:33 PM To: sqr-users@sqrug.org Subject: R=E9p. : Re: [sqr-users] Call SYSTEM command in SQR D=E9sol=E9, j'ai quitt=E9 la soci=E9t=E9 France T=E9l=E9com C=E2ble et cette soci=E9t=E9 n'existe plus au 31/03/2005. _______________________________________________ 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 Mar 31 19:14:13 2005 Date: Thu, 31 Mar 2005 16:13:39 -0800 From: marc pechaitis Subject: [sqr-users] weird behavior with print statement Hello All - I am encountering some weird behavior with a print statement I am using in a SQR. Essentially, I would like to read a table and print the contents of a field, and then print the contents of the next row on the next line: begin-Select A.REPORT_REQUEST_NBR, A.REQUEST_SEQ_NBR, A.REPORT_NUMBER, B.COPY_NUMBER, A.REPORT_LINE_NBR, A.TSCRPT_COMP_CODE, A.TSCRPT_COMP_DATA, A.DISPLAY_ATTR, B.TSCRPT_TITLE, B.TSCRPT_INS_ADDR1, B.TSCRPT_INS_ADDR2, B.TSCRPT_INS_ADDR3, B.TSCRPT_INS_ADDR4, B.TSCRPT_INS_ADDR5, B.TSCRPT_INS_ADDR6, B.TSCRPT_INS_ADDR7, B.TSCRPT_EM_ADDR1, B.TSCRPT_EM_ADDR2, B.TSCRPT_EM_ADDR3, B.TSCRPT_EM_ADDR4, B.TSCRPT_EM_ADDR5, B.TSCRPT_EM_ADDR6, B.TSCRPT_EM_ADDR7, B.TSCRPT_EM_ADDR8, B.TSCRPT_EM_ADDR9, B.TSCRPT_EM_ADDR10, B.TSCRPT_EM_ADDR11 Let $TranscriptLine = &A.TSCRPT_COMP_DATA print $TranscriptLine (+1,0) FROM PS_SA_REPORT_RSLT A, PS_SA_RPT_RSLT_HDR B WHERE A.REPORT_REQUEST_NBR = $ReptReqstID AND A.REQUEST_SEQ_NBR = $ReptReqstSeq AND A.REPORT_REQUEST_NBR = B.REPORT_REQUEST_NBR AND A.REQUEST_SEQ_NBR = B.REQUEST_SEQ_NBR AND A.REPORT_NUMBER = B.REPORT_NUMBER AND A.TSCRPT_COMP_CODE NOT LIKE 'T0%' AND A.TSCRPT_COMP_CODE NOT LIKE 'IN%' AND A.TSCRPT_COMP_CODE NOT LIKE 'EM%' ORDER BY 1, 2, 3, 5 end-Select I would expect the output to be: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) But I am getting: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) Can anyone explain why this could happen, or maybe suggest a fix? 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 Mar 31 19:23:19 2005 Date: Fri, 01 Apr 2005 10:21:42 +1000 From: "Ian Mills" Subject: Re: [sqr-users] weird behavior with print statement Marc, You are missing the position value for across the page. print $TranscriptLine (+1,0) +1 take you to the next line, 0 uses ths current position Try using print $TranscriptLine (+1,1) this will print the information in the left most column of the page Or if you have set up columns with the COLUMNS command try e.g. columns ... use-column 1 print $TranscriptLine (+1,0) Hope this helps. Regards, Ian Mills Report Program Manager ORIX Australia Corp Ltd >>> fromthehills@gmail.com 01/04/2005 10:13:39 am >>> Hello All - I am encountering some weird behavior with a print statement I am using in a SQR. Essentially, I would like to read a table and print the contents of a field, and then print the contents of the next row on the next line: begin-Select A.REPORT_REQUEST_NBR, A.REQUEST_SEQ_NBR, A.REPORT_NUMBER, B.COPY_NUMBER, A.REPORT_LINE_NBR, A.TSCRPT_COMP_CODE, A.TSCRPT_COMP_DATA, A.DISPLAY_ATTR, B.TSCRPT_TITLE, B.TSCRPT_INS_ADDR1, B.TSCRPT_INS_ADDR2, B.TSCRPT_INS_ADDR3, B.TSCRPT_INS_ADDR4, B.TSCRPT_INS_ADDR5, B.TSCRPT_INS_ADDR6, B.TSCRPT_INS_ADDR7, B.TSCRPT_EM_ADDR1, B.TSCRPT_EM_ADDR2, B.TSCRPT_EM_ADDR3, B.TSCRPT_EM_ADDR4, B.TSCRPT_EM_ADDR5, B.TSCRPT_EM_ADDR6, B.TSCRPT_EM_ADDR7, B.TSCRPT_EM_ADDR8, B.TSCRPT_EM_ADDR9, B.TSCRPT_EM_ADDR10, B.TSCRPT_EM_ADDR11 Let $TranscriptLine = &A.TSCRPT_COMP_DATA print $TranscriptLine (+1,0) FROM PS_SA_REPORT_RSLT A, PS_SA_RPT_RSLT_HDR B WHERE A.REPORT_REQUEST_NBR = $ReptReqstID AND A.REQUEST_SEQ_NBR = $ReptReqstSeq AND A.REPORT_REQUEST_NBR = B.REPORT_REQUEST_NBR AND A.REQUEST_SEQ_NBR = B.REQUEST_SEQ_NBR AND A.REPORT_NUMBER = B.REPORT_NUMBER AND A.TSCRPT_COMP_CODE NOT LIKE 'T0%' AND A.TSCRPT_COMP_CODE NOT LIKE 'IN%' AND A.TSCRPT_COMP_CODE NOT LIKE 'EM%' ORDER BY 1, 2, 3, 5 end-Select I would expect the output to be: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) But I am getting: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) Can anyone explain why this could happen, or maybe suggest a fix? 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 Mar 31 19:34:40 2005 From: "the dragon" Subject: RE: [sqr-users] weird behavior with print statement Date: Thu, 31 Mar 2005 18:33:35 -0600 my guess is you have embedded spaces on the left. You can check this out with: Let $TranscriptLine = &A.TSCRPT_COMP_DATA show 'Transcript data = |' $TranscriptLine '|' print $TranscriptLine (+1,0) If you see spaces, get rid of them Let $TranscriptLine = ltrim(&A.TSCRPT_COMP_DATA, ' ') show 'Transcript data = |' $TranscriptLine '|' print $TranscriptLine (+1,0) 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---- Hello All - I am encountering some weird behavior with a print statement I am using in a SQR. Essentially, I would like to read a table and print the contents of a field, and then print the contents of the next row on the next line: begin-Select A.REPORT_REQUEST_NBR, A.REQUEST_SEQ_NBR, A.REPORT_NUMBER, B.COPY_NUMBER, A.REPORT_LINE_NBR, A.TSCRPT_COMP_CODE, A.TSCRPT_COMP_DATA, A.DISPLAY_ATTR, B.TSCRPT_TITLE, B.TSCRPT_INS_ADDR1, B.TSCRPT_INS_ADDR2, B.TSCRPT_INS_ADDR3, B.TSCRPT_INS_ADDR4, B.TSCRPT_INS_ADDR5, B.TSCRPT_INS_ADDR6, B.TSCRPT_INS_ADDR7, B.TSCRPT_EM_ADDR1, B.TSCRPT_EM_ADDR2, B.TSCRPT_EM_ADDR3, B.TSCRPT_EM_ADDR4, B.TSCRPT_EM_ADDR5, B.TSCRPT_EM_ADDR6, B.TSCRPT_EM_ADDR7, B.TSCRPT_EM_ADDR8, B.TSCRPT_EM_ADDR9, B.TSCRPT_EM_ADDR10, B.TSCRPT_EM_ADDR11 Let $TranscriptLine = &A.TSCRPT_COMP_DATA print $TranscriptLine (+1,0) FROM PS_SA_REPORT_RSLT A, PS_SA_RPT_RSLT_HDR B WHERE A.REPORT_REQUEST_NBR = $ReptReqstID AND A.REQUEST_SEQ_NBR = $ReptReqstSeq AND A.REPORT_REQUEST_NBR = B.REPORT_REQUEST_NBR AND A.REQUEST_SEQ_NBR = B.REQUEST_SEQ_NBR AND A.REPORT_NUMBER = B.REPORT_NUMBER AND A.TSCRPT_COMP_CODE NOT LIKE 'T0%' AND A.TSCRPT_COMP_CODE NOT LIKE 'IN%' AND A.TSCRPT_COMP_CODE NOT LIKE 'EM%' ORDER BY 1, 2, 3, 5 end-Select I would expect the output to be: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) But I am getting: Transcript Line 1 Transcript Line 2 Transcript Line 3 Transcript Line 4 (etc.) Can anyone explain why this could happen, or maybe suggest a fix? 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 Mar 31 19:41:21 2005 Date: Thu, 31 Mar 2005 16:40:46 -0800 From: marc pechaitis Subject: Re: [sqr-users] weird behavior with print statement Thanks for the suggestion, dragon. It turns out that Ian was right. Once I used "print x (+1,1)" it worked. Using the "print x (+1,0)" was screwing it up. have a great day everybody! Marc On Thu, 31 Mar 2005 18:33:35 -0600, the dragon wrote: > my guess is you have embedded spaces on the left. You can check this out > with: > > Let $TranscriptLine = &A.TSCRPT_COMP_DATA > show 'Transcript data = |' $TranscriptLine '|' > print $TranscriptLine (+1,0) > > If you see spaces, get rid of them > > Let $TranscriptLine = ltrim(&A.TSCRPT_COMP_DATA, ' ') > show 'Transcript data = |' $TranscriptLine '|' > print $TranscriptLine (+1,0) > > 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---- > > Hello All - > I am encountering some weird behavior with a print statement I am > using in a SQR. Essentially, I would like to read a table and print > the contents of a field, and then print the contents of the next row > on the next line: > > begin-Select > A.REPORT_REQUEST_NBR, > A.REQUEST_SEQ_NBR, > A.REPORT_NUMBER, > B.COPY_NUMBER, > A.REPORT_LINE_NBR, > A.TSCRPT_COMP_CODE, > A.TSCRPT_COMP_DATA, > A.DISPLAY_ATTR, > B.TSCRPT_TITLE, > B.TSCRPT_INS_ADDR1, > B.TSCRPT_INS_ADDR2, > B.TSCRPT_INS_ADDR3, > B.TSCRPT_INS_ADDR4, > B.TSCRPT_INS_ADDR5, > B.TSCRPT_INS_ADDR6, > B.TSCRPT_INS_ADDR7, > B.TSCRPT_EM_ADDR1, > B.TSCRPT_EM_ADDR2, > B.TSCRPT_EM_ADDR3, > B.TSCRPT_EM_ADDR4, > B.TSCRPT_EM_ADDR5, > B.TSCRPT_EM_ADDR6, > B.TSCRPT_EM_ADDR7, > B.TSCRPT_EM_ADDR8, > B.TSCRPT_EM_ADDR9, > B.TSCRPT_EM_ADDR10, > B.TSCRPT_EM_ADDR11 > > Let $TranscriptLine = &A.TSCRPT_COMP_DATA > print $TranscriptLine (+1,0) > > FROM PS_SA_REPORT_RSLT A, > PS_SA_RPT_RSLT_HDR B > WHERE A.REPORT_REQUEST_NBR = $ReptReqstID > AND A.REQUEST_SEQ_NBR = $ReptReqstSeq > AND A.REPORT_REQUEST_NBR = B.REPORT_REQUEST_NBR > AND A.REQUEST_SEQ_NBR = B.REQUEST_SEQ_NBR > AND A.REPORT_NUMBER = B.REPORT_NUMBER > AND A.TSCRPT_COMP_CODE NOT LIKE 'T0%' > AND A.TSCRPT_COMP_CODE NOT LIKE 'IN%' > AND A.TSCRPT_COMP_CODE NOT LIKE 'EM%' > ORDER BY 1, 2, 3, 5 > end-Select > > I would expect the output to be: > Transcript Line 1 > Transcript Line 2 > Transcript Line 3 > Transcript Line 4 > (etc.) > > But I am getting: > Transcript Line 1 > > Transcript Line 2 > Transcript Line 3 > > Transcript Line 4 > (etc.) > > Can anyone explain why this could happen, or maybe suggest a fix? > > Thanks! > Marc > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users