From sqr-users-admin@sqrug.org Tue Apr 1 00:02:37 2003 Date: Tue, 1 Apr 2003 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.14 $ $Date: 2002-11-13 12:55:07-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 Digests 3.4 Obtaining your password 3.5 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 2002/04/17: o Reflect the new location of the list and the new list server software being used. 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 Brio Software (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. 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-2002 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, and click the "Edit Options" button. In the page that comes up, there will be an "Unsubscribing from sqr-users" section; simply enter your password in the box there and click the "Unsubscribe" button. Assuming you enter the correct password, you will recieve a message stating "You have been unsubscribed." and the removal will take effect immediately (there is no need to send in a confirmation e-mail message). (If you have forgotton your password, see the instructions below.) 3.3. 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, enter your address in the "sqr-users Subscribers" section of the sqr-users List Info page and click the "Edit Options" button. At the bottom of the resulting page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option to "On", enter your subscription password in the box provided, and click the "Submit My Changes" button. (If you have forgotton your password, see the instructions below.) 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.4. Obtaining your password You will not be able to unsubscribe or change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the Edit Options page and your password will be e-mailed 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.5. 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). 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 in reply from other subscribers.) 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. 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 fule 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 Brio product and version number (see notes below) o Operating system 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's, so it's very important to mention whether you are using Brio'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 version number listed here is the one under which this copy of SQR was compiled, so you'll still need to include this infor- mation 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-admin@sqrug.org Tue Apr 1 10:06:03 2003 Date: Tue, 1 Apr 2003 07:03:56 -0800 (PST) From: Rehan Khan Subject: [sqr-users] Image not appearing on Letters Hi, I am trying to get an image ( signature ) on the letters created by an SQR. It works great when I am testing in SQRW ( Windows ) environment, the file that has the image is in SPF format. The code used to print the image in Windows is as follows: declare-image signature Type=BMP-FILE Source='C:\Temp\ladyliberty.bmp' end-declare let #image_length = 8 let #image_height = 6 print 'Look at this picture: ' (+2,{midcol}) print-image signature (+2,{midcol}) image-size= (#image_length, #image_height) let #current_line_adj = #image_height +3 print 'Any Comments?' (+#current_line_adj,{midcol}) But when I am trying to use the same code to print the file to Docutech( Printer Name ) I dont get any image. The code for this is as follows: declare-image signature Type=GIF-FILE Source='/t02/app/psft/ladyliberty.gif/' end-declare OR declare-image signature Type=JPEG-FILE Source='/t02/app/psft/ladyliberty.jpg/' end-declare Ive tried GIF and JPG format and both doesnt work. The file that gets send to the Docutech printer is in .LIS format. Any Suggestions RK --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 1 12:35:05 2003 Subject: RE: [sqr-users] Image not appearing on Letters Date: Tue, 1 Apr 2003 11:33:59 -0600 From: "Lindquist, Maria" I can only get my images to show up in SQRW too. If anyone comes up with a solution to get it to work on a SQR run thru the web (PDF) let me know. When I run it thru the web it shows up as a box with an X in it. :( -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Tuesday, April 01, 2003 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Image not appearing on Letters Hi, I am trying to get an image ( signature ) on the letters created by an SQR. It works great when I am testing in SQRW ( Windows ) environment, the file that has the image is in SPF format. The code used to print the image in Windows is as follows: declare-image signature Type=BMP-FILE Source='C:\Temp\ladyliberty.bmp' end-declare let #image_length = 8 let #image_height = 6 print 'Look at this picture: ' (+2,{midcol}) print-image signature (+2,{midcol}) image-size= (#image_length, #image_height) let #current_line_adj = #image_height +3 print 'Any Comments?' (+#current_line_adj,{midcol}) But when I am trying to use the same code to print the file to Docutech( Printer Name ) I dont get any image. The code for this is as follows: declare-image signature Type=GIF-FILE Source='/t02/app/psft/ladyliberty.gif/' end-declare OR declare-image signature Type=JPEG-FILE Source='/t02/app/psft/ladyliberty.jpg/' end-declare Ive tried GIF and JPG format and both doesnt work. The file that gets send to the Docutech printer is in .LIS format. Any Suggestions RK --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, 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-admin@sqrug.org Tue Apr 1 12:47:06 2003 From: "Benzenhafer, Dave" Subject: RE: [sqr-users] Image not appearing on Letters Date: Tue, 1 Apr 2003 11:42:31 -0600 For a PDF to pick up the image it has to be a JPEG. SPF files require a BMP. If you need it to show in both file types, you might try to declare both images and print them in the same location so that both file types can see them. Dave Benzenhafer -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, April 01, 2003 11:34 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Image not appearing on Letters I can only get my images to show up in SQRW too. If anyone comes up with a solution to get it to work on a SQR run thru the web (PDF) let me know. When I run it thru the web it shows up as a box with an X in it. :( -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Tuesday, April 01, 2003 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Image not appearing on Letters Hi, I am trying to get an image ( signature ) on the letters created by an SQR. It works great when I am testing in SQRW ( Windows ) environment, the file that has the image is in SPF format. The code used to print the image in Windows is as follows: declare-image signature Type=BMP-FILE Source='C:\Temp\ladyliberty.bmp' end-declare let #image_length = 8 let #image_height = 6 print 'Look at this picture: ' (+2,{midcol}) print-image signature (+2,{midcol}) image-size= (#image_length, #image_height) let #current_line_adj = #image_height +3 print 'Any Comments?' (+#current_line_adj,{midcol}) But when I am trying to use the same code to print the file to Docutech( Printer Name ) I dont get any image. The code for this is as follows: declare-image signature Type=GIF-FILE Source='/t02/app/psft/ladyliberty.gif/' end-declare OR declare-image signature Type=JPEG-FILE Source='/t02/app/psft/ladyliberty.jpg/' end-declare Ive tried GIF and JPG format and both doesnt work. The file that gets send to the Docutech printer is in .LIS format. Any Suggestions RK --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 1 15:53:13 2003 Date: Tue, 1 Apr 2003 12:51:59 -0800 (PST) From: Rehan Khan Subject: RE: [sqr-users] Image not appearing on Letters Thank you the jpg option worked with pdf file format. I am now going to try the same thing with .lis file. Take Care "Benzenhafer, Dave" wrote:For a PDF to pick up the image it has to be a JPEG. SPF files require a BMP. If you need it to show in both file types, you might try to declare both images and print them in the same location so that both file types can see them. Dave Benzenhafer -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, April 01, 2003 11:34 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Image not appearing on Letters I can only get my images to show up in SQRW too. If anyone comes up with a solution to get it to work on a SQR run thru the web (PDF) let me know. When I run it thru the web it shows up as a box with an X in it. :( -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Tuesday, April 01, 2003 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Image not appearing on Letters Hi, I am trying to get an image ( signature ) on the letters created by an SQR. It works great when I am testing in SQRW ( Windows ) environment, the file that has the image is in SPF format. The code used to print the image in Windows is as follows: declare-image signature Type=BMP-FILE Source='C:\Temp\ladyliberty.bmp' end-declare let #image_length = 8 let #image_height = 6 print 'Look at this picture: ' (+2,{midcol}) print-image signature (+2,{midcol}) image-size= (#image_length, #image_height) let #current_line_adj = #image_height +3 print 'Any Comments?' (+#current_line_adj,{midcol}) But when I am trying to use the same code to print the file to Docutech( Printer Name ) I dont get any image. The code for this is as follows: declare-image signature Type=GIF-FILE Source='/t02/app/psft/ladyliberty.gif/' end-declare OR declare-image signature Type=JPEG-FILE Source='/t02/app/psft/ladyliberty.jpg/' end-declare Ive tried GIF and JPG format and both doesnt work. The file that gets send to the Docutech printer is in .LIS format. Any Suggestions RK --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 1 12:27:48 2003 Date: Tue, 01 Apr 2003 12:30:16 -0500 From: "Robert K. Foster" Subject: RE: [sqr-users] SQR Coding guidelines I'm also using version 6.2.1. When I use the "Save As" command for a file like header.sqh it will save the file, but will save it as header.sqh.sqr, the .sqr extension is simply not displayed when using file explorer. Since all these files have to be run on a Solaris box eventually such a naming convention is a hassle. For instance, running the SQR report with the above header include will fail if I use #include header.sqh since the file is actually header.sqh.sqr. Bob. sqr-users-request@sqrug.org wrote: > Hi Bob, I'm using Report Builder 6.2.1 and it lets me use #include files > with any file extension I want. What version are you using? Report builder > can only add #include files to the sqr source, it won't create them. > Cheers, Steve. > === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 4 23:39:47 2003 Date: Sat, 05 Apr 2003 14:35:24 +1000 From: Steve Cavill Subject: RE: [sqr-users] SQR Coding guidelines Bob, you're quite right, that's what I meant when I said it can only add #include files to the sqr source, it won't create them. Saving always adds *.sqr. Yeah Brio should change it, but I doubt they will, Report Builder is not a high priority product. However, if you do use report builder to save the file, you can rename it in Windows explorer by displaying the full file names (uncheck the option in Windows explorer that says "hide file extensions for known file types). Save it in Report Builder as xxx.sqr, then rename it to xxx.sqh. A hassle yes, but it will get the job done. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Robert K. Foster Sent: Wednesday, 2 April 2003 3:30 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Coding guidelines I'm also using version 6.2.1. When I use the "Save As" command for a file like header.sqh it will save the file, but will save it as header.sqh.sqr, the .sqr extension is simply not displayed when using file explorer. Since all these files have to be run on a Solaris box eventually such a naming convention is a hassle. For instance, running the SQR report with the above header include will fail if I use #include header.sqh since the file is actually header.sqh.sqr. Bob. sqr-users-request@sqrug.org wrote: > Hi Bob, I'm using Report Builder 6.2.1 and it lets me use #include files > with any file extension I want. What version are you using? Report builder > can only add #include files to the sqr source, it won't create them. > Cheers, Steve. > === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.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-admin@sqrug.org Sat Apr 5 07:04:11 2003 From: "David Brawner" Subject: RE: [sqr-users] SQR Coding guidelines Date: Sat, 5 Apr 2003 07:01:20 -0500 open the .sqr in a text editor and "save as" anything you like... Actually I prefer to code in a text editor like TextPad anyway. I can easily run the report form within the editor for previews and have allot more control over the code. Dave -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Steve Cavill Sent: Friday, April 04, 2003 11:35 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Coding guidelines Bob, you're quite right, that's what I meant when I said it can only add #include files to the sqr source, it won't create them. Saving always adds *.sqr. Yeah Brio should change it, but I doubt they will, Report Builder is not a high priority product. However, if you do use report builder to save the file, you can rename it in Windows explorer by displaying the full file names (uncheck the option in Windows explorer that says "hide file extensions for known file types). Save it in Report Builder as xxx.sqr, then rename it to xxx.sqh. A hassle yes, but it will get the job done. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Robert K. Foster Sent: Wednesday, 2 April 2003 3:30 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Coding guidelines I'm also using version 6.2.1. When I use the "Save As" command for a file like header.sqh it will save the file, but will save it as header.sqh.sqr, the .sqr extension is simply not displayed when using file explorer. Since all these files have to be run on a Solaris box eventually such a naming convention is a hassle. For instance, running the SQR report with the above header include will fail if I use #include header.sqh since the file is actually header.sqh.sqr. Bob. sqr-users-request@sqrug.org wrote: > Hi Bob, I'm using Report Builder 6.2.1 and it lets me use #include files > with any file extension I want. What version are you using? Report builder > can only add #include files to the sqr source, it won't create them. > Cheers, Steve. > === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 1 13:43:14 2003 Date: Tue, 01 Apr 2003 13:29:48 -0500 From: Dan Vega Subject: [sqr-users] Wrapdepth Error Message Hi everyone, How is wrapdepth() working for you these days? It is driving me nuts. This statement produces the following error message: let #depth = wrapdepth($description, 44, 1, '', '') (SQR 3405) The value for 'wrapdepth width' (0) must be > 0. This statements works and gives the correct results: let #depth = wrapdepth($description, to_number(to_char(44)), to_number(to_char(1)), '', '') I'm sure you can imagine the amount of time I've wasted figuring this out. Has this happened to anyone else? I've seen a few references to this error message in sqr-users archive on sqrug.org, but nothing recent and nothing with a definitive solution. I tried *many* other combinations of variables, functions and expressions for the width and height arguments before I stumbled onto this work-around. Who can I bill for all this time?? I'm using SQR for PeopleSoft/8.41/PC/Windows NT 4.0/ODBC Level 2/Jun 25 2002, which is equivalent to V6.something, no? Thanks -- Dan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 2 10:47:09 2003 From: Scott.Munson@Metavante.com Date: Wed, 2 Apr 2003 09:45:29 -0600 Subject: [sqr-users] Examples of Delivered SQR Reports Location I know PeopleSoft has zip files containing examples of delivered reports but I can't seem to find them in any of the directories. Does anyone know the location? I found them last year, but have a terrible memory. For example, I know one of the file names is 'fglrcom800.zip' and contains GL report outputs. Thanks, Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 2 10:55:07 2003 Date: Wed, 02 Apr 2003 09:51:39 -0500 From: "Arnold Foelster" Subject: Re: [sqr-users] Examples of Delivered SQR Reports Location there in the peoplebooks directories Scott.Munson@Metavante.com wrote: > > I know PeopleSoft has zip files containing examples of delivered reports > but I can't seem to find them in any of the directories. Does anyone know > the location? I found them last year, but have a terrible memory. > > For example, I know one of the file names is 'fglrcom800.zip' and contains > GL report outputs. > > Thanks, > > Scott Munson > PeopleSoft Billing Team > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Wed Apr 2 11:05:05 2003 Date: Wed, 2 Apr 2003 18:04:05 +0200 (CEST) From: =?iso-8859-1?q?Christophe=20CHOUX?= Subject: Re: [sqr-users] Examples of Delivered SQR Reports Location in which version of PS are you ? Scott.Munson@Metavante.com wrote:I know PeopleSoft has zip files containing examples of delivered reports but I can't seem to find them in any of the directories. Does anyone know the location? I found them last year, but have a terrible memory. For example, I know one of the file names is 'fglrcom800.zip' and contains GL report outputs. Thanks, Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 2 11:30:10 2003 From: Scott.Munson@Metavante.com Date: Wed, 2 Apr 2003 10:30:41 -0600 Subject: [sqr-users] Re: Examples of Delivered SQR Reports Location Found them in PeopleBooks. They were PDF files, not ZIP. Thanks for the help. Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 2 13:40:14 2003 From: "Jacqueline Smith" Date: Wed, 2 Apr 2003 13:37:03 -0500 Subject: [sqr-users] SQR-HELP HELLO ANYONE: Could you please tell me how to go about creating an array for a flat file that contains has repeating fields on a single record that has to be updated into one field on the database? Thanks for your help. Jacquelin Smith Telephone 631-4545 Code IH PeopleSoft ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 2 15:08:04 2003 From: "M S Bugge" Subject: Re: [sqr-users] SQR-HELP Date: Wed, 2 Apr 2003 15:06:24 -0500 Every time you read the flatfile call this array and here it goes. Create-Array NAME=Budget_Array SIZE=1 FIELD=period:number:15 begin-procedure Load-Array let #period = #period1 put #period Into Budget_Array (0) period (1) let #period = #period2 put #period Into Budget_Array (0) period (2) let #period = #period3 put #period Into Budget_Array (0) period (3) let #period = #period4 put #period Into Budget_Array (0) period (4) let #period = #period5 put #period Into Budget_Array (0) period (5) let #period = #period6 put #period Into Budget_Array (0) period (6) let #period = #period7 put #period Into Budget_Array (0) period (7) let #period = #period8 put #period Into Budget_Array (0) period (8) let #period = #period9 put #period Into Budget_Array (0) period (9) let #period = #period10 put #period Into Budget_Array (0) period (10) let #period = #period11 put #period Into Budget_Array (0) period (11) let #period = #period12 put #period Into Budget_Array (0) period (12) let #period = #period13 put #period Into Budget_Array (0) period (13) let #period = #period14 put #period Into Budget_Array (0) period (14) end-procedure Thanks Bugge ----- Original Message ----- From: "Jacqueline Smith" To: Sent: Wednesday, April 02, 2003 1:37 PM Subject: [sqr-users] SQR-HELP > > HELLO ANYONE: > > Could you please tell me how to go about creating an array for a > flat file that contains has repeating fields on a single record that has to > be updated into one field on the database? Thanks for your help. > > > Jacquelin Smith > Telephone 631-4545 > Code IH PeopleSoft > > > > > ***************************defiant************************************ > This email and any files transmitted with it are intended solely for > the use of the individual or agency to whom they are addressed. If > you have received this email in error please notify the Navy Exchange > Service Command e-mail administrator. > > This footnote also confirms that this email message has been scanned > for the presence of computer viruses. > > messaging_support_team@nexnet.navy.mil > ********************************************************************** > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Fri Apr 4 02:34:36 2003 From: "jessdb" Date: Fri, 04 Apr 2003 15:20:17 +0800 Subject: [sqr-users] print date - date-format Hello... Good day. Every time I run my report which has the format below, the output also shows time. Connected using 'SQR ODBC for Oracle' Oracle 73... Win98. What should I do? I want to print an output like this 'dd-Mon-yyyy'. Please help. to_date(to_char(inventory.lastissuedate,'dd-mon-yyyy'),'DD-MON-YYYY') &lastissue [output] Nov 19 1999 12:00AM Thanks, Jess ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 4 06:58:11 2003 From: "David Brawner" Subject: RE: [sqr-users] print date - date-format Date: Fri, 4 Apr 2003 06:54:52 -0500 Is your date stored in a character field, or a date field. Your code converts a date to a character then back to a date??? Why not just, datetostr(inventory.lastissuedate, 'dd-Mon-yyyy') &lastissue It also seems like your mixing syntax from PL/SQL. I didn't know SQR had a "to_date" function. Dave -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of jessdb Sent: Friday, April 04, 2003 2:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] print date - date-format Hello... Good day. Every time I run my report which has the format below, the output also shows time. Connected using 'SQR ODBC for Oracle' Oracle 73... Win98. What should I do? I want to print an output like this 'dd-Mon-yyyy'. Please help. to_date(to_char(inventory.lastissuedate,'dd-mon-yyyy'),'DD-MON-YYYY') &lastissue [output] Nov 19 1999 12:00AM Thanks, Jess ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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-admin@sqrug.org Fri Apr 4 09:00:47 2003 Subject: RE: [sqr-users] print date - date-format Date: Fri, 4 Apr 2003 07:58:02 -0600 From: "Thornton, Robert" It looks like your date setting in the report is set to 'Mon DD YYYY HH:MIAM' either reset that variable as below: begin-sql alter session set nls_date_format = 'DD-Mon-YYYY' end-sql Or put an edit mask on the output as below: inventory.lastissuedate &lastissue edit 'DD-MON-YYYY' hope that helps Rob -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of David Brawner Sent: Friday, April 04, 2003 5:55 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] print date - date-format Is your date stored in a character field, or a date field. Your code converts a date to a character then back to a date??? Why not just, datetostr(inventory.lastissuedate, 'dd-Mon-yyyy') &lastissue It also seems like your mixing syntax from PL/SQL. I didn't know SQR had a "to_date" function. Dave -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of jessdb Sent: Friday, April 04, 2003 2:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] print date - date-format Hello... Good day. Every time I run my report which has the format below, the output also shows time. Connected using 'SQR ODBC for Oracle' Oracle 73... Win98. What should I do? I want to print an output like this 'dd-Mon-yyyy'. Please help. to_date(to_char(inventory.lastissuedate,'dd-mon-yyyy'),'DD-MON-YYYY') &lastissue [output] Nov 19 1999 12:00AM Thanks, Jess ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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-admin@sqrug.org Fri Apr 4 09:06:06 2003 Date: Fri, 4 Apr 2003 09:05:17 -0500 From: "White, Denise" Subject: [sqr-users] RE: print date - date-format Hi Jess, Try: to_char(inventory.lastissuedate,'dd-mon-yyyy') &lastissue By nesting the functions, you are first converting the date into the format you want (to_char), but then you are converting it back into its original date format (to_date). Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 1 From: "jessdb" To: sqr-users@sqrug.org Date: Fri, 04 Apr 2003 15:20:17 +0800 Subject: [sqr-users] print date - date-format Reply-To: sqr-users@sqrug.org Hello... Good day. Every time I run my report which has the format below, the output also shows time. Connected using 'SQR ODBC for Oracle' Oracle 73... Win98. What should I do? I want to print an output like this 'dd-Mon-yyyy'. Please help. to_date(to_char(inventory.lastissuedate,'dd-mon-yyyy'),'DD-MON-YYYY') &lastissue [output] Nov 19 1999 12:00AM Thanks, Jess _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 4 15:55:23 2003 Date: Fri, 4 Apr 2003 12:53:22 -0800 (PST) From: D Patel Subject: [sqr-users] Pie-Chart Help Hi All, I am trying to generate Pie-Chart in one off my report. Business requirement is Pie-Chart should start with 12 o'Clock position, whereas in SQR reports by default Pie-chart starts with 3 o'clock position. I tried to search in archived messages, but I couldn't. Thanks in advance, D Patel __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 4 17:38:12 2003 Date: Fri, 4 Apr 2003 14:37:00 -0800 (PST) From: D Patel Subject: [sqr-users] Pie-Chart Help: More Hi All, I am trying to generate Pie-Chart in one off my report. Business requirement is Pie-Chart should start with 12 o'Clock position, whereas in SQR reports by default Pie-chart starts with 3 o'clock position. I tried to search in archived messages, but I couldn't. Another thing I have to display pre-defined colors in the pie-chart sections. I tried this using Create-Color-Palette Name='LocalChartColor' Color_1=('blue') Color_2=('orange') Color_3=('black') Color_4=(255,128,0) Color_5=(0,0,255) Color_6=(0,255,128) Color_7=(255,128,0) Color_8=(0,0,255) Color_9=(0,255,128) and used the same in Print-Chart: Color-Palette='LocalChartColor' I couldn't find any difference. Please point me, where am I doing mistake? Thanks in advance, D Patel __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 7 06:48:36 2003 From: "Robin Ferebee" Date: Mon, 7 Apr 2003 07:36:52 -0400 Subject: [sqr-users] help Good morning. I am attempting to delete a row on a level 1 scroll. I begin by referencing my level 0 scroll and traversing down. When I identify the row, I call the DeleteRow function. All the data is removed except for the two date fields which are on two different tabs. When I query the database all the data is removed except for the emplid and the dates. I have customized the Purge Date field to clear all fields for that row when a Purge Date is entered. [Administer Workforce ==>Manage Labor Relations(GBL) ==>Use ==>Disciplinary Action ] I am including some of the code I created to try and delete the row automatically. For &J = 1 To &LINE_ROWSET.RowCount &LINE_REC = &LINE_ROWSET(&J).DISCIPLIN_ACTN; &LINE_SUM = &LINE_REC.DISCIPLINARY_TYPE.Value; If &LINE_SUM = " " Then DeleteRow(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J); &G_CLEAR = "N"; If RecordDeleted(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J) Then WinMessage(MsgGet(20000, 203, "A row has been deleted.")); End-If; End-If; End-For; Thanks. Robin S. Ferebee PeopleSoft Group Navy Exchange Service Command (757) 631-3347 ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 7 06:58:13 2003 Date: Mon, 07 Apr 2003 07:56:49 -0400 From: "Larry Roux" Subject: Re: [sqr-users] help The SQR Users group is probably not the best place for this as not all SQR users are PeopleSoft users. However, you might want to check the field defaults and PeopleCode to see if those fields have default values that are repopulating the data. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Robin_Ferebee@nexnet.navy.mil 04/07/03 07:52 AM >>> Good morning. I am attempting to delete a row on a level 1 scroll. I begin by referencing my level 0 scroll and traversing down. When I identify the row, I call the DeleteRow function. All the data is removed except for the two date fields which are on two different tabs. When I query the database all the data is removed except for the emplid and the dates. I have customized the Purge Date field to clear all fields for that row when a Purge Date is entered. [Administer Workforce ==>Manage Labor Relations(GBL) ==>Use ==>Disciplinary Action ] I am including some of the code I created to try and delete the row automatically. For &J = 1 To &LINE_ROWSET.RowCount &LINE_REC = &LINE_ROWSET(&J).DISCIPLIN_ACTN; &LINE_SUM = &LINE_REC.DISCIPLINARY_TYPE.Value; If &LINE_SUM = " " Then DeleteRow(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J); &G_CLEAR = "N"; If RecordDeleted(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J) Then WinMessage(MsgGet(20000, 203, "A row has been deleted.")); End-If; End-If; End-For; Thanks. Robin S. Ferebee PeopleSoft Group Navy Exchange Service Command (757) 631-3347 ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 7 10:44:25 2003 From: Nathan Stratton Treadway Date: Mon, 7 Apr 2003 10:42:12 -0500 Subject: [sqr-users] Re: help -- PeopleCode record deletion On Mon, Apr 07, 2003 at 07:36:52AM -0400, Robin Ferebee wrote: > Good morning. I am attempting to delete a row on a level 1 scroll. I > begin by referencing my level 0 scroll and traversing down. When I > identify the row, I call the DeleteRow function. All the data is removed > except for the two date fields which are on two different tabs. When I > query the database all the data is removed except for the emplid and the > dates. I have customized the Purge Date field to clear all fields for that > row when a Purge Date is entered. This question is specific to PeopleCode, not SQR. You'll probably have better luck if you ask it on a PeopleSoft-specific list, e.g. http://groups.yahoo.com/group/peoplesoft-fans/ Good luck. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | nathanst@ontko.com | Mid-Atlantic region Software consulting services | Ray Ontko & Co. | http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 7 13:33:22 2003 From: "Turner, Ivan" Subject: RE: [sqr-users] help Date: Mon, 7 Apr 2003 12:32:00 -0600 Robin, Do the fields default? -----Original Message----- From: Larry Roux [mailto:lroux@syr.edu] Sent: Monday, April 07, 2003 7:57 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] help The SQR Users group is probably not the best place for this as not all SQR users are PeopleSoft users. However, you might want to check the field defaults and PeopleCode to see if those fields have default values that are repopulating the data. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Robin_Ferebee@nexnet.navy.mil 04/07/03 07:52 AM >>> Good morning. I am attempting to delete a row on a level 1 scroll. I begin by referencing my level 0 scroll and traversing down. When I identify the row, I call the DeleteRow function. All the data is removed except for the two date fields which are on two different tabs. When I query the database all the data is removed except for the emplid and the dates. I have customized the Purge Date field to clear all fields for that row when a Purge Date is entered. [Administer Workforce ==>Manage Labor Relations(GBL) ==>Use ==>Disciplinary Action ] I am including some of the code I created to try and delete the row automatically. For &J = 1 To &LINE_ROWSET.RowCount &LINE_REC = &LINE_ROWSET(&J).DISCIPLIN_ACTN; &LINE_SUM = &LINE_REC.DISCIPLINARY_TYPE.Value; If &LINE_SUM = " " Then DeleteRow(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J); &G_CLEAR = "N"; If RecordDeleted(Record.DISCIPLIN_ACTN, 1, Record.DISCIPLIN_STEP, &J) Then WinMessage(MsgGet(20000, 203, "A row has been deleted.")); End-If; End-If; End-For; Thanks. Robin S. Ferebee PeopleSoft Group Navy Exchange Service Command (757) 631-3347 ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 7 14:40:10 2003 Date: Mon, 7 Apr 2003 12:37:55 -0700 (PDT) From: D Patel Subject: [sqr-users] Pie-Chart Help [Second attempt] Hi All, Thanks in advance. I am trying to generate Pie-Chart in one off my report. Business requirement is Pie-Chart should start with 12 o'Clock position, whereas in SQR reports by default Pie-chart starts with 3 o'clock position. I tried to search in archived messages, but I couldn't. Wheather this is possible or not? If yes how can I change that? Another thing I have to display pre-defined colors in the pie-chart sections. I tried this using Create-Color-Palette Name='LocalChartColor' Color_1=('blue') Color_2=('orange') Color_3=('black') Color_4=(255,128,0) Color_5=(0,0,255) Color_6=(0,255,128) Color_7=(255,128,0) Color_8=(0,0,255) Color_9=(0,255,128) and used the same in Print-Chart: Color-Palette='LocalChartColor' I couldn't find any difference. Please point me, where am I doing mistake? Thanks in advance, D Patel __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 01:54:10 2003 Date: Tue, 8 Apr 2003 16:52:06 +1000 From: "Devinder Singh Kunwar (STP)" Subject: [sqr-users] SQR problem Hi, I am facing a problem with load look up. While retrieving values from the Lookup table i encountered problems due to division of 1 by 13251 . When the division occurs resultant is 0.000075466002565844087238698966115764847936. The first character variable used (printing, display etc) after the division is getting initialized with the value 7936. If a show 'HELP' is given after the Lookup command , the job on running doesn't show "HELP" but shows 7936. This could be due to some memory leakage. *** This problem is occurring when Oracle8 Enterprise Edition Release 8.0.5.2.2 SQR Version - 4.3.4 HP-UX Release - 10.20 *** The same thing works fine for Oracle8 Enterprise Edition Release 8.0.6.0.0 SQR Version - 4.3.4 HP-UX Release - 11.00 Could anyone please help. Regards, Devinder ---------------------------------------------------------------------------------------------------------------------- This e-mail and any attachments to it (the "Communication") is confidential and is for the use only of the intended recipient. The Communication may contain copyright material of Australia and New Zealand Banking Group Limited ABN 11 005 357 522 ("ANZ"), of any of its related entities or of third parties. If you are not the intended recipient of the Communication, please notify the sender immediately by return e-mail, delete the Communication, and do not read, copy, print, retransmit, store or act in reliance on the Communication. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of ANZ. ANZ does not guarantee the integrity of the Communication, or that it is free from errors, viruses or interference. ------------------------------------------------------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 04:50:19 2003 From: "Steve Cavill" Subject: RE: [sqr-users] SQR problem Date: Tue, 8 Apr 2003 19:47:55 +1000 Hi Devinder, That looks very odd. As it only occurs in one specific version it is probably a bug. The first thing I would try would be to relink the SQR executable, as per the installation instructions which should be on the CD. What did Brio technical support say? Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Devinder Singh Kunwar (STP) Sent: Tuesday, 8 April 2003 4:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR problem Importance: High Hi, I am facing a problem with load look up. While retrieving values from the Lookup table i encountered problems due to division of 1 by 13251 . When the division occurs resultant is 0.000075466002565844087238698966115764847936. The first character variable used (printing, display etc) after the division is getting initialized with the value 7936. If a show 'HELP' is given after the Lookup command , the job on running doesn't show "HELP" but shows 7936. This could be due to some memory leakage. *** This problem is occurring when Oracle8 Enterprise Edition Release 8.0.5.2.2 SQR Version - 4.3.4 HP-UX Release - 10.20 *** The same thing works fine for Oracle8 Enterprise Edition Release 8.0.6.0.0 SQR Version - 4.3.4 HP-UX Release - 11.00 Could anyone please help. Regards, Devinder ---------------------------------------------------------------------------- ------------------------------------------ This e-mail and any attachments to it (the "Communication") is confidential and is for the use only of the intended recipient. The Communication may contain copyright material of Australia and New Zealand Banking Group Limited ABN 11 005 357 522 ("ANZ"), of any of its related entities or of third parties. If you are not the intended recipient of the Communication, please notify the sender immediately by return e-mail, delete the Communication, and do not read, copy, print, retransmit, store or act in reliance on the Communication. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of ANZ. ANZ does not guarantee the integrity of the Communication, or that it is free from errors, viruses or interference. ---------------------------------------------------------------------------- -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 07:23:29 2003 From: "Robin Ferebee" Date: Tue, 8 Apr 2003 08:20:14 -0400 Subject: [sqr-users] (no subject) Yes the date fields do default to the system date. Thanks. Robin S. Ferebee PeopleSoft Group Navy Exchange Service Command (757) 631-3347 ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 09:58:12 2003 From: "Ben Anderson" Date: Tue, 08 Apr 2003 10:57:19 -0400 Subject: [sqr-users] round I want to either do integer divide or round: let #i = 8/7 !I want this to be 1 let #i = 7/7 !I want this to be 1 let #i = 6/7 !I want this to be 0 I've been getting the decimal values and I want the integer. If I need to put steps in between, that's fine. Thanks, Ben Anderson _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 10:05:07 2003 From: Bill Beckner Subject: RE: [sqr-users] round Date: Tue, 8 Apr 2003 10:04:35 -0500 You could use the "trunc" function. For example: let i = trunc(8/7, 0) -----Original Message----- From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] Sent: Tuesday, April 08, 2003 9:57 AM To: sqr-users@sqrug.org Subject: [sqr-users] round I want to either do integer divide or round: let #i = 8/7 !I want this to be 1 let #i = 7/7 !I want this to be 1 let #i = 6/7 !I want this to be 0 I've been getting the decimal values and I want the integer. If I need to put steps in between, that's fine. Thanks, Ben Anderson _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 10:08:05 2003 Subject: Re: [sqr-users] round From: Rick_Creel@aoncons.com Date: Tue, 8 Apr 2003 11:07:15 -0400 If you declare the #i variable to be an integer, it should work. Here is some test code I ran: !************************************ begin-setup declare-variable integer #num_value end-declare end-setup begin-program let #num_value = 8 / 7 show '8 / 7 = ' #num_value let #num_value = 7 / 7 show '7 / 7 = ' #num_value let #num_value = 6 / 7 show '6 / 7 = ' #num_value end-program !************************************ The results were: 8 / 7 = 1 7 / 7 = 1 6 / 7 = 0 SQR: End of Run. "Ben Anderson" cc: Sent by: Subject: [sqr-users] round sqr-users-admin@s qrug.org 04/08/2003 10:57 AM Please respond to sqr-users I want to either do integer divide or round: let #i = 8/7 !I want this to be 1 let #i = 7/7 !I want this to be 1 let #i = 6/7 !I want this to be 0 I've been getting the decimal values and I want the integer. If I need to put steps in between, that's fine. Thanks, Ben Anderson _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 11:17:25 2003 From: "Hood Louise (app1lxh)" Date: Tue, 8 Apr 2003 12:14:49 -0400 Subject: [sqr-users] TEMPORARY TABLES Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 11:33:07 2003 Date: Tue, 08 Apr 2003 12:31:39 -0400 From: "George Jansen" Subject: Re: [sqr-users] TEMPORARY TABLES GLOBAL TEMPORARY tables should work fine; however you should know that a. "GLOBAL" is something of a misnomer; they exist, like other objects, within schemas. You can, however, create public synonyms for them. b. The default for Oracle's GTTs is "ON COMMIT DELETE ROWS", which means that if along the way you happen to commit a transaction you've emptied the table. You must specify "ON COMMIT PRESERVE ROWS" if the data is to persist through transactions. c. One session cannot see another's information in such a table. Doesn't matter whether the username is the same or not, it just can't see it, which is what you want. d. The data goes away when the session ends, which is also what you want. e. You can't use them in distributed transactions. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 11:36:05 2003 Subject: RE: [sqr-users] TEMPORARY TABLES Date: Tue, 8 Apr 2003 10:32:11 -0600 From: "Torres, Jennifer" Louise, We have handled this in a couple of ways: 1- We create unique temporary tables for each execution of the sqr. For example the table is appended with unique value such as username or date/time. The table name is then created in the sqr and referenced with [$table_name] in sql statements. 2- We have used one temporary table for all sqr user executions. Enabled by adding columns to the table to identify the unique users (ie USERNAME). Sql statements then use the USERNAME to reference only rows related to that specific sqr execution. Hope that helps. -----Original Message----- From: Hood Louise (app1lxh) [mailto:app1lxh@ups.com] Sent: Tuesday, April 08, 2003 10:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] TEMPORARY TABLES Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 11:52:09 2003 Date: Tue, 08 Apr 2003 11:51:22 -0500 From: "Lock, Edward J" Subject: RE: [sqr-users] TEMPORARY TABLES This works in Oracle 8i: !test sql----------------------------------- CREATE global temporary TABLE test2 (ord_id NUMBER(3), ord_date DATE, cust_code VARCHAR2(3), date_of_delay DATE) !------------------------------------------- By default, it puts it in the system tablespace, but this can be changed. --Edward Lock -----Original Message----- From: Hood Louise (app1lxh) [mailto:app1lxh@ups.com] Sent: Tuesday, April 08, 2003 11:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] TEMPORARY TABLES Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 12:26:14 2003 Subject: Re: [sqr-users] TEMPORARY TABLES From: "Jerry Coleman" Date: Tue, 8 Apr 2003 13:25:42 -0400 I assume this is a PeopleSoft app, right? Consider adding a column containing $prcs_process_instance to the table, then delete rows pertaining to the process instance at the end of the SQR. |---------+----------------------------> | | "Hood Louise | | | (app1lxh)" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 04/08/03 12:14 PM| | | Please respond to| | | sqr-users | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] TEMPORARY TABLES | >--------------------------------------------------------------------------------------------------------------| Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 8 12:53:14 2003 Date: Tue, 08 Apr 2003 13:52:29 -0400 From: Christine Sessler Subject: Re: [sqr-users] TEMPORARY TABLES Louise - Been there, struggled with that as we moved from Informix (temp tables on the fly) to Oracle. Our process is working pretty well for us. The one thing that we have found is that you must remember that if you change the temp table structure, the SQR will NOT auto-build it if it already exists. In DEV, we've gotten around this by putting a DROP TABLE statement into the SQR. Also, as you migrate your SQRs through instances and build new instances, check to see if those temp tables already exist. I'd suggest dropping them as you move from instance to instance. This was made easier for us by our naming convention. Here's what we did (a snippit of our whys and how tos). Using Temp Tables in SQRs in Oracle In the Oracle environment, temporary table structures do not automatically disappear, but the data does. The approach to addressing this need will be to create the temporary table within the SQR, but only if the table does not already exist. The following outlines the steps for remediation and maintenance of temporary table usage in Oracle. Because the structure of the table will continue to exist after the program completes processing, names of all temporary tables must begin with CU_GT_(program name)_(table name) to allow easy recognition of them. Ensure that all temporary table creations are performed in the BEGIN-SETUP procedure. Only execute the CREATE statement if the temporary table does not exist, by checking for its existence in the ALL_TABLES table and executing the CREATE statement only if it does not. In CREATE statements use the GLOBAL TEMPORARY syntax with the ON COMMIT PRESERVE ROWS (to handle programs that may perform intermittent commits) clause. Indexes must be created on temporary tables while they are empty; therefore, CREATE INDEX statements must be executed right after the CREATE table statement within the conditional statement. Begin-Setup Begin-SQL DECLARE t_count NUMBER;; BEGIN SELECT count(*) INTO t_count FROM all_tables WHERE table_name = 'CU_GT_PAY604CU_FUT_PAY_CAL';; if t_count = 0 THEN EXECUTE IMMEDIATE CREATE GLOBAL TEMPORARY TABLE CU_GT_PAY604CU_FUT_PAY_CAL (fpc_company char(3), fpc_paygroup char(3), fpc_pay_end_dt char(11), fpc_pay_begin_dt char(11), fpc_working_days number) ON COMMIT PRESERVE ROWS;; EXECUTE IMMEDIATE CREATE INDEX &;; END IF;; END;; End-SQL End-Setup Maintenance Because the structure of a temporary table will continue to exist after the program completes processing, changes to the structure will require a request to the DBAs to drop the table before you can run the changed program. Work Units created to migrate program changes that include temporary table structure changes must include a SQL file containing any DROP statements for the changed temporary tables. Let me know if you have any questions, Chris At 12:14 PM 4/8/2003 -0400, you wrote: >Hi All, > >Has anyone had any experience (or luck) with creating temporary tables that >are unique for each user running a report? I have an sqr in which a >temporary table is created in the setup section. Within the program, >calculations are performed and results stored in the table for later >selection and manipulation. The sqr works fine as long as someone else >doesn't try to generate the report while another user has already kicked the >program off (the table is already in use and not accessible since it doesn't >have a unique name). > >We are using Oracle 8i and sqr 6.0. > >I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY >TABLE, which I also tried without success. It was referred to in a response >for DB2 environment, so maybe Oracle doesn't recognize this? > >There is virtually nothing in the SQR reference manuals and user guide re: >temp tables, so if anyone has been there before and conquered this problem, >I'd appreciate your input. > >Thanks, >Louise > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ Christine Sessler Cornell University CIT/Business Information Systems 120 Maple Avenue Ithaca, NY 14850 607.255.8149 - Office 607.255.6982 - Fax cms41@cornell.edu ************************************************************ "If a dog jumps in your lap, it is because he is fond of you; but if a cat does the same thing, it is because your lap is warmer." - Alfred North Whitehead "The only normal people are the ones you don't know very well." - Joe Ancis _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 8 22:52:11 2003 From: Harish_Venkiteswaran@Satyam.com Subject: RE: [sqr-users] TEMPORARY TABLES Date: Wed, 9 Apr 2003 09:16:33 +0530 Hi, Estending what Torres wrote. I presume you are working in peoplesoft Database. You need to create a table which has a process instance and oprid as a key.That way you could get the data based on that particular instance and the oprid that has run the report.Consider the scenarios that 2 user are running the report. Table1 Oprid-Key Process Instance-Key Key1-Key Nonkey1 When 1st user runs the report.The oprid would be updated as User1 and Process Instance - Current Process Instance for that report When 2nd user runs the report .The oprid would be updated as User2 and Process Instance - Current Process Instance for that report. You can code the select for the temporary table as SELECT KEY1,NONKEY1 FROM TABLE1 WHERE OPRID=$USER AND PROCESS_INSTANCE=$PRCSINSTANCE Using a single table you can segregate the data relevant for each user. Regards Harish > --Original Message----- > From: Hood Louise (app1lxh) [SMTP:app1lxh@ups.com] > Sent: Tuesday, April 08, 2003 9:45 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] TEMPORARY TABLES > > Hi All, > > Has anyone had any experience (or luck) with creating temporary tables > that > are unique for each user running a report? I have an sqr in which a > temporary table is created in the setup section. Within the program, > calculations are performed and results stored in the table for later > selection and manipulation. The sqr works fine as long as someone else > doesn't try to generate the report while another user has already kicked > the > program off (the table is already in use and not accessible since it > doesn't > have a unique name). > > We are using Oracle 8i and sqr 6.0. > > I searched the sqrug archives, finding references to CREATE GLOBAL > TEMPORARY > TABLE, which I also tried without success. It was referred to in a > response > for DB2 environment, so maybe Oracle doesn't recognize this? > > There is virtually nothing in the SQR reference manuals and user guide re: > temp tables, so if anyone has been there before and conquered this > problem, > I'd appreciate your input. > > Thanks, > Louise > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 9 07:39:10 2003 From: Ray Ontko Date: Wed, 9 Apr 2003 07:38:34 -0500 Subject: [sqr-users] mail loop fixed SQR Users, I modified the user subscription that was causing the e-mail loop this morning. It was caused by an out-of-office auto-reply message that was reponding to its own acknowledgements. Some hints for those of you who ever think about using some sort of Vacation/Out Of Office program -- you should make sure that: 1) It only sends _one_ "on vacation" note back to a given address. Obviously, if this rule is not followed, Bad Things(tm) happen on mailing lists -- and even for more private communication getting more than one "on vacation" note can be irritating to people who are e-mailing you while you are away. 2) It does not send notes in response to "bulk" messages. The sqr-users list (and most other mailing lists) always sends messages with a "Precedence: bulk" header line. A good Vacation program will notice this and avoid sending a response, thus preventing your vacation schedule from being distributed to everyone on the mailing list (as well as being posted on the web in the list archives...). Check with your mail administrator to make sure that you system's Vacation progrom follows these guidelines, and everyone will be a lot happier :) Ray ---------------------------------------------------------------------- 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-admin@sqrug.org Wed Apr 9 07:44:15 2003 From: "Mezzullo, Paul" Date: Wed, 9 Apr 2003 08:48:51 -0400 Subject: [sqr-users] excellent Thanks Ray ... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 9 16:05:27 2003 Date: Wed, 9 Apr 2003 16:19:45 -0400 From: "White, Denise" Subject: [sqr-users] RE: TEMPORARY TABLES Hi Louise, I have encountered the same problem with multiple users running the same job and having conflicts. To create a unique name for the temporary table, I appended the $prcs_process_instance to the end of the table name, making it dynamic. However, I found that after I did this, I could not create the table in the BEGIN-SETUP procedure, where I had always created temp tables before. I had to create a regular procedure, in which I did the usual drop and then create. Of course, because it was not in BEGIN-SETUP, I couldn't use the special ON-ERROR options (I usually use WARN for the drop), so I had to use my regular ON-ERROR procedure. I also found that using a dynamic table name caused a few other glitches, such as having to qualify numeric columns when selecting from it (ex. "t.amt &t.amt=number"). I can't remember all the specific glitches, so it may take a bit of trial and error on your part. The only real problem to this approach is that every table name is unique, so if there is an abnormal stop to the program, it will not get dropped next time it is run (so I guess that initial drop before the create is really unnecessary). We are on 4.3.4, so this is all assuming that this will still work the same for you. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 5 From: "Hood Louise (app1lxh)" To: sqr-users@sqrug.org Date: Tue, 8 Apr 2003 12:14:49 -0400 Subject: [sqr-users] TEMPORARY TABLES Reply-To: sqr-users@sqrug.org Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 10 07:38:04 2003 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] RE: TEMPORARY TABLES Date: Wed, 9 Apr 2003 18:06:07 -0400 Denise, Thanks--you've affirmed what I've found out since yesterday (like you said: through trial and error). Thanks to everyone for their suggestions and work-arounds!! What worked for us is getting the create table out of begin-setup (like you described). Now the create table is in the begin-program code stream: begin-program do GetParameters let $currdttm = datetostr(datenow(),'MMDDYYYYHHMISS') DISPLAY '$currdttm = ' NOLINE DISPLAY $currdttm let $TMPTBL = 'SPCRPT'||$userid||$currdttm DISPLAY '$TMPTBL = ' NOLINE DISPLAY $TMPTBL begin-SQL create table [$TMPTBL] (SORT_SVCPVR_NA CHAR(35) NOT NULL, SORT_SVCPVR VARCHAR(10) NOT NULL, SORT_QTR_BEGIN INTEGER NOT NULL, SORT_YTD_REV_PCT DECIMAL(4,1) NOT NULL); end-SQL . . . . end-program Another thing that I found out is that since the table is not in the begin-setup, you can't do DROP TABLE before CREATE TABLE or you get the nasty error message: (SQR 5528) ORACLE OCIStmtExecute error 942 in cursor 1: ORA-00942: table or view does not exist Error on line 149: (SQR 3735) Could not execute SQL. SQR: Program Aborting. (Line 149 in this case is the begin-sql right before DROP TABLE.) Something else that made me think the dynamic name wouldn't work is that I made the unfortunate choice of creating a table name stringing datenow('MMDDYYYYHHMISS') with _TBL. ORACLE apparently does not accept table names beginning with a number. When I created the string as shown in the above code, it works fine. Also, planning for potential interruptions in the SQR processing, the tables get prefixed with SPCRPT. A cleanup script will be run periodically to purge any tables beginning with SPCRPT that get left behind due to the report not completing for whatever reason. The only other problem we encountered was that the PDF file being created did not have a unique name. When we stress tested the SQR and everyone was trying to grab the same PDF file there was an SQR error condition. This was eliminated by prefixing the PDF filename with the $userid, which should virtually remove contention for the same file. Thanks again to the group for all suggestions! Louise -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Wednesday, April 09, 2003 4:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: TEMPORARY TABLES Hi Louise, I have encountered the same problem with multiple users running the same job and having conflicts. To create a unique name for the temporary table, I appended the $prcs_process_instance to the end of the table name, making it dynamic. However, I found that after I did this, I could not create the table in the BEGIN-SETUP procedure, where I had always created temp tables before. I had to create a regular procedure, in which I did the usual drop and then create. Of course, because it was not in BEGIN-SETUP, I couldn't use the special ON-ERROR options (I usually use WARN for the drop), so I had to use my regular ON-ERROR procedure. I also found that using a dynamic table name caused a few other glitches, such as having to qualify numeric columns when selecting from it (ex. "t.amt &t.amt=number"). I can't remember all the specific glitches, so it may take a bit of trial and error on your part. The only real problem to this approach is that every table name is unique, so ! if there is an abnormal stop to the program, it will not get dropped next time it is run (so I guess that initial drop before the create is really unnecessary). We are on 4.3.4, so this is all assuming that this will still work the same for you. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 5 From: "Hood Louise (app1lxh)" To: sqr-users@sqrug.org Date: Tue, 8 Apr 2003 12:14:49 -0400 Subject: [sqr-users] TEMPORARY TABLES Reply-To: sqr-users@sqrug.org Hi All, Has anyone had any experience (or luck) with creating temporary tables that are unique for each user running a report? I have an sqr in which a temporary table is created in the setup section. Within the program, calculations are performed and results stored in the table for later selection and manipulation. The sqr works fine as long as someone else doesn't try to generate the report while another user has already kicked the program off (the table is already in use and not accessible since it doesn't have a unique name). We are using Oracle 8i and sqr 6.0. I searched the sqrug archives, finding references to CREATE GLOBAL TEMPORARY TABLE, which I also tried without success. It was referred to in a response for DB2 environment, so maybe Oracle doesn't recognize this? There is virtually nothing in the SQR reference manuals and user guide re: temp tables, so if anyone has been there before and conquered this problem, I'd appreciate your input. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 10 17:35:30 2003 From: Scott.Munson@Metavante.com Date: Thu, 10 Apr 2003 14:13:42 -0500 Subject: [sqr-users] Page # of # Example Is there an SQC or some standard procedure that can print out "Page # of #"? Currently, all of the reports we have come across only print the current page but the user desires to see the total number of pages, in addition to the current page. Thanks, Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 10 23:00:28 2003 Subject: RE: [sqr-users] Page # of # Example Date: Fri, 11 Apr 2003 13:57:45 +1000 From: "Devinder Singh Kunwar (STP)" Scott, Using "LAST-PAGE" will help. It causes SQR and SQRT to delay printing until the last page has been processed so that the number of the last page is known. Though this could have performance implications. Usage page-number (1,37) 'Page' ! Will appear as last-page ( ) ' of ' '.' ! "Page 12 of 25." *** (1,37) is just to give some position. Cheers, Devinder -----Original Message----- From: Scott.Munson@metavante.com [mailto:Scott.Munson@metavante.com] Sent: Friday, April 11, 2003 12:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] Page # of # Example Is there an SQC or some standard procedure that can print out "Page # of #"? Currently, all of the reports we have come across only print the current page but the user desires to see the total number of pages, in addition to the current page. Thanks, Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Sat Apr 12 01:03:06 2003 From: Al H Subject: Re: [sqr-users] Page # of # Example Date: Fri, 11 Apr 2003 23:01:03 -0700 Just a word of warning..you can't send your report direct to the printer (i.e. -flpt1 or selecting "Printer" as an output destination in PeopleSoft's Process Scheduler) when you use last-page. It will cause an "unable to read from device" error. On Fri, 11 Apr 2003 13:57:45 +1000, you wrote: >Scott, > Using "LAST-PAGE" will help. >It causes SQR and SQRT to delay printing until the last page has been processed so that the number of the last page is known. Though this could have performance implications. > >Usage > > page-number (1,37) 'Page' ! Will appear as > last-page ( ) ' of ' '.' ! "Page 12 of 25." > >*** (1,37) is just to give some position. > >Cheers, >Devinder > > >-----Original Message----- >From: Scott.Munson@metavante.com [mailto:Scott.Munson@metavante.com] >Sent: Friday, April 11, 2003 12:44 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Page # of # Example > > >Is there an SQC or some standard procedure that can print out "Page # of >#"? Currently, all of the reports we have come across only print the >current page but the user desires to see the total number of pages, in >addition to the current page. > >Thanks, > >Scott Munson >PeopleSoft Billing Team > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 11 07:18:34 2003 From: skirklin@stl-inc.com Subject: RE: [sqr-users] Page # of # Example Date: Fri, 11 Apr 2003 06:14:29 -0600 We use this: BEGIN-FOOTING 1 for-reports=(wowp) print 'Job: Work Order in Progress' (1,2) page-number (,90) 'Page ' last-page () 'of ' '.' END-FOOTING Sherri Kirklin STL-Austin -----Original Message----- From: Scott.Munson@metavante.com [mailto:Scott.Munson@metavante.com] Sent: Thursday, April 10, 2003 2:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] Page # of # Example Is there an SQC or some standard procedure that can print out "Page # of #"? Currently, all of the reports we have come across only print the current page but the user desires to see the total number of pages, in addition to the current page. Thanks, Scott Munson PeopleSoft Billing Team _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 notify the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 10 17:37:13 2003 From: "Ben Anderson" Date: Thu, 10 Apr 2003 16:32:58 -0400 Subject: [sqr-users] evaluate... array create-array name=week size=8 field=day:number this array gets filled with calendar month numbers like 25, 26, 27, etc. This much I know works because I've printed the array. Here is my problem. evaluate #some_number !this number is equal to 26 when = 26 ! this gets evaluated just fine break when = #week.day(2) ! this number is equal to 26 ! this doesn't get evaluated break !when = week.day(2) ! this gives me an error ! break end-evaluate Hopefully I just have a syntax problem here. Sorry if this is simple - I don't have a manual. From looking through the archives it seems I may be using the array incorrectly. Thanks, Ben Anderson _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 10 18:28:30 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] evaluate... array Date: Thu, 10 Apr 2003 16:31:38 -0700 The "evaluate" and the "when =" are two of the many places in SQR where you cannot use arrays. It does no good to put a # or $ in front of the array. -----Original Message----- From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] Sent: Thursday, April 10, 2003 1:33 PM To: sqr-users@sqrug.org Subject: [sqr-users] evaluate... array create-array name=week size=8 field=day:number this array gets filled with calendar month numbers like 25, 26, 27, etc. This much I know works because I've printed the array. Here is my problem. evaluate #some_number !this number is equal to 26 when = 26 ! this gets evaluated just fine break when = #week.day(2) ! this number is equal to 26 ! this doesn't get evaluated break !when = week.day(2) ! this gives me an error ! break end-evaluate Hopefully I just have a syntax problem here. Sorry if this is simple - I don't have a manual. From looking through the archives it seems I may be using the array incorrectly. Thanks, Ben Anderson _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Sat Apr 12 15:48:44 2003 From: "David Brawner" Subject: RE: [sqr-users] evaluate... array Date: Sat, 12 Apr 2003 16:46:05 -0400 You have to "get" the array value into a variable before it can be evaluated. get #weekday from week(#i) day(2) evaluate #weekday when = 26 {statement} break when = {something else} {statement 2} break when-other break end-evaluate I usually retrieve these in a while loop... Dave -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ben Anderson Sent: Thursday, April 10, 2003 4:33 PM To: sqr-users@sqrug.org Subject: [sqr-users] evaluate... array create-array name=week size=8 field=day:number this array gets filled with calendar month numbers like 25, 26, 27, etc. This much I know works because I've printed the array. Here is my problem. evaluate #some_number !this number is equal to 26 when = 26 ! this gets evaluated just fine break when = #week.day(2) ! this number is equal to 26 ! this doesn't get evaluated break !when = week.day(2) ! this gives me an error ! break end-evaluate Hopefully I just have a syntax problem here. Sorry if this is simple - I don't have a manual. From looking through the archives it seems I may be using the array incorrectly. Thanks, Ben Anderson _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri Apr 11 07:42:58 2003 Date: Fri, 11 Apr 2003 06:41:43 -0600 From: "Horn, Michael (CXO Colorado Springs)" Subject: [sqr-users] Using SQR version 8 and receiving the following message This is a multi-part message in MIME format... ------_=_NextPart_001_01C30027.B4F96277 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I am currently a new user to SQR and we are using version 8. I am using a = Microsoft SQL 2000 Database and I receive the following error when trying t= o use SQR: [MERANT] [ODBC MS SQL Server 6 driver][Microsoft SQL Server] Could not find= stored procedure 'sp_start_xact!' Looking up the sp_start_xact procedure, I cannot find anything for it in MS= SQL, but it shows up as a SYBASE procedure when looking under search engin= es on the web. Could the problem be that the drivers that were provided ar= e for version 6 and not version 8? Also, we have some tables that have field names with spaces. Does anyone k= now how to get past this problem in SQR? I have asked our SQL gurus if the= re is anything could be done to translate a space to and underscore and the= y have said no. Barring going into the database and updating every field n= ame to include an underscore. One of the tables has a space in it also. C= an this be parsed too? Thanks for your help in advance. Michael Horn HP Services CCHS Division (719) 592 - 5043 <>=20 ------_=_NextPart_001_01C30027.B4F96277 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. ------_=_NextPart_001_01C30027.B4F96277-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sun Apr 13 06:45:25 2003 From: "Edwin Hommes" Subject: Re: [sqr-users] Using SQR version 8 and receiving the following message Date: Sun, 13 Apr 2003 13:43:33 +0200 Michael You may want to check your configuration file on the server side. It may tell SQR it is running on a Sybase DB. (rdbms.sqc) Should be set correctly when installing PS though. Since underscores are in the database world considered wildcards, you can not translate spaces with underscores. You could use any other character, with the exception of *. (also a wildcard) In SQR you can deal with (trailing) spaces by using the command let new_var = rtrim(old_var, ' ') thus cutting of any spaces from the right to the left. This will leave you will a NULL (empty) variable if the source variable contained spaces only. Peoplesoft (most systems) do not like tables with spaces in their names. I'd say that SQR, Peoplesoft as well as Ms SQL Server 2000 will have problems at querying that table Hope this helps, Edwin ----- Original Message ----- From: "Horn, Michael (CXO Colorado Springs)" To: Sent: Friday, April 11, 2003 2:41 PM Subject: [sqr-users] Using SQR version 8 and receiving the following message Hello all, I am currently a new user to SQR and we are using version 8. I am using a Microsoft SQL 2000 Database and I receive the following error when trying to use SQR: [MERANT] [ODBC MS SQL Server 6 driver][Microsoft SQL Server] Could not find stored procedure 'sp_start_xact!' Looking up the sp_start_xact procedure, I cannot find anything for it in MS SQL, but it shows up as a SYBASE procedure when looking under search engines on the web. Could the problem be that the drivers that were provided are for version 6 and not version 8? Also, we have some tables that have field names with spaces. Does anyone know how to get past this problem in SQR? I have asked our SQL gurus if there is anything could be done to translate a space to and underscore and they have said no. Barring going into the database and updating every field name to include an underscore. One of the tables has a space in it also. Can this be parsed too? Thanks for your help in advance. Michael Horn HP Services CCHS Division (719) 592 - 5043 <> ---------------------------------------------------------------------------- ---- > 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. > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.467 / Virus Database: 266 - Release Date: 01/04/2003 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 11 08:13:10 2003 Date: Fri, 11 Apr 2003 09:12:42 -0400 From: "White, Denise" Subject: [sqr-users] RE: evaluate... array Hi Ben, You will need to do a GET to retrieve the value from the array first. Example: get #day from week(2) You can then use the resulting variable (#day) in the evaluate. Some statements can reference the field within the array directly, as you are trying to do, but others can't. For the ones that can't, you must first retrieve the field into a variable. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 3 From: "Ben Anderson" To: sqr-users@sqrug.org Date: Thu, 10 Apr 2003 16:32:58 -0400 Subject: [sqr-users] evaluate... array Reply-To: sqr-users@sqrug.org create-array name=week size=8 field=day:number this array gets filled with calendar month numbers like 25, 26, 27, etc. This much I know works because I've printed the array. Here is my problem. evaluate #some_number !this number is equal to 26 when = 26 ! this gets evaluated just fine break when = #week.day(2) ! this number is equal to 26 ! this doesn't get evaluated break !when = week.day(2) ! this gives me an error ! break end-evaluate Hopefully I just have a syntax problem here. Sorry if this is simple - I don't have a manual. From looking through the archives it seems I may be using the array incorrectly. Thanks, Ben Anderson _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 07:45:15 2003 From: "Ben Anderson" Date: Mon, 14 Apr 2003 08:40:32 -0400 Subject: [sqr-users] wrap - bold in middle Hello all, I want to print this: This is a test. (I want "is" to be bold) I tried this: encode '<27>(s3B' into $bold enocde '<27>(s0B' into $unbold let $line1 = 'This ' || $bold || 'is ' || $unbold || 'a test.' print $line1 (1,1,0) wrap 17 2 And here's my problem. The wrap logic is counting the control characters when breaking to the next line. i.e. this statement will show up on 2 lines instead of 1. Anyone know how to do this? Thanks, Ben Anderson _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 08:02:06 2003 Subject: RE: [sqr-users] wrap - bold in middle Date: Mon, 14 Apr 2003 09:01:26 -0400 From: "Wright, Rodney" I do a lot of bolding and wrapping on our open enrollment forms. As you stated, wrap counts the number of characters and wraps where you tell it to. It does not know the difference between control characters and printing characters. You have to adjust your wrap parameters to get it to wrap the way you want it to. Rod Wright Senior Applications Specialist The Rouse Company 410-992-6307 -----Original Message----- From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] Sent: Monday, April 14, 2003 8:41 AM To: sqr-users@sqrug.org Subject: [sqr-users] wrap - bold in middle Hello all, I want to print this: This is a test. (I want "is" to be bold) I tried this: encode '<27>(s3B' into $bold enocde '<27>(s0B' into $unbold let $line1 = 'This ' || $bold || 'is ' || $unbold || 'a test.' print $line1 (1,1,0) wrap 17 2 And here's my problem. The wrap logic is counting the control characters when breaking to the next line. i.e. this statement will show up on 2 lines instead of 1. Anyone know how to do this? Thanks, Ben Anderson _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 14 08:34:28 2003 From: "Ben Anderson" Subject: RE: [sqr-users] wrap - bold in middle Date: Mon, 14 Apr 2003 09:33:23 -0400 Rodney, So do you print out each line separately? If I print out one long paragraph in the same print command, with the same wrap - some lines will contain additional control characters and some won't. Therefore, I'd assume that I must have the wrap be the value of a line that contains no control characters. So, if I have a line with control characters, it will break halfway through the line. Do you have this problem? Thanks Ben >From: "Wright, Rodney" >Reply-To: sqr-users@sqrug.org >To: >Subject: RE: [sqr-users] wrap - bold in middle >Date: Mon, 14 Apr 2003 09:01:26 -0400 > >I do a lot of bolding and wrapping on our open enrollment forms. As you >stated, wrap counts the number of characters and wraps where you tell it >to. It does not know the difference between control characters and >printing characters. You have to adjust your wrap parameters to get it >to wrap the way you want it to. > >Rod Wright >Senior Applications Specialist >The Rouse Company >410-992-6307 > > >-----Original Message----- >From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] >Sent: Monday, April 14, 2003 8:41 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] wrap - bold in middle > >Hello all, >I want to print this: > >This is a test. (I want "is" to be bold) > >I tried this: > >encode '<27>(s3B' into $bold >enocde '<27>(s0B' into $unbold > >let $line1 = 'This ' || $bold || 'is ' || $unbold || 'a test.' >print $line1 (1,1,0) wrap 17 2 > > >And here's my problem. The wrap logic is counting the control >characters >when breaking to the next line. i.e. this statement will show up on 2 >lines >instead of 1. Anyone know how to do this? > >Thanks, >Ben Anderson > >_________________________________________________________________ >Protect your PC - get McAfee.com VirusScan Online >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 09:19:13 2003 Subject: RE: [sqr-users] wrap - bold in middle Date: Mon, 14 Apr 2003 10:18:08 -0400 From: "Wright, Rodney" It depends on what's in the paragraph. If the paragraph has a large section of bold print, then I print the first part of the paragraph with it's wrap parameters, print the section that contains the bold with appropriate wrap parameters, and print the final part of the paragraph with the same wrap parameters as the first part. If the paragraph has small parts of bold throughout, then I print it all with one wrap statement, finding parameters that give me a happy medium between the lines with no bold portions and the lines with bold portions. It would be nice if the wrap statement was a little more sophisticated, taking into account the font you're using along with bold, italics, etc. Unfortunately, it's just a character counter. It's better than printing out each line by itself though. It also makes programming easier than printing out each line by itself. You have to sacrifice a little bit on the looks of the form, but the programming is much more straight forward. Rod Wright Senior Applications Specialist The Rouse Company 410-992-6307 -----Original Message----- From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] Sent: Monday, April 14, 2003 9:33 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] wrap - bold in middle Rodney, So do you print out each line separately? If I print out one long paragraph in the same print command, with the same wrap - some lines will contain additional control characters and some won't. Therefore, I'd assume that I must have the wrap be the value of a line that contains no control characters. So, if I have a line with control characters, it will break halfway through the line. Do you have this problem? Thanks Ben >From: "Wright, Rodney" >Reply-To: sqr-users@sqrug.org >To: >Subject: RE: [sqr-users] wrap - bold in middle >Date: Mon, 14 Apr 2003 09:01:26 -0400 > >I do a lot of bolding and wrapping on our open enrollment forms. As you >stated, wrap counts the number of characters and wraps where you tell it >to. It does not know the difference between control characters and >printing characters. You have to adjust your wrap parameters to get it >to wrap the way you want it to. > >Rod Wright >Senior Applications Specialist >The Rouse Company >410-992-6307 > > >-----Original Message----- >From: Ben Anderson [mailto:pegandersonbd1@hotmail.com] >Sent: Monday, April 14, 2003 8:41 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] wrap - bold in middle > >Hello all, >I want to print this: > >This is a test. (I want "is" to be bold) > >I tried this: > >encode '<27>(s3B' into $bold >enocde '<27>(s0B' into $unbold > >let $line1 = 'This ' || $bold || 'is ' || $unbold || 'a test.' >print $line1 (1,1,0) wrap 17 2 > > >And here's my problem. The wrap logic is counting the control >characters >when breaking to the next line. i.e. this statement will show up on 2 >lines >instead of 1. Anyone know how to do this? > >Thanks, >Ben Anderson > >_________________________________________________________________ >Protect your PC - get McAfee.com VirusScan Online >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 14 16:16:10 2003 From: "M S Bugge" Date: Mon, 14 Apr 2003 17:14:10 -0400 Subject: [sqr-users] Need another set of eyes. This is a multi-part message in MIME format... ------=_NextPart_000_014D_01C302A9.439E6B10 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable BlankThis is strange why am i getting this error: Somebody please assist me= with another set of eyes. begin-procedure validate-ledger-type=20 #debugf show 'validate-ledger-type'=20 begin-select b.ANALYSIS_TYPE=20 let $atype =3D &b.ANALYSIS_TYPE from PS_RR_MP_PC_XREF b where b.RR_MP_LT =3D $ledger_type end-select end-procedure ! validate-ledger-type Error on line 332: (SQR 3719) Columns names and expressions must be unique or be given uniq= ue ps eudonyms (&name). let $atype =3D &b.ANALYSIS_TYPE Errors were found in the program file. Thanks in advance Bugge ------=_NextPart_000_014D_01C302A9.439E6B10 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/gif' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_014D_01C302A9.439E6B10-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 16:26:07 2003 Date: Mon, 14 Apr 2003 17:24:38 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Need another set of eyes. You using the same alias type in a different procedure, just change the alias from b.analysis_type to bb.analysis_type, it should work Hope this helps Prasanna M S Bugge wrote: > > BlankThis is strange why am i getting this error: Somebody please assist me with another set of eyes. > > begin-procedure validate-ledger-type > #debugf show 'validate-ledger-type' > > begin-select > > b.ANALYSIS_TYPE > > let $atype = &b.ANALYSIS_TYPE > > from PS_RR_MP_PC_XREF b > where b.RR_MP_LT = $ledger_type > > end-select > > end-procedure ! validate-ledger-type > > Error on line 332: > (SQR 3719) Columns names and expressions must be unique or be given unique ps > eudonyms (&name). > let $atype = &b.ANALYSIS_TYPE > > Errors were found in the program file. > > Thanks in advance > > Bugge _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 16:31:05 2003 From: "M S Bugge" Subject: Re: [sqr-users] Need another set of eyes. Date: Mon, 14 Apr 2003 17:31:57 -0400 Hi Prasanna, I have not used it any where just this. Thanks ----- Original Message ----- From: "Prasanna Menta" To: Sent: Monday, April 14, 2003 5:24 PM Subject: Re: [sqr-users] Need another set of eyes. > You using the same alias type in a different procedure, just change the > alias from b.analysis_type to bb.analysis_type, it should work > > Hope this helps > Prasanna > > M S Bugge wrote: > > > > BlankThis is strange why am i getting this error: Somebody please assist me with another set of eyes. > > > > begin-procedure validate-ledger-type > > #debugf show 'validate-ledger-type' > > > > begin-select > > > > b.ANALYSIS_TYPE > > > > let $atype = &b.ANALYSIS_TYPE > > > > from PS_RR_MP_PC_XREF b > > where b.RR_MP_LT = $ledger_type > > > > end-select > > > > end-procedure ! validate-ledger-type > > > > Error on line 332: > > (SQR 3719) Columns names and expressions must be unique or be given unique ps > > eudonyms (&name). > > let $atype = &b.ANALYSIS_TYPE > > > > Errors were found in the program file. > > > > Thanks in advance > > > > Bugge > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Mon Apr 14 16:20:07 2003 From: "M S Bugge" Date: Mon, 14 Apr 2003 17:20:35 -0400 Subject: [sqr-users] Need another set of eyes. This is a multi-part message in MIME format... ------=_NextPart_000_017F_01C302AA.29720520 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable BlankThis is strange why am I getting this error: Somebody please assist me= with another set of eyes. begin-procedure validate-ledger-type=20 #debugf show 'validate-ledger-type'=20 begin-select b.ANALYSIS_TYPE=20 let $atype =3D &b.ANALYSIS_TYPE from PS_RR_MP_PC_XREF b where b.RR_MP_LT =3D $ledger_type end-select end-procedure ! validate-ledger-type Error on line 332: (SQR 3719) Columns names and expressions must be unique or be given uniq= ue ps eudonyms (&name). let $atype =3D &b.ANALYSIS_TYPE Errors were found in the program file. Thanks in advance Bugge ------=_NextPart_000_017F_01C302AA.29720520 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/gif' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_017F_01C302AA.29720520-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 16:22:05 2003 From: Bill Beckner Subject: RE: [sqr-users] Need another set of eyes. Date: Mon, 14 Apr 2003 16:21:48 -0500 Check your SQR for another reference to b.ANALYSIS_TYPE. Or, just change the alias in this select statement from "b" to "bb"... HTH! > -----Original Message----- > From: M S Bugge [mailto:msbugge@hotmail.com > ] > Sent: Monday, April 14, 2003 4:14 PM > To: Sqr - Users > Subject: [sqr-users] Need another set of eyes. > > << File: ATT244863.txt >> << File: AUTOMATIC WARNING >> _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 16:30:07 2003 From: "M S Bugge" Subject: Re: [sqr-users] Need another set of eyes. Date: Mon, 14 Apr 2003 17:31:00 -0400 no luck now the error is Error on line 332: (SQR 3719) Columns names and expressions must be unique or be given unique ps eudonyms (&name). let $atype = &bb.ANALYSIS_TYPE Errors were found in the program file. SQR for PeopleSoft: Program Aborting. ----- Original Message ----- From: "Bill Beckner" To: Sent: Monday, April 14, 2003 5:21 PM Subject: RE: [sqr-users] Need another set of eyes. > Check your SQR for another reference to b.ANALYSIS_TYPE. Or, just change > the alias in this select statement from "b" to "bb"... > > HTH! > > > -----Original Message----- > > From: M S Bugge [mailto:msbugge@hotmail.com > > ] > > Sent: Monday, April 14, 2003 4:14 PM > > To: Sqr - Users > > Subject: [sqr-users] Need another set of eyes. > > > > << File: ATT244863.txt >> << File: AUTOMATIC WARNING >> > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Mon Apr 14 16:34:05 2003 From: David Arthur Subject: RE: [sqr-users] Need another set of eyes. Date: Mon, 14 Apr 2003 17:32:54 -0400 Try indenting your let statement. -----Original Message----- From: M S Bugge [mailto:msbugge@hotmail.com] Sent: Monday, April 14, 2003 3:32 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Need another set of eyes. Hi Prasanna, I have not used it any where just this. Thanks ----- Original Message ----- From: "Prasanna Menta" To: Sent: Monday, April 14, 2003 5:24 PM Subject: Re: [sqr-users] Need another set of eyes. > You using the same alias type in a different procedure, just change the > alias from b.analysis_type to bb.analysis_type, it should work > > Hope this helps > Prasanna > > M S Bugge wrote: > > > > BlankThis is strange why am i getting this error: Somebody please assist me with another set of eyes. > > > > begin-procedure validate-ledger-type > > #debugf show 'validate-ledger-type' > > > > begin-select > > > > b.ANALYSIS_TYPE > > > > let $atype = &b.ANALYSIS_TYPE > > > > from PS_RR_MP_PC_XREF b > > where b.RR_MP_LT = $ledger_type > > > > end-select > > > > end-procedure ! validate-ledger-type > > > > Error on line 332: > > (SQR 3719) Columns names and expressions must be unique or be given unique ps > > eudonyms (&name). > > let $atype = &b.ANALYSIS_TYPE > > > > Errors were found in the program file. > > > > Thanks in advance > > > > Bugge > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) are confidential and may contain privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 14 16:40:14 2003 From: "M S Bugge" Subject: Re: [sqr-users] Need another set of eyes. Date: Mon, 14 Apr 2003 17:40:32 -0400 thanks it worked....thanks David ----- Original Message ----- From: "David Arthur" To: Sent: Monday, April 14, 2003 5:32 PM Subject: RE: [sqr-users] Need another set of eyes. > > Try indenting your let statement. > > -----Original Message----- > From: M S Bugge [mailto:msbugge@hotmail.com] > Sent: Monday, April 14, 2003 3:32 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Need another set of eyes. > > > Hi Prasanna, > I have not used it any where just this. > Thanks > > ----- Original Message ----- > From: "Prasanna Menta" > To: > Sent: Monday, April 14, 2003 5:24 PM > Subject: Re: [sqr-users] Need another set of eyes. > > > > You using the same alias type in a different procedure, just change the > > alias from b.analysis_type to bb.analysis_type, it should work > > > > Hope this helps > > Prasanna > > > > M S Bugge wrote: > > > > > > BlankThis is strange why am i getting this error: Somebody please assist > me with another set of eyes. > > > > > > begin-procedure validate-ledger-type > > > #debugf show 'validate-ledger-type' > > > > > > begin-select > > > > > > b.ANALYSIS_TYPE > > > > > > let $atype = &b.ANALYSIS_TYPE > > > > > > from PS_RR_MP_PC_XREF b > > > where b.RR_MP_LT = $ledger_type > > > > > > end-select > > > > > > end-procedure ! validate-ledger-type > > > > > > Error on line 332: > > > (SQR 3719) Columns names and expressions must be unique or be given > unique ps > > > eudonyms (&name). > > > let $atype = &b.ANALYSIS_TYPE > > > > > > Errors were found in the program file. > > > > > > Thanks in advance > > > > > > Bugge > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail is intended only for the individual or entity > to whom it is addressed. Its contents (including any attachments) are confidential and > may contain privileged information. If you are not an intended recipient you must not > use, disclose, disseminate, copy or print its contents. If you receive this e-mail in > error, please notify the sender by reply e-mail and delete and destroy the 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-admin@sqrug.org Mon Apr 14 16:34:16 2003 Subject: Re: [sqr-users] Need another set of eyes. From: rwulfson@bost.com Date: Mon, 14 Apr 2003 15:35:32 -0600 Is the let statement indented from the first column? Thanks, Russ Wulfson Developer Boston Market Corporation Office: 303-216-5614 Fax: 303 -216- 8727 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 15 09:34:52 2003 From: "Mikeshock, Lynn" Date: Tue, 15 Apr 2003 09:31:59 -0500 Subject: [sqr-users] String to Decimal Object Conversion Error with Oracle 9 We are running SQR version 8.15 with an Oracle 9.2.0.3 database on a PeopleSoft application. The program aborts with the error '(SQR 6806) String2Em: String to Decimal Object Conversion Error' when running the following select statement using Oracle 9 but completes successfully when using Oracle 8.1.7.4. begin-SELECT On-Error=SQL-Error D.INITIAL_EXTENT &D.INIT D.NEXT_EXTENT &D.NEXT D.MAX_EXTENTS &D.MAXEXT D.PCT_INCREASE &D.PCT D.PCT_FREE &D.PCTFREE show 'Got a record' FROM USER_INDEXES D WHERE INDEX_NAME = $IndexName end-SELECT The field causing the problem is MAX_EXTENTS. The value in it is 2147483645, but that's also the value in the Oracle 8 database where the program works. If I take MAX_EXTENTS out of the select, all works fine. Has anyone else that's using Oracle 9 had this problem and know what the solution to it is? Thanks. Lynn _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 15 10:11:05 2003 Subject: RE: [sqr-users] String to Decimal Object Conversion Error with Oracle 9 Date: Tue, 15 Apr 2003 10:10:38 -0500 From: "Knapp, Richard" I think your problem is in your error handling procedure. No conversion happens in the SQL you have shown us and I successfully tested your code on a 9i db removing reference to the error handler. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Mikeshock, Lynn [mailto:LMikeshock@rgare.com] Sent: Tuesday, April 15, 2003 9:32 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] String to Decimal Object Conversion Error with Oracle 9 We are running SQR version 8.15 with an Oracle 9.2.0.3 database on a PeopleSoft application. The program aborts with the error '(SQR 6806) String2Em: String to Decimal Object Conversion Error' when running the following select statement using Oracle 9 but completes successfully when using Oracle 8.1.7.4. begin-SELECT On-Error=SQL-Error D.INITIAL_EXTENT &D.INIT D.NEXT_EXTENT &D.NEXT D.MAX_EXTENTS &D.MAXEXT D.PCT_INCREASE &D.PCT D.PCT_FREE &D.PCTFREE show 'Got a record' FROM USER_INDEXES D WHERE INDEX_NAME = $IndexName end-SELECT The field causing the problem is MAX_EXTENTS. The value in it is 2147483645, but that's also the value in the Oracle 8 database where the program works. If I take MAX_EXTENTS out of the select, all works fine. Has anyone else that's using Oracle 9 had this problem and know what the solution to it is? Thanks. Lynn _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 15 10:01:10 2003 From: Peter Burton Subject: RE: [sqr-users] String to Decimal Object Conversion Error with Or acle 9 Date: Tue, 15 Apr 2003 07:59:38 -0700 >> This is an Oracle induced error << Run this (as the DBA) on the affected server: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE Peter -----Original Message----- From: Mikeshock, Lynn [mailto:LMikeshock@rgare.com] Sent: Tuesday, April 15, 2003 10:32 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] String to Decimal Object Conversion Error with Oracle 9 We are running SQR version 8.15 with an Oracle 9.2.0.3 database on a PeopleSoft application. The program aborts with the error '(SQR 6806) String2Em: String to Decimal Object Conversion Error' when running the following select statement using Oracle 9 but completes successfully when using Oracle 8.1.7.4. begin-SELECT On-Error=SQL-Error D.INITIAL_EXTENT &D.INIT D.NEXT_EXTENT &D.NEXT D.MAX_EXTENTS &D.MAXEXT D.PCT_INCREASE &D.PCT D.PCT_FREE &D.PCTFREE show 'Got a record' FROM USER_INDEXES D WHERE INDEX_NAME = $IndexName end-SELECT The field causing the problem is MAX_EXTENTS. The value in it is 2147483645, but that's also the value in the Oracle 8 database where the program works. If I take MAX_EXTENTS out of the select, all works fine. Has anyone else that's using Oracle 9 had this problem and know what the solution to it is? Thanks. Lynn _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 14:44:10 2003 From: Bill Beckner Date: Wed, 16 Apr 2003 14:40:09 -0500 Subject: [sqr-users] SQR for ODBC Connectivity We have recently upgraded to PeopleSoft Financials 8.42 and I'm having a bit of trouble getting an SQR that previously worked before. I've got a procedure that needs to connect to a different DB2 database and SQRW gives me the following error: Error on line 107: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] BEGIN-SQL -DBDSN=FS84TST;UID=xxxxxx;PWD=******* I compared the SQR Help file for the new SQR version (SQR for Peoplesoft V8.42) to the previous version (SQR V4.3.4) and there is no difference in the -DB parameters. Did Peoplesoft, in their infinite wisdom, disable this functionality? Or am I completely clueless and I'm missing something in the -DB syntax? Thank in advance!!!! -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 16 14:59:09 2003 Subject: RE: [sqr-users] SQR for ODBC Connectivity Date: Wed, 16 Apr 2003 14:57:35 -0500 From: "Knapp, Richard" The example in the manual has the connection string surrounded with single quotes. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Bill Beckner [mailto:Bbeckner@icc.edu] Sent: Wednesday, April 16, 2003 2:40 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR for ODBC Connectivity We have recently upgraded to PeopleSoft Financials 8.42 and I'm having a bit of trouble getting an SQR that previously worked before. I've got a procedure that needs to connect to a different DB2 database and SQRW gives me the following error: Error on line 107: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] BEGIN-SQL -DBDSN=FS84TST;UID=xxxxxx;PWD=******* I compared the SQR Help file for the new SQR version (SQR for Peoplesoft V8.42) to the previous version (SQR V4.3.4) and there is no difference in the -DB parameters. Did Peoplesoft, in their infinite wisdom, disable this functionality? Or am I completely clueless and I'm missing something in the -DB syntax? Thank in advance!!!! -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 15:34:08 2003 Date: Wed, 16 Apr 2003 15:32:34 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] SQR for ODBC Connectivity PeopleSoft might have shipped the database specific version of SQR (instead of ODBC version of SQR) with your PeopleTools CD. There will be a file called 'version' in your SQR bin directory. Open the file. If the file does not say ODBC compliant then your -DBDSN calls will not work. >>> Bbeckner@icc.edu 04/16/03 02:40PM >>> We have recently upgraded to PeopleSoft Financials 8.42 and I'm having a bit of trouble getting an SQR that previously worked before. I've got a procedure that needs to connect to a different DB2 database and SQRW gives me the following error: Error on line 107: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] BEGIN-SQL -DBDSN=FS84TST;UID=xxxxxx;PWD=******* I compared the SQR Help file for the new SQR version (SQR for Peoplesoft V8.42) to the previous version (SQR V4.3.4) and there is no difference in the -DB parameters. Did Peoplesoft, in their infinite wisdom, disable this functionality? Or am I completely clueless and I'm missing something in the -DB syntax? Thank in advance!!!! -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 15:38:05 2003 From: Bill Beckner Subject: RE: [sqr-users] SQR for ODBC Connectivity Date: Wed, 16 Apr 2003 15:37:34 -0500 Thanks for the tip...that is what exactly happened!! :-( -----Original Message----- From: Suman Buddharaju [mailto:SBUDDHA@dot.state.tx.us] Sent: Wednesday, April 16, 2003 3:33 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR for ODBC Connectivity PeopleSoft might have shipped the database specific version of SQR (instead of ODBC version of SQR) with your PeopleTools CD. There will be a file called 'version' in your SQR bin directory. Open the file. If the file does not say ODBC compliant then your -DBDSN calls will not work. >>> Bbeckner@icc.edu 04/16/03 02:40PM >>> We have recently upgraded to PeopleSoft Financials 8.42 and I'm having a bit of trouble getting an SQR that previously worked before. I've got a procedure that needs to connect to a different DB2 database and SQRW gives me the following error: Error on line 107: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] BEGIN-SQL -DBDSN=FS84TST;UID=xxxxxx;PWD=******* I compared the SQR Help file for the new SQR version (SQR for Peoplesoft V8.42) to the previous version (SQR V4.3.4) and there is no difference in the -DB parameters. Did Peoplesoft, in their infinite wisdom, disable this functionality? Or am I completely clueless and I'm missing something in the -DB syntax? Thank in advance!!!! -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 15:01:06 2003 Subject: [sqr-users] SQR Unix env. variable setting From: desello_nelson@jpmorgan.com Date: Wed, 16 Apr 2003 15:58:59 -0400 How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 16 15:36:05 2003 Date: Wed, 16 Apr 2003 15:35:40 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 16:01:14 2003 Subject: Re: [sqr-users] SQR Unix env. variable setting From: desello_nelson@jpmorgan.com Date: Wed, 16 Apr 2003 17:00:29 -0400 Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 16 16:14:09 2003 Subject: RE: [sqr-users] SQR Unix env. variable setting Date: Wed, 16 Apr 2003 16:13:03 -0500 From: "Knapp, Richard" Modify pssqr.ini? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: desello_nelson@jpmorgan.com [mailto:desello_nelson@jpmorgan.com] Sent: Wednesday, April 16, 2003 4:00 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Unix env. variable setting Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 16:33:12 2003 Date: Wed, 16 Apr 2003 16:31:31 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] SQR Unix env. variable setting Well how about this way... PeopleSoft Process Scheduler invokes a program called prcs_sqr which in turn calls sqr. Process Scheduler does not call sqr directly on UNIX. In PS 7.5 this script prcs_sqr ( typically this script is in $PS_HOME/bin) is a shell script. You can modify this shell script to export the environment variable so that it will be available for the current as well as child processes. >>> desello_nelson@jpmorgan.com 04/16/03 04:00PM >>> Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 16 16:48:14 2003 Subject: RE: [sqr-users] SQR Unix env. variable setting From: desello_nelson@jpmorgan.com Date: Wed, 16 Apr 2003 17:47:29 -0400 I already did that pssqr.unx on the Unix side its called. But no luck. Since the developer only run this particular sqr once a month, I figured let's put in that sqr, but how? Thanks, Nelson KnappR@umsystem.edu@sqrug.org on 04/16/2003 05:13:03 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: RE: [sqr-users] SQR Unix env. variable setting Modify pssqr.ini? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: desello_nelson@jpmorgan.com [mailto:desello_nelson@jpmorgan.com] Sent: Wednesday, April 16, 2003 4:00 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Unix env. variable setting Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 06:57:09 2003 Subject: Re: [sqr-users] SQR Unix env. variable setting From: desello_nelson@jpmorgan.com Date: Thu, 17 Apr 2003 07:55:32 -0400 We are using sqr 8.1.6 for PeopleSoft 8. So I don't think there is a prcs_sqr that I'm aware of. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 05:31:31 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting Well how about this way... PeopleSoft Process Scheduler invokes a program called prcs_sqr which in turn calls sqr. Process Scheduler does not call sqr directly on UNIX. In PS 7.5 this script prcs_sqr ( typically this script is in $PS_HOME/bin) is a shell script. You can modify this shell script to export the environment variable so that it will be available for the current as well as child processes. >>> desello_nelson@jpmorgan.com 04/16/03 04:00PM >>> Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 08:20:07 2003 Date: Thu, 17 Apr 2003 08:18:57 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] SQR Unix env. variable setting prcs_sqr is still available in PeopleSoft 8. Although Process scheduler works little bit different in PS 8 vs PS 7.5x. In PeopleSoft 8 for sqrs on UNIX the Process Scheduler calls a application called pssqr. pssqr calls prcs_sqr which is a shell script and which can be modified to set environment variables. pssqr then calls sqr. Alternatively....you can call a external program (like a shell script) in sqr using 'call system' but i think any variable you set may noy be available after the script is done executing. HTH Suman >>> desello_nelson@jpmorgan.com 04/17/03 06:55AM >>> We are using sqr 8.1.6 for PeopleSoft 8. So I don't think there is a prcs_sqr that I'm aware of. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 05:31:31 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting Well how about this way... PeopleSoft Process Scheduler invokes a program called prcs_sqr which in turn calls sqr. Process Scheduler does not call sqr directly on UNIX. In PS 7.5 this script prcs_sqr ( typically this script is in $PS_HOME/bin) is a shell script. You can modify this shell script to export the environment variable so that it will be available for the current as well as child processes. >>> desello_nelson@jpmorgan.com 04/16/03 04:00PM >>> Thanks for the reply, however let me explain further why that is not working for us: The NLS_LANG is set correctly when run from the command line or autosys, BUT NOT from the process scheduler it always sets it to NLS_LANG=UTF8, which we don't want. So going back to my original question: how would you set a Unix env variable WITHIN an SQR script using the sqr syntax? If that is possible at all. I did a truss on the psadmin and surely enough it sets NLS_LANG=UTF8, now is there a way to pass NLS_LANG via psadmin? Any help is appreciated. Thanks, Nelson SBUDDHA@dot.state.tx.us@sqrug.org on 04/16/2003 04:35:40 PM Please respond to sqr-users@sqrug.org Sent by: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] SQR Unix env. variable setting We set UNIX variables in the .profile of the user that is going to run the SQR. e.g in our case user psoftut runs PeopleSoft SQR and we set all the variables in the users .profile . >>> desello_nelson@jpmorgan.com 04/16/03 02:58PM >>> How do you set a Unix environment variable(say, NLS_LANG) within your SQR script? I'm a sysadmin trying to help an SQR developer, so go figure. Any assistance is highly appreciated. Nelson desello_nelson@jpmorgan.com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 11:48:11 2003 Date: Thu, 17 Apr 2003 12:51:07 -0400 From: "Robert K. Foster" Subject: RE: [sqr-users] SQR Unix env. variable setting Nelson, I've not tried this but "call system using" is the sqr command you are probably looking for. However, since the sqr report would already be running/executing when you call the system with "set WHATEVER" to change the environment variable, you may still have a problem. We had a situation where it was necessary to test out the latest version of Brio/SQR with a new set of client libraries from Sybase. The method I used was the previously suggested shell script which allows you to control every aspect of the unix environment before executing the sqr program itself. That way the older versions of everything stay in place and the shell script sets up other parameters(the new libraries) for the sqr execution. I used a standard bourne shell executed from the command line but you can easily run that using crontab or likely even the Peoplesoft whatever(which I have no experience with). Hope that helps. Bob. sqr-users-request@sqrug.org wrote: > Subject: RE: [sqr-users] SQR Unix env. variable setting > Date: Wed, 16 Apr 2003 17:47:29 -0400 > From: desello_nelson@jpmorgan.com > > I already did that pssqr.unx on the Unix side its called. > But no luck. Since the developer only run this particular sqr once a > month, I figured let's put in that sqr, but how? > > Thanks, > Nelson === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 12:03:06 2003 From: Ray Ontko Date: Thu, 17 Apr 2003 12:02:47 -0500 Subject: Re: [sqr-users] SQR Unix env. variable setting Robert, Nelson, Unfortunately this won't work. When you do a call system, a new environment is created that disappears when the call system completes. So, although you can set the environment variable in the new environment, it doesn't do anythign to the context in which SQR is runing. With LET you can do a GETENV, but you can't do a SETENV. Ray On Thu, Apr 17, 2003 at 12:51:07PM -0400, Robert K. Foster wrote: > Nelson, > > I've not tried this but "call system using" is the sqr command you are > probably looking for. However, since the sqr report would already be > running/executing when you call the system with "set WHATEVER" to change > the environment variable, you may still have a problem. > > We had a situation where it was necessary to test out the latest version > of Brio/SQR with a new set of client libraries from Sybase. The method I > used was the previously suggested shell script which allows you to > control every aspect of the unix environment before executing the sqr > program itself. That way the older versions of everything stay in place > and the shell script sets up other parameters(the new libraries) for the > sqr execution. I used a standard bourne shell executed from the command > line but you can easily run that using crontab or likely even the > Peoplesoft whatever(which I have no experience with). > > Hope that helps. > Bob. > > sqr-users-request@sqrug.org wrote: > > Subject: RE: [sqr-users] SQR Unix env. variable setting > > Date: Wed, 16 Apr 2003 17:47:29 -0400 > > From: desello_nelson@jpmorgan.com > > > > I already did that pssqr.unx on the Unix side its called. > > But no luck. Since the developer only run this particular sqr once a > > month, I figured let's put in that sqr, but how? > > > > Thanks, > > Nelson > > === > Bob Foster > I/S Coordinator > Mid-Michigan MRI, Inc. > Direct Line: (517) 364-2673 > mailto:rkf@radiology.msu.edu > > _______________________________________________ > 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-admin@sqrug.org Wed Apr 16 17:32:32 2003 From: Scott.Munson@Metavante.com Date: Wed, 16 Apr 2003 17:32:51 -0500 Subject: [sqr-users] Font Issue Curious if anyone has come across this... A delivered report has been requested to have the font changed. I changed the font=3 to a font=4. All the detailed data was then centered instead of right justified, as delivered. I know font=8 will also keep the columns right justified. The output is in PDF and is running under a new install of PS 8.4. If we were to run the sqr on the mainframe, the text is also right justified. Thoughts? Scott _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 16 17:37:05 2003 From: Scott.Munson@Metavante.com Date: Wed, 16 Apr 2003 17:38:18 -0500 Subject: [sqr-users] Re: Font Issue Just to make sure... The customer needs the report in Font=4 and the columns must be right justified. Thanks Scott Munson 04/16/2003 05:32 PM To: sqr-users@sqrug.org cc: Subject: Font Issue Curious if anyone has come across this... A delivered report has been requested to have the font changed. I changed the font=3 to a font=4. All the detailed data was then centered instead of right justified, as delivered. I know font=8 will also keep the columns right justified. The output is in PDF and is running under a new install of PS 8.4. If we were to run the sqr on the mainframe, the text is also right justified. Thoughts? Scott _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 06:55:02 2003 Date: Thu, 17 Apr 2003 06:53:08 -0500 From: "Lock, Edward J" Subject: [sqr-users] Load-Lookup command Is it possible to load multiple keys or fields with a "Load-Lookup" command? I've only seen references for a single key in this type of array. Thanks, Edward Lock ejlock@central.uh.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 07:18:47 2003 Subject: RE: [sqr-users] Load-Lookup command Date: Thu, 17 Apr 2003 22:15:50 +1000 From: "Devinder Singh Kunwar (STP)" Edward, LOAD-LOOKUP NAME = 1111 TABLE = 2222 KEY = 333 RETURN_VALUE = 4444 You can combine several columns into an expression if you need several fields returned for each lookup . This is done by concatenating columns. For Eg in Oracle RETURN_VALUE= 'name' || 'address' || 'designation' could be used. But you need to check your database manual for the correct syntax to concatenate. Haven't tried it out but guess same could be tried out for the key field also like KEY = 'key_1' || 'key_2' Cheers, Devinder -----Original Message----- From: Lock, Edward J [mailto:EJLock@Central.UH.EDU] Sent: Thursday, April 17, 2003 5:23 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Load-Lookup command Is it possible to load multiple keys or fields with a "Load-Lookup" command? I've only seen references for a single key in this type of array. Thanks, Edward Lock ejlock@central.uh.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-admin@sqrug.org Thu Apr 17 08:06:13 2003 Date: Thu, 17 Apr 2003 09:05:43 -0400 From: "White, Denise" Subject: [sqr-users] RE: Load-Lookup command You can handle multiple fields in a key by concatenating them together and treating them as if they are one field. The RETURN_VALUE can also be a product of concatenated fields. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 13 Date: Thu, 17 Apr 2003 06:53:08 -0500 From: "Lock, Edward J" To: "'sqr-users@sqrug.org'" Subject: [sqr-users] Load-Lookup command Reply-To: sqr-users@sqrug.org Is it possible to load multiple keys or fields with a "Load-Lookup" command? I've only seen references for a single key in this type of array. Thanks, Edward Lock ejlock@central.uh.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 08:35:06 2003 Date: Thu, 17 Apr 2003 08:33:36 -0500 From: "Lock, Edward J" Subject: RE: [sqr-users] RE: Load-Lookup command Thank you for the hints and suggestions, this is just what I was looking for regarding the Lookup command. Edward Lock ejlock@central.uh.edu -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Thursday, April 17, 2003 8:06 AM To: SQR Users Group (E-mail) Subject: [sqr-users] RE: Load-Lookup command You can handle multiple fields in a key by concatenating them together and treating them as if they are one field. The RETURN_VALUE can also be a product of concatenated fields. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 13 Date: Thu, 17 Apr 2003 06:53:08 -0500 From: "Lock, Edward J" To: "'sqr-users@sqrug.org'" Subject: [sqr-users] Load-Lookup command Reply-To: sqr-users@sqrug.org Is it possible to load multiple keys or fields with a "Load-Lookup" command? I've only seen references for a single key in this type of array. Thanks, Edward Lock ejlock@central.uh.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-admin@sqrug.org Thu Apr 17 08:20:19 2003 Date: Thu, 17 Apr 2003 06:19:17 -0700 (PDT) From: Rehan Khan Subject: [sqr-users] SQR in SQL Server 2000 Hello, Can someone please let me know what do I have to do inorder to run an SQR via SQRW on a SQL Server 2000 database i-e how to setup the environment with SQL Server 2000 database ThanksRehan --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 08:28:05 2003 Subject: RE: [sqr-users] SQR in SQL Server 2000 Date: Thu, 17 Apr 2003 08:26:57 -0500 From: "Knapp, Richard" You have to tell sqrw what the init file (sqr.ini) is called and where it resides. This is done on the command line with the -ZIF flag. The init file has to define SQRDIR. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Thursday, April 17, 2003 8:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR in SQL Server 2000 Hello, Can someone please let me know what do I have to do inorder to run an SQR via SQRW on a SQL Server 2000 database i-e how to setup the environment with SQL Server 2000 database ThanksRehan --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 08:52:09 2003 Date: Thu, 17 Apr 2003 06:50:51 -0700 (PDT) From: Rehan Khan Subject: RE: [sqr-users] SQR in SQL Server 2000 I looked at the pssqr.ini file and it had the following for SQRDIR [Environment:Common] SQRDIR=dummy What has to be defined here to be able to run the SQR's on SQRW against SQR Server 2000 db?? R "Knapp, Richard" wrote: You have to tell sqrw what the init file (sqr.ini) is called and where it resides. This is done on the command line with the -ZIF flag. The init file has to define SQRDIR. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Thursday, April 17, 2003 8:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR in SQL Server 2000 Hello, Can someone please let me know what do I have to do inorder to run an SQR via SQRW on a SQL Server 2000 database i-e how to setup the environment with SQL Server 2000 database ThanksRehan --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 09:00:06 2003 Subject: RE: [sqr-users] SQR in SQL Server 2000 Date: Thu, 17 Apr 2003 08:59:01 -0500 From: "Knapp, Richard" I _think_ (please don't quote me) that SQRDIR just has to be defined. The definition doesn't have to make sense although I have defined it on a unix system to point to the directory (...sqrbinw) where the executable resides and that worked just fine. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Thursday, April 17, 2003 8:51 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR in SQL Server 2000 I looked at the pssqr.ini file and it had the following for SQRDIR [Environment:Common] SQRDIR=dummy What has to be defined here to be able to run the SQR's on SQRW against SQR Server 2000 db?? R "Knapp, Richard" wrote: You have to tell sqrw what the init file (sqr.ini) is called and where it resides. This is done on the command line with the -ZIF flag. The init file has to define SQRDIR. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Rehan Khan [mailto:mr52385@yahoo.com] Sent: Thursday, April 17, 2003 8:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR in SQL Server 2000 Hello, Can someone please let me know what do I have to do inorder to run an SQR via SQRW on a SQL Server 2000 database i-e how to setup the environment with SQL Server 2000 database ThanksRehan --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 08:25:05 2003 Date: Thu, 17 Apr 2003 06:23:40 -0700 (PDT) From: Rehan Khan Subject: [sqr-users] Image not appearing on .LIS file Hi, I have tested the following code and its working for an image on SPF format and PDF files. Declare-image Test1 Type=BMP-FILE Source='C:\temp\image.bmp' End-Declare let #image_width = 17 let #image_height = 7 print 'Look at this picture: ' (+2,{midcol}) print-image Test1 (+2,{midcol}) image-size= (#image_width, #image_height) let #current_line_adj = #image_height +3 print 'Any Comments?' (+#current_line_adj,{midcol}) Is there a way to make this image appear on .LIS files. I am running the job manually from Client ThanksRehan --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 08:58:06 2003 From: Rick_Creel@aoncons.com Date: Thu, 17 Apr 2003 09:53:07 -0400 Subject: [sqr-users] Dynamic Hints ? Is it possible to have dynamic HINT statements in an SQR? Here is a sample of my code... that does NOT work. Any suggestions would be greatly appreciated! ======================================= begin-program let $sw = '1' if $sw = '1' let $hint = '/*+ INDEX(HDR PS1BI_HDR) */' ELSE let $hint = '/*+ INDEX(HDR PSEBI_HDR) */' end-if begin-select [$hint] count(*) &count SHOW 'COUNT = ' &COUNT from PS_BI_HDR HDR end-select end-program ======================================= This is the error message I get: Error on line 17: (SQR 3743) Dynamic columns must have a &pseudonym. [$hint] _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 09:46:30 2003 Subject: Re: [sqr-users] Dynamic Hints ? From: "Jerry Coleman" Date: Thu, 17 Apr 2003 10:45:12 -0400 If you use a hint as a dynamic column, SQR will think it is a column, and add a comma to it when it is parsed, giving you a syntax error. The following, while ugly, might work for you. It parses to "select /*+ all_rows */ name,emplid from ps_employees..." BEGIN-PROCEDURE Read-DB let $hint = '/*+ all_rows */ name' BEGIN-SELECT [$hint] &hint=char emplid show &hint FROM PS_EMPLOYEES WHERE NAME LIKE 'Smith%' END-SELECT END-PROCEDURE Before I did this, I would make sure that your DBA has analyzed the table and indexes completely, perhaps using histograms. Or you might try a 3rd index that works in both cases. Rick_Creel@aoncon s.com To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Dynamic Hints ? qrug.org 04/17/03 09:53 AM Please respond to sqr-users Is it possible to have dynamic HINT statements in an SQR? Here is a sample of my code... that does NOT work. Any suggestions would be greatly appreciated! ======================================= begin-program let $sw = '1' if $sw = '1' let $hint = '/*+ INDEX(HDR PS1BI_HDR) */' ELSE let $hint = '/*+ INDEX(HDR PSEBI_HDR) */' end-if begin-select [$hint] count(*) &count SHOW 'COUNT = ' &COUNT from PS_BI_HDR HDR end-select end-program ======================================= This is the error message I get: Error on line 17: (SQR 3743) Dynamic columns must have a &pseudonym. [$hint] _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 09:54:06 2003 Subject: Re: [sqr-users] Dynamic Hints ? From: Rick_Creel@aoncons.com Date: Thu, 17 Apr 2003 10:53:27 -0400 Works like a champ!! Thanks a million. "Jerry Coleman" cc: Sent by: Subject: Re: [sqr-users] Dynamic Hints ? sqr-users-admin@s qrug.org 04/17/2003 10:45 AM Please respond to sqr-users If you use a hint as a dynamic column, SQR will think it is a column, and add a comma to it when it is parsed, giving you a syntax error. The following, while ugly, might work for you. It parses to "select /*+ all_rows */ name,emplid from ps_employees..." BEGIN-PROCEDURE Read-DB let $hint = '/*+ all_rows */ name' BEGIN-SELECT [$hint] &hint=char emplid show &hint FROM PS_EMPLOYEES WHERE NAME LIKE 'Smith%' END-SELECT END-PROCEDURE Before I did this, I would make sure that your DBA has analyzed the table and indexes completely, perhaps using histograms. Or you might try a 3rd index that works in both cases. Rick_Creel@aoncon s.com To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Dynamic Hints ? qrug.org 04/17/03 09:53 AM Please respond to sqr-users Is it possible to have dynamic HINT statements in an SQR? Here is a sample of my code... that does NOT work. Any suggestions would be greatly appreciated! ======================================= begin-program let $sw = '1' if $sw = '1' let $hint = '/*+ INDEX(HDR PS1BI_HDR) */' ELSE let $hint = '/*+ INDEX(HDR PSEBI_HDR) */' end-if begin-select [$hint] count(*) &count SHOW 'COUNT = ' &COUNT from PS_BI_HDR HDR end-select end-program ======================================= This is the error message I get: Error on line 17: (SQR 3743) Dynamic columns must have a &pseudonym. [$hint] _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 11:51:04 2003 From: "Vallabhu, Bindu" Date: Thu, 17 Apr 2003 12:49:49 -0400 Subject: [sqr-users] Arrays in SQR Hi All, Can an array be passed back as an argument from a procedure. If so can somebody please send me the syntax. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 11:58:10 2003 From: James Womeldorf Subject: RE: [sqr-users] Arrays in SQR Date: Thu, 17 Apr 2003 11:56:59 -0500 Hi Bindu, All arrays are global and are referenced everywhere (even in local procedures) exactly the same way. You cannot pass them in and out of procedures. Jim -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Thursday, April 17, 2003 11:50 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Arrays in SQR Hi All, Can an array be passed back as an argument from a procedure. If so can somebody please send me the syntax. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 12:01:05 2003 From: Ray Ontko Date: Thu, 17 Apr 2003 12:00:29 -0500 Subject: Re: [sqr-users] Arrays in SQR Bindu, > Can an array be passed back as an argument from a procedure. If so can > somebody please send me the syntax. No, they cannot. All arrays are global so you can access them from anywhere, but you cannot make references to them by any kind of variable means. You may be able to use #define and {} to create a generic routine for working on an array and then #include the definition, but that's about as close as you'll get. Ray ---------------------------------------------------------------------- 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-admin@sqrug.org Thu Apr 17 13:04:26 2003 From: "Vallabhu, Bindu" Date: Thu, 17 Apr 2003 14:03:21 -0400 Subject: [sqr-users] SQR error while using arrays. Hi all, I am still trying to use the array like you guys suggested but now i get this error: Error on line 91: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. In the SQR.ini file i have increased the SQLSIZE=65535 the maximum allowed value but the error wont go away. Now what do i do. Somebody please help!!! Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 17 13:26:06 2003 From: "Patel, Samir (CITS)" Subject: RE: [sqr-users] SQR error while using arrays. Date: Thu, 17 Apr 2003 14:24:10 -0400 Bindu, double-check that you have a "end-procedure" for every "begin-procedure". Hope that helps, Samir -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@Staples.com] Sent: Thursday, April 17, 2003 2:03 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR error while using arrays. Hi all, I am still trying to use the array like you guys suggested but now i get this error: Error on line 91: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. In the SQR.ini file i have increased the SQLSIZE=65535 the maximum allowed value but the error wont go away. Now what do i do. Somebody please help!!! Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 17 13:36:06 2003 Date: Thu, 17 Apr 2003 14:34:22 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] SQR error while using arrays. Bindu, Check to see if you have all the required begin and end parameters, say begin- procedure should also end with an end-procedure, if something is missing this usually happens Prasanna "Vallabhu, Bindu" wrote: > > Hi all, > > I am still trying to use the array like you guys suggested but now i get > this error: > > Error on line 91: > (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. > > SQR: Program Aborting. > > In the SQR.ini file i have increased the SQLSIZE=65535 the maximum allowed > value but the error wont go away. Now what do i do. Somebody please help!!! > > Thank you, > Bindu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Thu Apr 17 14:48:40 2003 From: "Vallabhu, Bindu" Subject: RE: [sqr-users] SQR error while using arrays. Date: Thu, 17 Apr 2003 15:46:51 -0400 Thank you very Much for all the help Guys. I am all set now. with the arrays and the -mfile error. Thanks again. -----Original Message----- From: Prasanna Menta [mailto:pmenta@umuc.edu] Sent: 04/17/2003 2:34 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR error while using arrays. Bindu, Check to see if you have all the required begin and end parameters, say begin- procedure should also end with an end-procedure, if something is missing this usually happens Prasanna "Vallabhu, Bindu" wrote: > > Hi all, > > I am still trying to use the array like you guys suggested but now i get > this error: > > Error on line 91: > (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. > > SQR: Program Aborting. > > In the SQR.ini file i have increased the SQLSIZE=65535 the maximum allowed > value but the error wont go away. Now what do i do. Somebody please help!!! > > Thank you, > Bindu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Thu Apr 17 14:36:55 2003 Date: Thu, 17 Apr 2003 12:35:02 -0700 (PDT) From: harold johnson Subject: [sqr-users] Please remove me from the group mailing Please remove me from the group mailing.. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 18 11:45:27 2003 From: jigisha.chaudhari@prudential.com Date: Fri, 18 Apr 2003 12:41:09 -0400 Subject: [sqr-users] Selecting fields that are also keywords Selecting fields that are also keywords I am trying to select the PERCENT field from a table and getting the error message: (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 156 in cursor 6: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'percent'. Exhausted the possibilities of using load-lookup and arrays. Any suggestions would be appreciated. See Code: begin-select on-error=Process-Error n.ownerid w.begpd w.percent &percentage if #total_seg_amount <> 0 do Insert-SSAJournal-Record end-if move &n.ownerid to $ssentity let #percent = &percentage/100 let #seg_amount = #amt * #percent let #seg_amount = edit(#seg_amount,'999999999999.99') let #total_seg_amount = #seg_amount + #total_seg_amount let #total_seg_amount = edit(#total_seg_amount,'999999999999.99') from GNAM n, GOWN w where n.ownerid = w.ownerid and n.sssegown = 'Y' and n.ownstatus = 'Y' and w.entityid = $entityid and (w.begpd <= $period and w.endpd >= $period) order by n.ownerid, w.begpd desc end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 18 14:48:05 2003 Subject: RE: [sqr-users] Selecting fields that are also keywords Date: Fri, 18 Apr 2003 14:45:17 -0500 From: "Knapp, Richard" I think your best bet will be to alter the table and add a column for percent that isn't named a keyword and copy the data from percent to that column. Or, if you want to be real tidy, you can create a new table as select from the old, moving the percent column into one with a different name. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: jigisha.chaudhari@prudential.com [mailto:jigisha.chaudhari@prudential.com] Sent: Friday, April 18, 2003 11:41 AM To: sqr-users@sqrug.org Subject: [sqr-users] Selecting fields that are also keywords Selecting fields that are also keywords I am trying to select the PERCENT field from a table and getting the error message: (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 156 in cursor 6: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'percent'. Exhausted the possibilities of using load-lookup and arrays. Any suggestions would be appreciated. See Code: begin-select on-error=Process-Error n.ownerid w.begpd w.percent &percentage if #total_seg_amount <> 0 do Insert-SSAJournal-Record end-if move &n.ownerid to $ssentity let #percent = &percentage/100 let #seg_amount = #amt * #percent let #seg_amount = edit(#seg_amount,'999999999999.99') let #total_seg_amount = #seg_amount + #total_seg_amount let #total_seg_amount = edit(#total_seg_amount,'999999999999.99') from GNAM n, GOWN w where n.ownerid = w.ownerid and n.sssegown = 'Y' and n.ownstatus = 'Y' and w.entityid = $entityid and (w.begpd <= $period and w.endpd >= $period) order by n.ownerid, w.begpd desc end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Sat Apr 19 14:45:48 2003 From: James Womeldorf Subject: RE: [sqr-users] Selecting fields that are also keywords Date: Sat, 19 Apr 2003 14:43:21 -0500 Perhaps you can create a view for your sqrs to use which includes the entire table, but which has more agreeable field names. That way nothing else in your system is affected and your sqrs will never have to know that the offending field name exists. Jim -----Original Message----- From: jigisha.chaudhari@prudential.com [mailto:jigisha.chaudhari@prudential.com] Sent: Friday, April 18, 2003 11:41 AM To: sqr-users@sqrug.org Subject: [sqr-users] Selecting fields that are also keywords Selecting fields that are also keywords I am trying to select the PERCENT field from a table and getting the error message: (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 156 in cursor 6: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'percent'. Exhausted the possibilities of using load-lookup and arrays. Any suggestions would be appreciated. See Code: begin-select on-error=Process-Error n.ownerid w.begpd w.percent &percentage if #total_seg_amount <> 0 do Insert-SSAJournal-Record end-if move &n.ownerid to $ssentity let #percent = &percentage/100 let #seg_amount = #amt * #percent let #seg_amount = edit(#seg_amount,'999999999999.99') let #total_seg_amount = #seg_amount + #total_seg_amount let #total_seg_amount = edit(#total_seg_amount,'999999999999.99') from GNAM n, GOWN w where n.ownerid = w.ownerid and n.sssegown = 'Y' and n.ownstatus = 'Y' and w.entityid = $entityid and (w.begpd <= $period and w.endpd >= $period) order by n.ownerid, w.begpd desc end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri Apr 18 14:44:06 2003 Date: Fri, 18 Apr 2003 12:41:14 -0700 (PDT) From: harold johnson Subject: Fwd: [sqr-users] Please remove me from the group mailing This is a multi-part message in MIME format... --0-1933146996-1050694874=:34839 Content-Type: text/plain; charset=us-ascii Please remove me from the sqr users group. Note: forwarded message attached. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. --0-1933146996-1050694874=:34839 Content-Type: message/rfc822 X-Apparently-To: samgrant2003@yahoo.com via 216.136.226.140; 17 Apr 2003 12:44:17 -0700 (PDT) X-Track: -40 Return-Path: Received: from 199.164.165.113 (EHLO seldon.sqrug.org) (199.164.165.113) by mta605.mail.yahoo.com with SMTP; 17 Apr 2003 12:44:14 -0700 (PDT) Received: from seldon.sqrug.org (list@localhost [127.0.0.1]) by seldon.sqrug.org (8.12.3/8.12.3/Debian-6.3) with ESMTP id h3HJasK4009455; Thu, 17 Apr 2003 14:36:55 -0500 Received: from web20512.mail.yahoo.com (web20512.mail.yahoo.com [216.136.175.20]) by seldon.sqrug.org (8.12.3/8.12.3/Debian-6.3) with SMTP id h3HJZ7K4009426 for ; Thu, 17 Apr 2003 14:35:07 -0500 Received: from [209.222.212.42] by web20512.mail.yahoo.com via HTTP; Thu, 17 Apr 2003 12:35:02 PDT Date: Thu, 17 Apr 2003 12:35:02 -0700 (PDT) From: harold johnson To: sqr-users@sqrug.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [sqr-users] Please remove me from the group mailing Sender: sqr-users-admin@sqrug.org Errors-To: sqr-users-admin@sqrug.org X-BeenThere: sqr-users@sqrug.org X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: sqr-users@sqrug.org List-Help: List-Post: List-Subscribe: , List-Id: This list is for discussion about the SQR database reporting language from Brio Software. List-Unsubscribe: , Content-Length: 281 Please remove me from the group mailing.. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0-1933146996-1050694874=:34839-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Apr 19 10:33:39 2003 Date: Sat, 19 Apr 2003 08:31:28 -0700 From: David Donnelly Subject: [sqr-users] Re: Selecting fields that are also keywords I agree that changing the name of the field is the easiest solution, if this is in your power and this field is not being use many times in multiple modules. Another possibility would be to construct this column-name as a dynamic column, e.g., let $percent = 'w.percent' begin-select [$percent] &percentage=number I don't have any experience with ODBC, but using dynamic columns avoids compile-time checking, so maybe you can sneak it by this way. Dave Donnelly ISIS BioComp phone (909) 677-2446 fax (781) 207-5533 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 21 07:31:37 2003 From: "Therese Morris" Date: Mon, 21 Apr 2003 08:52:58 -0400 Subject: [sqr-users] Age Calculation The following is the code I've used to calculate a person's age. Running it today, April 17, 2003, it left blank, didn't calculate, the age for any April 17th birthdate. What can I add to calculate ages for all birthdates? SQR/4.2.1/DEC ALPHA/OpenVMS 6.2/Oracle 7.1.3.2/Mar 20 1998 SCT Banner 5 select awconoc_id id, spbpers_birth_date dob, substr(to_char(months_between(trunc(sysdate),spbpers_birth_date)/12),1, (instr(to_char(months_between(trunc(sysdate),spbpers_birth_date)/12),'.')-1)) age from awconoc, aprcatg, spbpers where awconoc_pidm = aprcatg_pidm and awconoc_pidm = spbpers_pidm and spbpers_birth_date is not null and spbpers_sex = 'F' and aprcatg_donr_code in ('ALM1','ALM2'); commit; ******************************* Therese M. Morris Computer Systems Specialist Development Office Alumni House University of Hartford 312 Bloomfield Avenue West Hartford, CT 06117 Phone: 860-768-5113 Email: tmorris@Hartford.edu ******************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 21 07:56:14 2003 From: Scott Eubank Subject: RE: [sqr-users] Age Calculation Date: Mon, 21 Apr 2003 08:54:42 -0400 Most Usefully in Bars when trying to pick up legal age women! -----Original Message----- From: Therese Morris [mailto:tmorris@hartford.edu] Sent: Monday, April 21, 2003 8:53 AM To: sqr-users@sqrug.org Subject: [sqr-users] Age Calculation The following is the code I've used to calculate a person's age. Running it today, April 17, 2003, it left blank, didn't calculate, the age for any April 17th birthdate. What can I add to calculate ages for all birthdates? SQR/4.2.1/DEC ALPHA/OpenVMS 6.2/Oracle 7.1.3.2/Mar 20 1998 SCT Banner 5 select awconoc_id id, spbpers_birth_date dob, substr(to_char(months_between(trunc(sysdate),spbpers_birth_date)/12),1, (instr(to_char(months_between(trunc(sysdate),spbpers_birth_date)/12),'.')-1) ) age from awconoc, aprcatg, spbpers where awconoc_pidm = aprcatg_pidm and awconoc_pidm = spbpers_pidm and spbpers_birth_date is not null and spbpers_sex = 'F' and aprcatg_donr_code in ('ALM1','ALM2'); commit; ******************************* Therese M. Morris Computer Systems Specialist Development Office Alumni House University of Hartford 312 Bloomfield Avenue West Hartford, CT 06117 Phone: 860-768-5113 Email: tmorris@Hartford.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-admin@sqrug.org Mon Apr 21 08:56:23 2003 Date: Mon, 21 Apr 2003 08:55:07 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Age Calculation On Mon, 21 Apr 2003, Therese Morris wrote: > The following is the code I've used to calculate a person's age. > Running it today, April 17, 2003, it left blank, didn't calculate, > the age for any April 17th birthdate. What can I add to calculate > ages for all birthdates? try... trunc(months_between(trunc(sysdate),spbpers_birth_date)/12) age Your character conversion depended on a decimal point appearing, which doesn't always happen. And if it "has" to be a character returned, you can "to_char" the above HTH, ----------------------------------------------------------------------- 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-admin@sqrug.org Mon Apr 21 10:31:37 2003 From: Scott Eubank Date: Mon, 21 Apr 2003 11:29:09 -0400 Subject: [sqr-users] An Interesting Problem I have a request from Accounts Payable to do a match or Vendor Addresses in PSoft Fianacials against Employee Address in Psoft HRMS. There is bound to be a pattern for this type of request, I am wondering if anyone has excuted this kind of request in SQR, Perl, or Python. These are the languages at my disposal. I would prefer SQR since this is an SQR group. I was thinking I would begin by doing a join on the zip codes field that would eliminate much of the extraneous data , then compare only the first two words of the Address on each table and report the results. I know that my method would not be particularly accurate and accuracy isn't a driving factor. I just need to be approxamately close. I was told to not spend too much time on this but in reality this is a complex problem to solve. So what do you guys think? Any code, algorthyms, or ideas would be greatly appreciated. Scott _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 21 10:43:15 2003 Date: Mon, 21 Apr 2003 11:41:40 -0400 From: "George Jansen" Subject: Re: [sqr-users] An Interesting Problem You could perhaps save yourself some trouble if you have address-correction software such as Group One or FirstLogic. These will give you standardized, easily matched, addresses. Or you could go with some sort of "keyline": 5 positions of zip + N non-space, maybe non-vowel positions of address. At my shop, I'd pull the addresses & ids out, run them through FirstLogic ACE, then match. At a shop without such tools, I'd probably keyline with Perl, since it makes the string-handling so easy. George Jansen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 21 10:47:09 2003 Subject: RE: [sqr-users] An Interesting Problem Date: Mon, 21 Apr 2003 10:44:55 -0500 From: "Knapp, Richard" I think your approach is a good one. I would look for another way to compare the street addresses, though. The problem is that there is not usually a standard that is universally applied regarding the representation of any text field but names and addresses especially. For example, 1805 East Walnut could be 1805 E. Walnut or 1805 E.Walnut. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Scott Eubank [mailto:SEUBANK@advance-auto.com] Sent: Monday, April 21, 2003 10:29 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] An Interesting Problem I have a request from Accounts Payable to do a match or Vendor Addresses in PSoft Fianacials against Employee Address in Psoft HRMS. There is bound to be a pattern for this type of request, I am wondering if anyone has excuted this kind of request in SQR, Perl, or Python. These are the languages at my disposal. I would prefer SQR since this is an SQR group. I was thinking I would begin by doing a join on the zip codes field that would eliminate much of the extraneous data , then compare only the first two words of the Address on each table and report the results. I know that my method would not be particularly accurate and accuracy isn't a driving factor. I just need to be approxamately close. I was told to not spend too much time on this but in reality this is a complex problem to solve. So what do you guys think? Any code, algorthyms, or ideas would be greatly appreciated. Scott _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 21 11:19:12 2003 From: "David Brawner" Subject: RE: [sqr-users] An Interesting Problem Date: Mon, 21 Apr 2003 12:17:59 -0400 Since you will undoubtedly run into variations with how addresses are entered, my approach for this type request has been to parse out various words or pieces of the address field for comparison. i.e. You're looking for 5237 East Main. You have eliminated city,state pairs by zip code filtering, now look for occurences of the street name such as "Main". Then look for occurences of the capitalized "E", and finally occurences of the street number, such as "5237". let $input_string = upper($input_string) Parse your input string into $street_num $street_dir $street_name or something similar find $street_name in upper($data_string) 0 #street if #street = 1 find $street_number in upper($data_string) 0 #number etc. etc. I find this, while more complex to code, produces high quality results. Built a piece at a time you'll find it's not too difficult to accomplish. Dave -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Scott Eubank Sent: Monday, April 21, 2003 11:29 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] An Interesting Problem I have a request from Accounts Payable to do a match or Vendor Addresses in PSoft Fianacials against Employee Address in Psoft HRMS. There is bound to be a pattern for this type of request, I am wondering if anyone has excuted this kind of request in SQR, Perl, or Python. These are the languages at my disposal. I would prefer SQR since this is an SQR group. I was thinking I would begin by doing a join on the zip codes field that would eliminate much of the extraneous data , then compare only the first two words of the Address on each table and report the results. I know that my method would not be particularly accurate and accuracy isn't a driving factor. I just need to be approxamately close. I was told to not spend too much time on this but in reality this is a complex problem to solve. So what do you guys think? Any code, algorthyms, or ideas would be greatly appreciated. Scott _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 21 14:33:21 2003 From: jigisha.chaudhari@prudential.com Date: Mon, 21 Apr 2003 15:29:48 -0400 Subject: [sqr-users] Re: Selecting fields that are also keywords We just figured out a way to do this. Our database is a SQL Server db. To be able to use a keyword you need to put " " (double quotes) around the word. See example: begin-report begin-select ownerid &own "percent" &pct show &own ' ' &pct from gown end-select end-report Jigisha Chaudhari PIM Real Estate Systems To: sqr-users@sqrug.org Phone Number: 973-683-1630 cc: Fax Number: 973-683-1791 Subject: Selecting fields that are also keywords Friday April 18, 2003 12:41 PM Selecting fields that are also keywords I am trying to select the PERCENT field from a table and getting the error message: (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 156 in cursor 6: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'percent'. Exhausted the possibilities of using load-lookup and arrays. Any suggestions would be appreciated. See Code: begin-select on-error=Process-Error n.ownerid w.begpd w.percent &percentage if #total_seg_amount <> 0 do Insert-SSAJournal-Record end-if move &n.ownerid to $ssentity let #percent = &percentage/100 let #seg_amount = #amt * #percent let #seg_amount = edit(#seg_amount,'999999999999.99') let #total_seg_amount = #seg_amount + #total_seg_amount let #total_seg_amount = edit(#total_seg_amount,'999999999999.99') from GNAM n, GOWN w where n.ownerid = w.ownerid and n.sssegown = 'Y' and n.ownstatus = 'Y' and w.entityid = $entityid and (w.begpd <= $period and w.endpd >= $period) order by n.ownerid, w.begpd desc end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 21 16:31:20 2003 From: "Hunter, Connie R Ms USAREC" Date: Mon, 21 Apr 2003 17:30:41 -0400 Subject: [sqr-users] Trying to use "EXECUTE -XC" Help! (using ver 6.1.2, Sybase) I have a temporory table created in my first stored procedure being called. (data is then loaded into an array). ************* Begin-Procedure Master_Query EXECUTE -XC DO=Load_Array @#proc_return_status = hunterc.webSPA_FAZR1112_MAIN INTO BLAH, BLAH, BLAH *************** *************** EXECUTE DO=PRINT_RMKS @#proc_return_status = hunterc.webSPA_FAZR1112_REMARKS @as_uic = $UI_CD INTO BLAH, BLAH, BLAH *************** I need to use the temporary table for one last data pull before it is dropped. (this stored procedure "webSPA_FAZR1112_REMARKS" calls/uses the temporary table created in the first execute). Problem is ---- the temp table disappears before I can get the info back. We've tried using EXECUTE -XC, thinking it but it doesn't seem to be doing what we expected. Any help would be appreciated. Connie US Army Recruiting Command _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 22 13:34:39 2003 From: "Preetam Kothapally" Date: Tue, 22 Apr 2003 13:31:14 -0500 Subject: [sqr-users] Selecting from one database and updating/inserting in another. Hi, I need to select from one Oracle database (Peoplesoft) and update/insert in another Oracle database. Could anybody help me with this? Thanks, Preetam _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 22 13:46:06 2003 Subject: Re: [sqr-users] Selecting from one database and updating/inserting in another. From: Rick_Creel@aoncons.com Date: Tue, 22 Apr 2003 14:44:43 -0400 Have your DBA establish a link between the 2 databases. Then you can select from one and insert into another. Lets say you are running your SQR while attached to a database called PROD you want to get data from a database called TEST Your DBA creates a link from the PROD database to the TEST database and this link is called TESTDB begin-sql insert into sometable select fields from anothertable@TESTDB end-sql "Preetam Kothapally" To: sqr-users@sqrug.org Subject: [sqr-users] Selecting from one database and Sent by: updating/inserting in another. sqr-users-admin@s qrug.org 04/22/2003 02:31 PM Please respond to sqr-users Hi, I need to select from one Oracle database (Peoplesoft) and update/insert in another Oracle database. Could anybody help me with this? Thanks, Preetam _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 22 13:52:06 2003 Date: Tue, 22 Apr 2003 14:50:06 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Selecting from one database and updating/inserting in another. You need to establish a db link to do this Prasanna Preetam Kothapally wrote: > > Hi, > > I need to select from one Oracle database (Peoplesoft) and update/insert in > another Oracle database. Could anybody help me with this? > > Thanks, > Preetam > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Tue Apr 22 14:13:55 2003 Date: Tue, 22 Apr 2003 15:09:08 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] Selecting from one database and updating/inserting in another. You can do this without a database link too, using the -DB option. You could run you begin-select in one database, then on your begin-sql line for the insert, add the -DB flag to make the insert happen in the other database. Here is the syntax (this was pasted from the SQR Command Help reference under "begin-sql"): -DBdatabase (SQLBase) Specifies the default database name for this SQL paragraph only. -DBconnectionstring (ODBC) Specifies the ODBC connection string for this SQL paragraph only. A connection string has the following syntax: DSN=data_source_name[;keyword=value[;keyword=value [;...]]] This option allows you to combine data from multiple databases in one program. For example, a connection string for an Oracle named "ora8" might look like the following: 'DSN=ora8;UID=scott;PWD=tiger' where DSN, UID, and PWD are keywords common to all drivers (representing '. name, user ID, and password, respectively). Connection string options are always separated by a semicolon (;). Other driver-specific options may be added to the connection string using driver-defined keywords. See your ODBC driver documentation for available options. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> preetamk@hotmail.com 4/22/2003 2:31:14 PM >>> Hi, I need to select from one Oracle database (Peoplesoft) and update/insert in another Oracle database. Could anybody help me with this? Thanks, Preetam _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 22 14:42:19 2003 Subject: RE: [sqr-users] Selecting from one database andupdating/inserting in another. Date: Tue, 22 Apr 2003 14:16:40 -0500 From: "Knapp, Richard" Or you can "connect" to the remote db from within the SQR environment. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Jamie Harris [mailto:JHarris@frederick.edu] Sent: Tuesday, April 22, 2003 2:09 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Selecting from one database andupdating/inserting in another. You can do this without a database link too, using the -DB option. You could run you begin-select in one database, then on your begin-sql line for the insert, add the -DB flag to make the insert happen in the other database. Here is the syntax (this was pasted from the SQR Command Help reference under "begin-sql"): -DBdatabase (SQLBase) Specifies the default database name for this SQL paragraph only. -DBconnectionstring (ODBC) Specifies the ODBC connection string for this SQL paragraph only. A connection string has the following syntax: DSN=data_source_name[;keyword=value[;keyword=value [;...]]] This option allows you to combine data from multiple databases in one program. For example, a connection string for an Oracle named "ora8" might look like the following: 'DSN=ora8;UID=scott;PWD=tiger' where DSN, UID, and PWD are keywords common to all drivers (representing '. name, user ID, and password, respectively). Connection string options are always separated by a semicolon (;). Other driver-specific options may be added to the connection string using driver-defined keywords. See your ODBC driver documentation for available options. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> preetamk@hotmail.com 4/22/2003 2:31:14 PM >>> Hi, I need to select from one Oracle database (Peoplesoft) and update/insert in another Oracle database. Could anybody help me with this? Thanks, Preetam _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 22 14:24:06 2003 From: "Ashish Bhatt" Date: Tue, 22 Apr 2003 19:22:28 +0000 Subject: [sqr-users] SQR run time Hi All SQR Gurus, I hope you are doing fine today. I want to display on UNIX screen my sqr start time and end time. Is there any easy way to do this using call to some sqc function ? I don't want to get sysdate from database twice. Please let me know. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 23 03:27:02 2003 Date: Wed, 23 Apr 2003 10:25:19 +0200 (CEST) From: =?iso-8859-1?q?Christophe=20CHOUX?= Subject: Re: [sqr-users] SQR run time why you doesn't want to use sysdate ... it works very well ... for every procedure if you want ;-) Ashish Bhatt wrote:Hi All SQR Gurus, I hope you are doing fine today. I want to display on UNIX screen my sqr start time and end time. Is there any easy way to do this using call to some sqc function ? I don't want to get sysdate from database twice. Please let me know. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 23 08:37:59 2003 Date: Wed, 23 Apr 2003 08:36:04 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR run time On Wed, 23 Apr 2003, [iso-8859-1] Christophe CHOUX wrote: > > why you doesn't want to use sysdate ... it works very well ... for every procedure if you want ;-) > Ashish Bhatt wrote:Hi All SQR Gurus, > > I hope you are doing fine today. > > I want to display on UNIX screen my sqr start time and end time. > > Is there any easy way to do this using call to some sqc function ? If you want to remain database independent, and ate on SQR 4.0 or above, you can use the value of the reserved date variable "$current-date" as the start time, and the "datenow()" function at the end of the run. Remember that these are/return dates and must be formatted to show time, something like.... show 'Start Time: ' $current-date edit 'HH24:MI:SS' ... rest of program ... let $end = datetostr(datenow(),'HH24:MI:SS') show 'Completed : ' $end Of course, on longer programs, you may want to include the day, month, and year in the format for start and end. ;) HTH, ----------------------------------------------------------------------- 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-admin@sqrug.org Tue Apr 22 14:53:06 2003 From: "Aguirre, Jose" Date: Tue, 22 Apr 2003 14:50:30 -0500 Subject: [sqr-users] (no subject) Hello all, Is it possible to delete a row from a .txt file under a certain criteria thru an SQR while it is open? Thanks, José A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 23 05:39:15 2003 Date: Tue, 22 Apr 2003 16:29:10 -0400 From: don.barclay@srs.gov Subject: Re: [sqr-users] (no subject) José, Not that I am aware of. We've done something similar by renaming a file, opening a new file (with the same name as the original file), and reading each line of the original file. If the line meets the criteria, write it to the new file -- otherwise discard it. In the end, you can delete the original file with the new name. Here's the code to rename the original file: let $FileName = 'c:\temp\original name.txt' let $Backup = 'c:\temp\new name.txt' Let #DeleteStatus = delete($Backup) Let #RenameStatus = rename($FileName,$Backup) If #RenameStatus <> 0 show 'Could not rename file ' $FileName Stop end-if Don Barclay Westinghouse Savannah River Co. Aiken, SC "Aguirre, Jose" Sent by: sqr-users-admin@sqrug.org 04/22/2003 03:50 PM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] (no subject) Hello all, Is it possible to delete a row from a .txt file under a certain criteria thru an SQR while it is open? Thanks, José A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 22 15:34:09 2003 Date: Tue, 22 Apr 2003 16:30:01 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] (no subject) To do this, you'd have to do the following: 1. Open the file for reading. 2. Open a temporary file for writing (could also use an array for this!) 3. Loop through the input file and check each row. If it does NOT meet the deletion criteria, write the record out into the temp. file or array. If it does, just skip it. 4. After you're done, close both files. 5. Use "call system using" to delete the original file and rename the temp. file with the original file's name. Or, if you went with an array instead, just open the original file for writing, loop through the array and write each record back into the file. Note that if this is going to be run on a server, the above will NOT work unless you implement some sort of file-locking mechanism. (So that multiple people can run the program at the same time) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> JAguir@lsuhsc.edu 4/22/2003 3:50:30 PM >>> Hello all, Is it possible to delete a row from a .txt file under a certain criteria thru an SQR while it is open? Thanks, José A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 22 15:32:06 2003 Subject: RE: [sqr-users] (no subject) Date: Tue, 22 Apr 2003 15:30:06 -0500 From: "Knapp, Richard" No. SQR can deal with flat (non-indexed) files only. You can write out another, updated version of the file without the rows you want to delete. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Aguirre, Jose [mailto:JAguir@lsuhsc.edu] Sent: Tuesday, April 22, 2003 2:51 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] (no subject) Hello all, Is it possible to delete a row from a .txt file under a certain criteria thru an SQR while it is open? Thanks, José A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 23 14:05:00 2003 From: "Vallabhu, Bindu" Date: Wed, 23 Apr 2003 15:02:31 -0400 Subject: [sqr-users] columns in a SQL statement Hi everybody, I have to join 3 tables and retrieve 1071 columns. I am getting this error Error on line 111: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. and this time it is not because i missed out any "Begin-Procedure" "End-Procedure" or "Begin-Select" "End-Select" statements. Has anyone out there selected these many columns before - any ideas? Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 23 14:13:05 2003 Subject: RE: [sqr-users] columns in a SQL statement Date: Wed, 23 Apr 2003 15:11:43 -0400 From: "Katragadda, Sridhar (CORP, Consultant)" Change pssqr.ini if it is windows or pssqr.unx for unix env. thanks -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Wednesday, April 23, 2003 3:03 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] columns in a SQL statement Hi everybody, I have to join 3 tables and retrieve 1071 columns. I am getting this error Error on line 111: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. and this time it is not because i missed out any "Begin-Procedure" "End-Procedure" or "Begin-Select" "End-Select" statements. Has anyone out there selected these many columns before - any ideas? Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 23 16:52:07 2003 Subject: RE: [sqr-users] columns in a SQL statement Date: Wed, 23 Apr 2003 16:50:28 -0500 From: "Knapp, Richard" Is a filename being passed with the -M flag? If so, make the change in that file, else use the flag to point to a startup file you create where you can adjust the parameters. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@Staples.com] Sent: Wednesday, April 23, 2003 2:03 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] columns in a SQL statement Hi everybody, I have to join 3 tables and retrieve 1071 columns. I am getting this error Error on line 111: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. and this time it is not because i missed out any "Begin-Procedure" "End-Procedure" or "Begin-Select" "End-Select" statements. Has anyone out there selected these many columns before - any ideas? Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 23 17:11:55 2003 Date: Wed, 23 Apr 2003 18:09:25 -0400 From: "George Jansen" Subject: RE: [sqr-users] columns in a SQL statement The task sounds like the problem here. Why retrieve 1071 columns? For data transfer? If so, you might want to look at splitting the task up. Oracle through 9i limits tables to 1000 columns, which suggests to me that the result set might be so limited. At the moment I don't have the leisure to try building any such statement with a nother tool, though. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 24 10:42:06 2003 From: Ramzi_Salameh@daveandbusters.com Date: Thu, 24 Apr 2003 10:38:30 -0500 Subject: [sqr-users] DSN question Good morning group, Is it possible to use a variable in the -DB construct for the DSN value. We are wanting to be able to point to a specific database instance to process an update on, based on the environment the SQR is running from, without having to have different procedures to call depending on the environment. We're using SQL Server 2000, PeopleSoft 8, SQR for PS 8. ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 24 10:57:26 2003 From: Bill Beckner Subject: RE: [sqr-users] DSN question Date: Thu, 24 Apr 2003 10:56:27 -0500 You can use a variable in the -DB construct. For example: LET $DbConnect = 'DSN=' || $DBName || ';UID=xxxxxx;PWD=yyyyyy' BEGIN-SQL -DB$DbConnect ON-ERROR=SQL-Error We ran into a problem though...the version of SQR that was delivered does not support ODBC connectivity (SQR for PeopleSoft v8.4). Does PeopleSoft have an ODBC version? -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." -----Original Message----- From: Ramzi_Salameh@daveandbusters.com [mailto:Ramzi_Salameh@daveandbusters.com] Sent: Thursday, April 24, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] DSN question Good morning group, Is it possible to use a variable in the -DB construct for the DSN value. We are wanting to be able to point to a specific database instance to process an update on, based on the environment the SQR is running from, without having to have different procedures to call depending on the environment. We're using SQL Server 2000, PeopleSoft 8, SQR for PS 8. ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 24 11:02:25 2003 Subject: RE: [sqr-users] DSN question From: Ramzi_Salameh@daveandbusters.com Date: Thu, 24 Apr 2003 11:01:00 -0500 Thanks for the info. Yes, PeopleSoft does deliver an ODBC version of SQR. Thanks again, ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ Bill Beckner > cc: Sent by: Subject: RE: [sqr-users] DSN question sqr-users-admin@s qrug.org 04/24/03 10:56 AM Please respond to sqr-users You can use a variable in the -DB construct. For example: LET $DbConnect = 'DSN=' || $DBName || ';UID=xxxxxx;PWD=yyyyyy' BEGIN-SQL -DB$DbConnect ON-ERROR=SQL-Error We ran into a problem though...the version of SQR that was delivered does not support ODBC connectivity (SQR for PeopleSoft v8.4). Does PeopleSoft have an ODBC version? -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "There are 10 types of people in the world...those that know binary and those that don't." -----Original Message----- From: Ramzi_Salameh@daveandbusters.com [mailto:Ramzi_Salameh@daveandbusters.com] Sent: Thursday, April 24, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] DSN question Good morning group, Is it possible to use a variable in the -DB construct for the DSN value. We are wanting to be able to point to a specific database instance to process an update on, based on the environment the SQR is running from, without having to have different procedures to call depending on the environment. We're using SQL Server 2000, PeopleSoft 8, SQR for PS 8. ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Apr 24 16:04:39 2003 Date: Thu, 24 Apr 2003 17:01:58 -0400 From: Scotty Barnes Subject: [sqr-users] Dir Maintenance Program??? Hello Has anyone wrote a dir maintenance program in SQR for a Windows environment that will scan through log files and delete old ones. But more importantly also be able to delete the DIR structure if it is empty. In the Version 8 PS every SQR that is run creates a sub folder that stores the log files. I want to delete these old empty sub folders with an automated process using SQR... Thanks Scotty ---------- Scott A Barnes Programmer/Analyst Wesleyan University North College 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Apr 24 16:56:37 2003 From: "the dragon" Subject: Re: [sqr-users] Dir Maintenance Program??? Date: Thu, 24 Apr 2003 16:55:24 -0500 I think there is a setting in the PS 8 configuration somewhere that will perform this function for you. 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 Has anyone wrote a dir maintenance program in SQR for a Windows environment that will scan through log files and delete old ones. But more importantly also be able to delete the DIR structure if it is empty. In the Version 8 PS every SQR that is run creates a sub folder that stores the log files. I want to delete these old empty sub folders with an automated process using SQR... Thanks Scotty ---------- Scott A Barnes Programmer/Analyst Wesleyan University North College 860-685-2807 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 25 08:07:11 2003 From: Scott.Howser@Certegy.Com Date: Fri, 25 Apr 2003 09:04:36 -0400 Subject: [sqr-users] Question Dynamic Columns I am trying to print from a dynamic column as follows and am unable to do so. Do you have any suggestions or know if this is possible. begin-select AL43.Account_Number &Acct (1,2) !**** this line prints fine let $sm01= 'sum(case when AL42.REJ_REJECT_CODE in(''S'',''5'') AND to_char(AL43.DA_ACTUAL_DATE,''mmyy'')=' || to_char(#mmyy) || ' then al1.check_amt else 0 end)' [$sm01] &chk_amt=number (,15) !<--------this is the line where it will not print next-listing from... where... etc... end-select Thanks, Scott Howser Database Analyst Certegy Check Services 11601 Roosevelt Blvd., TA69 St. Petersburg, FL 33716 Phone: (727) 227-2801 ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Apr 25 09:27:29 2003 From: Ray Ontko Date: Fri, 25 Apr 2003 09:26:49 -0500 Subject: Re: [sqr-users] Question Dynamic Columns The value of $sm01 needs to be nailed down before you get to the begin-select. It won't help to change the value once you get inside the begin-select. Ray On Fri, Apr 25, 2003 at 09:04:36AM -0400, Scott.Howser@Certegy.Com wrote: > > I am trying to print from a dynamic column as follows and am unable to > do > so. Do you have any suggestions or know if this is possible. > > begin-select > AL43.Account_Number &Acct (1,2) !**** this line prints fine > let $sm01= 'sum(case when AL42.REJ_REJECT_CODE in(''S'',''5'') AND > to_char(AL43.DA_ACTUAL_DATE,''mmyy'')=' > || to_char(#mmyy) || ' then al1.check_amt else 0 > end)' > [$sm01] &chk_amt=number (,15) !<--------this is the line where > it > will not print > next-listing > from... > where... > etc... > end-select > > > > Thanks, > Scott Howser > Database Analyst > Certegy Check Services > 11601 Roosevelt Blvd., TA69 > St. Petersburg, FL 33716 > Phone: (727) 227-2801 > > > > > ------------------------------------------------------------------------------ > This message contains information from Certegy, Inc which may be > confidential and privileged. If you are not an intended recipient, > please refrain from any disclosure, copying, distribution or use of this > information and note that such actions are prohibited. If you have > received this transmission in error, please notify by e:mail > postmaster@certegy.com. > ============================================================================== > > _______________________________________________ > 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-admin@sqrug.org Mon Apr 28 11:46:22 2003 From: "Ashish Bhatt" Date: Mon, 28 Apr 2003 16:43:37 +0000 Subject: [sqr-users] How to read XML files using SQR ? Hi All, I hope you are doing fine today. I am facing problem. One of our vendor will be sending us file in XML format. We want to read the data from the XML file and populate the Peoplesoft tables. We are thinking of reading XML files using SQR. Has anyone done this ? or Is there any other way to read this file ? Please reply. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Apr 28 12:05:07 2003 Subject: Re: [sqr-users] How to read XML files using SQR ? From: Ramzi_Salameh@daveandbusters.com Date: Mon, 28 Apr 2003 12:04:40 -0500 What version of PeopleSoft are you using. If you're on any version of 8, there is new capability using file layouts that allows you to read files in XML format. You could setup an Application Engine to read the file - using a file layout - then call a component interface, via peoplecode, to process the data. Just a thought. If you are not on 8 or MUST use an SQR, then sorry...no help there. HTH, ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Ashish Bhatt" cc: peoplesoft-epm-l@OpenITx.com Sent by: Subject: [sqr-users] How to read XML files using SQR ? sqr-users-admin@s qrug.org 04/28/03 11:43 AM Please respond to sqr-users Hi All, I hope you are doing fine today. I am facing problem. One of our vendor will be sending us file in XML format. We want to read the data from the XML file and populate the Peoplesoft tables. We are thinking of reading XML files using SQR. Has anyone done this ? or Is there any other way to read this file ? Please reply. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Apr 28 13:28:17 2003 Subject: RE: [sqr-users] How to read XML files using SQR ? Date: Mon, 28 Apr 2003 13:27:20 -0500 From: "Knapp, Richard" The XML files are text files. You could search for the tag(s) that identify your data with an SQR program and move the fields of interest into PS tables. Could you let us know what you settle on? This may become a problem many of us will face in the future. Thanks. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Ashish Bhatt [mailto:ashish_bhatt@hotmail.com] Sent: Monday, April 28, 2003 11:44 AM To: sqr-users@sqrug.org Cc: peoplesoft-epm-l@OpenITx.com Subject: [sqr-users] How to read XML files using SQR ? Hi All, I hope you are doing fine today. I am facing problem. One of our vendor will be sending us file in XML format. We want to read the data from the XML file and populate the Peoplesoft tables. We are thinking of reading XML files using SQR. Has anyone done this ? or Is there any other way to read this file ? Please reply. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 29 10:24:20 2003 From: "Ashish Bhatt" Date: Tue, 29 Apr 2003 15:22:36 +0000 Subject: [sqr-users] SQR 3204 Error Hi All, I hope you are doing fine today. Does anyone know why I am getting below error: Error on line 357: SQR 3204 Length of Variables exceeds record length Please let me know how to get rid of it. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 10:33:05 2003 Subject: RE: [sqr-users] SQR 3204 Error Date: Tue, 29 Apr 2003 10:32:27 -0500 From: "Sengupta, Rajib (CAG-CC-Contractor)" This means the RECORD argument on OPEN command have a length less than the total of the lengths indicated. Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial and Order Management Conagra Business Systems Phone: 402-319-7340 -----Original Message----- From: Ashish Bhatt [mailto:ashish_bhatt@hotmail.com] Sent: Tuesday, April 29, 2003 10:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 3204 Error Hi All, I hope you are doing fine today. Does anyone know why I am getting below error: Error on line 357: SQR 3204 Length of Variables exceeds record length Please let me know how to get rid of it. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 29 10:48:05 2003 From: "Lynds,Rick" Subject: RE: [sqr-users] SQR 3204 Error Date: Tue, 29 Apr 2003 08:42:21 -0700 This typically occurs when writing out a flat file. Apparently you either omitted the length parameter on the "open" statement or used one that is too small. If you had the following statement: open FileName as 1 for-writing Record=200 status=#OutStat The write statement is trying to write out more than 200 characters. The simplest solution is to increase the size of the record parameter. HTH Rick -----Original Message----- From: Ashish Bhatt [mailto:ashish_bhatt@hotmail.com] Sent: Tuesday, April 29, 2003 8:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 3204 Error Hi All, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 10:46:06 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] SQR 3204 Error Date: Tue, 29 Apr 2003 08:49:32 -0700 That's right, Ashish. When you opened the file, you gave the compiler a record length. Now you're trying to write one or more variables to the file. You have to indicate how many bytes each variable needs. If you add up all the byte counts, your total is greater than the record length you gave when you opened the file. Either shorten the strings you're writing or increase the record length in your open statement. -----Original Message----- From: Sengupta, Rajib (CAG-CC-Contractor) [mailto:Rajib.Sengupta@conagrafoods.com] Sent: Tuesday, April 29, 2003 8:32 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR 3204 Error This means the RECORD argument on OPEN command have a length less than the total of the lengths indicated. Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial and Order Management Conagra Business Systems Phone: 402-319-7340 -----Original Message----- From: Ashish Bhatt [mailto:ashish_bhatt@hotmail.com] Sent: Tuesday, April 29, 2003 10:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 3204 Error Hi All, I hope you are doing fine today. Does anyone know why I am getting below error: Error on line 357: SQR 3204 Length of Variables exceeds record length Please let me know how to get rid of it. Thanks in advance. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 29 10:58:10 2003 Date: Tue, 29 Apr 2003 11:53:25 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] SQR 3204 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 11:10:12 2003 Date: Tue, 29 Apr 2003 12:09:01 -0400 From: "Larry Roux" Subject: RE: [sqr-users] SQR 3204 Error I have never used DB2, but it sounds like the number of returned columns was not the same as in the select statement. For instance, if you said: select ID NAME ADDRESS from PS_EMPLOYEE and the return set was 1001 Jones, Fred (nothing returned for address - not even a NULL) then you might get this error. Are you using dynamic fields or something? This seems to be a very odd error in SQR. I could see it in a malformed View being created... ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Tchaha@Roushind.com 04/29/03 11:53AM >>> Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Apr 29 10:30:10 2003 From: Scott.Howser@Certegy.Com Date: Tue, 29 Apr 2003 11:29:17 -0400 Subject: [sqr-users] using the on-break statement I am having trouble using the on-break statement I have a hierarchy of the form: level 1 Account level 2 region level 3 store If I have a query like below it will not force a new correctly, it chops the report up. Can someone explain how to force new pages, and create page breaks with the on-break command? begin-select Account (+1,1) on-break page=change region (,10) on-break page=change store (,20) on-break page=change from ~~~ where ~~~ end-select Thanks in advance for any help, Scott Howser Database Analyst Certegy Check Services 11601 Roosevelt Blvd., TA69 St. Petersburg, FL 33716 Phone: (727) 227-2801 ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 10:40:08 2003 Date: Tue, 29 Apr 2003 17:38:54 +0200 (CEST) From: =?iso-8859-1?q?Christophe=20CHOUX?= Subject: Re: [sqr-users] using the on-break statement Hi, when I need to do that. I create a procedure call Page-Break with the fonction new-page in it. and on each field I add before=Page-Break like Account (+1,1) on-break before=Page-Break region (,10) on-break before=Page-Break store (,20) on-break before=Page-Break Scott.Howser@Certegy.Com wrote: I am having trouble using the on-break statement I have a hierarchy of the form: level 1 Account level 2 region level 3 store If I have a query like below it will not force a new correctly, it chops the report up. Can someone explain how to force new pages, and create page breaks with the on-break command? begin-select Account (+1,1) on-break page=change region (,10) on-break page=change store (,20) on-break page=change from ~~~ where ~~~ end-select Thanks in advance for any help, Scott Howser Database Analyst Certegy Check Services 11601 Roosevelt Blvd., TA69 St. Petersburg, FL 33716 Phone: (727) 227-2801 ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 10:42:05 2003 From: skirklin@stl-inc.com Subject: RE: [sqr-users] using the on-break statement Date: Tue, 29 Apr 2003 09:41:17 -0600 I have used the on-break after=procedure where procedure is a procedure that has "new-page" in it. Sherri Kirklin Analyst/Programmer STL-Austin Ph: (512) 310-5286 Fax: (512) 244-0160 skirklin@stl-inc.com -----Original Message----- From: Scott.Howser@Certegy.Com [mailto:Scott.Howser@Certegy.Com] Sent: Tuesday, April 29, 2003 10:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] using the on-break statement I am having trouble using the on-break statement I have a hierarchy of the form: level 1 Account level 2 region level 3 store If I have a query like below it will not force a new correctly, it chops the report up. Can someone explain how to force new pages, and create page breaks with the on-break command? begin-select Account (+1,1) on-break page=change region (,10) on-break page=change store (,20) on-break page=change from ~~~ where ~~~ end-select Thanks in advance for any help, Scott Howser Database Analyst Certegy Check Services 11601 Roosevelt Blvd., TA69 St. Petersburg, FL 33716 Phone: (727) 227-2801 ---------------------------------------------------------------------------- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================ == _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 notify the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 12:22:40 2003 Date: Tue, 29 Apr 2003 13:16:18 -0400 From: "Tajinder Chahal" Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 13:28:09 2003 From: Peter Burton Subject: RE: [sqr-users] SQR 255 Error Date: Tue, 29 Apr 2003 11:26:19 -0700 Tajinder, 1) What is the exact version of SQR? 2) What is the platform? 3) Sample code that illustrates the problem. 4) What is the version of the DB2 client? 5) What is the version of the DB2 server? Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Tuesday, April 29, 2003 1:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 08:32:08 2003 Date: Wed, 30 Apr 2003 09:26:14 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] SQR 255 Error 1) Version of SQR - 8.42 2) Platform - Windows NT 4 3) Version of the DB2 client - 7.2 FP3 4) Version of the DB2 server - 7.2 FP9 Thanks >>> pburton@brio.com 04/29/03 02:26PM >>> Tajinder, 1) What is the exact version of SQR? 2) What is the platform? 3) Sample code that illustrates the problem. 4) What is the version of the DB2 client? 5) What is the version of the DB2 server? Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Tuesday, April 29, 2003 1:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 09:26:09 2003 From: Peter Burton Subject: RE: [sqr-users] SQR 255 Error Date: Wed, 30 Apr 2003 07:25:40 -0700 Tajinder, Do you have a sample .SQR program that illustrates the issue? Non-Peoplesoft specific example is preferred. Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Wednesday, April 30, 2003 9:26 AM To: pburton@brio.com; sqr-users@sqrug.org Subject: RE: [sqr-users] SQR 255 Error 1) Version of SQR - 8.42 2) Platform - Windows NT 4 3) Version of the DB2 client - 7.2 FP3 4) Version of the DB2 server - 7.2 FP9 Thanks >>> pburton@brio.com 04/29/03 02:26PM >>> Tajinder, 1) What is the exact version of SQR? 2) What is the platform? 3) Sample code that illustrates the problem. 4) What is the version of the DB2 client? 5) What is the version of the DB2 server? Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Tuesday, April 29, 2003 1:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 09:43:05 2003 Date: Wed, 30 Apr 2003 10:37:27 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] SQR 255 Error This is a multi-part message in MIME format... --=_9AC506BC.A1C09BCC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I do not know which particular section is causing the problem. All I get in the log file is the error message I sent earlier. I'm attaching the sqr program I'm trying to run. Thanks >>> pburton@brio.com 04/30/03 10:25AM >>> Tajinder, Do you have a sample .SQR program that illustrates the issue? Non-Peoplesoft specific example is preferred. Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Wednesday, April 30, 2003 9:26 AM To: pburton@brio.com; sqr-users@sqrug.org Subject: RE: [sqr-users] SQR 255 Error 1) Version of SQR - 8.42 2) Platform - Windows NT 4 3) Version of the DB2 client - 7.2 FP3 4) Version of the DB2 server - 7.2 FP9 Thanks >>> pburton@brio.com 04/29/03 02:26PM >>> Tajinder, 1) What is the exact version of SQR? 2) What is the platform? 3) Sample code that illustrates the problem. 4) What is the version of the DB2 client? 5) What is the version of the DB2 server? Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Tuesday, April 29, 2003 1:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 --=_9AC506BC.A1C09BCC 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. --=_9AC506BC.A1C09BCC-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 09:43:28 2003 Date: Wed, 30 Apr 2003 10:39:10 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] SQR 255 Error This is a multi-part message in MIME format... --=_1C438005.85E4BFE8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm sorry I sent the wrong sqr. The sqr I'm trying to run is attached. >>> pburton@brio.com 04/30/03 10:25AM >>> Tajinder, Do you have a sample .SQR program that illustrates the issue? Non-Peoplesoft specific example is preferred. Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Wednesday, April 30, 2003 9:26 AM To: pburton@brio.com; sqr-users@sqrug.org Subject: RE: [sqr-users] SQR 255 Error 1) Version of SQR - 8.42 2) Platform - Windows NT 4 3) Version of the DB2 client - 7.2 FP3 4) Version of the DB2 server - 7.2 FP9 Thanks >>> pburton@brio.com 04/29/03 02:26PM >>> Tajinder, 1) What is the exact version of SQR? 2) What is the platform? 3) Sample code that illustrates the problem. 4) What is the version of the DB2 client? 5) What is the version of the DB2 server? Peter -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com] Sent: Tuesday, April 29, 2003 1:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 255 Error Has anyone ever seen the error message below while trying to run an SQR. We are on DB2 and peopletools 8.4: *** Internal Coding Error *** (SQR 255) DBDESC: SQLD not = number of select columns. SQR for PeopleSoft: Program Aborting. Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 --=_1C438005.85E4BFE8 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. --=_1C438005.85E4BFE8-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Apr 29 14:41:22 2003 From: Ray Ontko Date: Tue, 29 Apr 2003 14:39:56 -0500 Subject: [sqr-users] Trusted Oracle and SQR SQR Users, Has anyone used "Trusted Oracle" with SQR? My understanding is that with Trusted Oracle, some or all of the information is stored in the database in encrypted form and is only decrypted when it gets delivered to the (Trusted?) Oracle 9i Client. Is that how it works? Has anyone used this with SQR? Is it transparent to SQR? Does it work with SQR? I'm on a Sun/Solaris box. Ray ---------------------------------------------------------------------- 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-admin@sqrug.org Wed Apr 30 09:02:07 2003 From: "Vallabhu, Bindu" Date: Wed, 30 Apr 2003 10:01:35 -0400 Subject: [sqr-users] SQR SQL statement Hi Everybody, I have the following procedure in my SQR program. I am building the where clause in this statement. There are classes 1,2,3,4,5 in dept 10. I want the report to print all Class level details and then the Dept level details. i am getting an error where even during the Dept number execution it is attempting to print class level details but is not getting a class number and so is erroring out - any ideas as to how i can circumvent this problem. Thank you, Bindu Begin-procedure main-query begin-select PDT_CLASS_NUMBER &class_number () on-break level = 2 print=never after = sls($where_classnum) PDT_CC_CLASS_DSCR &class_cc_desc PDT_DEPT_NUMBER &dept_number () on-break level = 1 print=never after = sls($where_deptnum) PDT_CC_DEPT_DSCR &dept_cc_dscr move &class_number to $class_number move &class_cc_desc to $class_cc_desc move &dept_number to $dept_number move &dept_cc_dscr to $dept_cc_dscr let $where_classnum = 'and pdt_class_number = ' || $class_number let $where_deptnum = 'and pdt_dept_number = ' || $dept_number from qatmdm.d_mpf_fp_pdt_dvsn_hrc_v dvsn, qatmdm.c_mpf_fp_corp_cmpy_v cmpy, qatmdm.d_mpf_fp_pln_vrsn_v plnvrsn, qatmdm.d_mpf_fp_orgn_v orgn where dvsn.pdt_ky = cmpy.pdt_ky and cmpy.pln_vrsn_ky = plnvrsn.pln_vrsn_ky and cmpy.lcn_ky = orgn.lcn_ky [$where_execgrp] [$where_deptlst] group by pdt_dept_number, pdt_cc_dept_dscr, pdt_class_number, pdt_cc_class_dscr order by pdt_dept_number, pdt_class_number end-select Thank you guys, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 09:08:06 2003 Date: Wed, 30 Apr 2003 10:07:18 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] SQR SQL statement Add an additional clause where class_number is <> ' ' or '' Hope this should resolve the issue "Vallabhu, Bindu" wrote: > > Hi Everybody, > I have the following procedure in my SQR program. I am building the where > clause in this statement. There are classes 1,2,3,4,5 in dept 10. I want the > report to print all Class level details and then the Dept level details. i > am getting an error where even during the Dept number execution it is > attempting to print class level details but is not getting a class number > and so is erroring out - any ideas as to how i can circumvent this problem. > Thank you, > Bindu > > Begin-procedure main-query > > begin-select > > PDT_CLASS_NUMBER &class_number () on-break level = 2 > print=never after = > sls($where_classnum) > > PDT_CC_CLASS_DSCR &class_cc_desc > > PDT_DEPT_NUMBER &dept_number () on-break level = 1 > print=never after = > sls($where_deptnum) > > PDT_CC_DEPT_DSCR &dept_cc_dscr > > move &class_number to $class_number > move &class_cc_desc to $class_cc_desc > move &dept_number to $dept_number > move &dept_cc_dscr to $dept_cc_dscr > > let $where_classnum = 'and pdt_class_number = ' || $class_number > let $where_deptnum = 'and pdt_dept_number = ' || $dept_number > > from qatmdm.d_mpf_fp_pdt_dvsn_hrc_v dvsn, > qatmdm.c_mpf_fp_corp_cmpy_v cmpy, > qatmdm.d_mpf_fp_pln_vrsn_v plnvrsn, > qatmdm.d_mpf_fp_orgn_v orgn > > where dvsn.pdt_ky = cmpy.pdt_ky > and cmpy.pln_vrsn_ky = plnvrsn.pln_vrsn_ky > and cmpy.lcn_ky = orgn.lcn_ky > [$where_execgrp] > [$where_deptlst] > > group by > pdt_dept_number, > pdt_cc_dept_dscr, > pdt_class_number, > pdt_cc_class_dscr > > order by > pdt_dept_number, > pdt_class_number > > > end-select > > Thank you guys, > Bindu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Wed Apr 30 10:22:20 2003 From: "Vallabhu, Bindu" Subject: RE: [sqr-users] SQR SQL statement Date: Wed, 30 Apr 2003 11:20:51 -0400 Thank you Prasanna - but that would not work in my case because the dept rows would have a class number of ' ' and if i put in that clause the dept rows would get left out. -----Original Message----- From: Prasanna Menta [mailto:pmenta@umuc.edu] Sent: 04/30/2003 10:07 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR SQL statement Add an additional clause where class_number is <> ' ' or '' Hope this should resolve the issue "Vallabhu, Bindu" wrote: > > Hi Everybody, > I have the following procedure in my SQR program. I am building the where > clause in this statement. There are classes 1,2,3,4,5 in dept 10. I want the > report to print all Class level details and then the Dept level details. i > am getting an error where even during the Dept number execution it is > attempting to print class level details but is not getting a class number > and so is erroring out - any ideas as to how i can circumvent this problem. > Thank you, > Bindu > > Begin-procedure main-query > > begin-select > > PDT_CLASS_NUMBER &class_number () on-break level = 2 > print=never after = > sls($where_classnum) > > PDT_CC_CLASS_DSCR &class_cc_desc > > PDT_DEPT_NUMBER &dept_number () on-break level = 1 > print=never after = > sls($where_deptnum) > > PDT_CC_DEPT_DSCR &dept_cc_dscr > > move &class_number to $class_number > move &class_cc_desc to $class_cc_desc > move &dept_number to $dept_number > move &dept_cc_dscr to $dept_cc_dscr > > let $where_classnum = 'and pdt_class_number = ' || $class_number > let $where_deptnum = 'and pdt_dept_number = ' || $dept_number > > from qatmdm.d_mpf_fp_pdt_dvsn_hrc_v dvsn, > qatmdm.c_mpf_fp_corp_cmpy_v cmpy, > qatmdm.d_mpf_fp_pln_vrsn_v plnvrsn, > qatmdm.d_mpf_fp_orgn_v orgn > > where dvsn.pdt_ky = cmpy.pdt_ky > and cmpy.pln_vrsn_ky = plnvrsn.pln_vrsn_ky > and cmpy.lcn_ky = orgn.lcn_ky > [$where_execgrp] > [$where_deptlst] > > group by > pdt_dept_number, > pdt_cc_dept_dscr, > pdt_class_number, > pdt_cc_class_dscr > > order by > pdt_dept_number, > pdt_class_number > > > end-select > > Thank you guys, > Bindu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Wed Apr 30 10:33:10 2003 From: "Paul Hoyte" Subject: RE: [sqr-users] SQR SQL statement Date: Wed, 30 Apr 2003 11:31:43 -0400 Bindhu: You might want to re-sequence your select columns by putting the level 1 break first followed by the level 2, etc... Paul Hoyte Sharidionne Inc. (248) 559-6868 (248) 559-6875 - Fax (248) 752-6970 - Cell Email: phoyte@sharidionne.com -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Vallabhu, Bindu Sent: Wednesday, April 30, 2003 11:21 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] SQR SQL statement Thank you Prasanna - but that would not work in my case because the dept rows would have a class number of ' ' and if i put in that clause the dept rows would get left out. -----Original Message----- From: Prasanna Menta [mailto:pmenta@umuc.edu] Sent: 04/30/2003 10:07 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR SQL statement Add an additional clause where class_number is <> ' ' or '' Hope this should resolve the issue "Vallabhu, Bindu" wrote: > > Hi Everybody, > I have the following procedure in my SQR program. I am building the > where clause in this statement. There are classes 1,2,3,4,5 in dept > 10. I want the > report to print all Class level details and then the Dept level > details. i am getting an error where even during the Dept number > execution it is attempting to print class level details but is not > getting a class number and so is erroring out - any ideas as to how i > can circumvent this problem. > Thank you, > Bindu > > Begin-procedure main-query > > begin-select > > PDT_CLASS_NUMBER &class_number () on-break level = 2 > print=never after = > sls($where_classnum) > > PDT_CC_CLASS_DSCR &class_cc_desc > > PDT_DEPT_NUMBER &dept_number () on-break level = 1 > print=never after = > sls($where_deptnum) > > PDT_CC_DEPT_DSCR &dept_cc_dscr > > move &class_number to $class_number > move &class_cc_desc to $class_cc_desc > move &dept_number to $dept_number > move &dept_cc_dscr to $dept_cc_dscr > > let $where_classnum = 'and pdt_class_number = ' || $class_number > let $where_deptnum = 'and pdt_dept_number = ' || > $dept_number > > from qatmdm.d_mpf_fp_pdt_dvsn_hrc_v dvsn, qatmdm.c_mpf_fp_corp_cmpy_v > cmpy, qatmdm.d_mpf_fp_pln_vrsn_v plnvrsn, > qatmdm.d_mpf_fp_orgn_v orgn > > where dvsn.pdt_ky = cmpy.pdt_ky > and cmpy.pln_vrsn_ky = plnvrsn.pln_vrsn_ky > and cmpy.lcn_ky = orgn.lcn_ky > [$where_execgrp] > [$where_deptlst] > > group by > pdt_dept_number, > pdt_cc_dept_dscr, > pdt_class_number, > pdt_cc_class_dscr > > order by > pdt_dept_number, > pdt_class_number > > > end-select > > Thank you guys, > Bindu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 09:19:06 2003 From: Harish_Venkiteswaran Date: Wed, 30 Apr 2003 19:46:35 +0530 Subject: [sqr-users] How to retrieve photo and move to Access Database Hi Everybody, There is an EMPL_PHOTO table in PeopleSoft.I want to retrieve the photo and update the access database.The photo is stored in LONG RAW format in Oracle. Please suggest any tool that can achieve this. Thanks & Regards Harish ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 09:33:17 2003 Date: Wed, 30 Apr 2003 10:31:35 -0400 From: "George Jansen" Subject: Re: [sqr-users] How to retrieve photo and move to Access Database I have found wxPython a very handy tool for this, though I have been moving photos in the other direction, i.e. Access -> Oracle (where I have fortunately had the freedom to be use BLOBs rather than LONGs). I would suppose you could do the same in VB. wxPython, though does a decent job of image manipulation, so you can see what you're doing while you do it, and can rescale photos if need be. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 09:45:05 2003 Date: Wed, 30 Apr 2003 10:44:16 -0400 (EDT) From: Jay Sagadraca Subject: [sqr-users] SQR question Hello !!! We are in the process of going to a newer version of SQR from SQRV3.0.12.3 to SQRV6.2. While testing one of the sqrs, I encountered the following messages : SQR V6.2 Copyright (C) Brio Technology 1994-2001. All Worldwide Rights Reserved. Unknown CALLed subroutine: xsqinstallerrhandler Unknown CALLed subroutine: xsqclearerr On the old version, I didn't encounter any error message like the above mentioned. Below is the part of sqr wherein, the sqr is calling the routine : begin-report call xsqinstallerrhandler using ' ' #errorno call xsqclearerr using ' ' #errorno I think the call routine was not defined in the early part of the sqr but it is a stored procedure. Can you please help me? 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-admin@sqrug.org Wed Apr 30 09:45:17 2003 Date: Wed, 30 Apr 2003 10:44:18 -0400 (EDT) From: Jay Sagadraca Subject: [sqr-users] SQR question Hello !!! We are in the process of going to a newer version of SQR from SQRV3.0.12.3 to SQRV6.2. While testing one of the sqrs, I encountered the following messages : SQR V6.2 Copyright (C) Brio Technology 1994-2001. All Worldwide Rights Reserved. Unknown CALLed subroutine: xsqinstallerrhandler Unknown CALLed subroutine: xsqclearerr On the old version, I didn't encounter any error message like the above mentioned. Below is the part of sqr wherein, the sqr is calling the routine : begin-report call xsqinstallerrhandler using ' ' #errorno call xsqclearerr using ' ' #errorno I think the call routine was not defined in the early part of the sqr but it is a stored procedure. Can you please help me? 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-admin@sqrug.org Wed Apr 30 10:22:51 2003 From: Peter Burton Subject: RE: [sqr-users] SQR question Date: Wed, 30 Apr 2003 08:20:57 -0700 Jay, Looks like somebody wrote their own UCALL subroutines. You need to merge the UCALL.C and UFUNC.C into the new product and then relink. Peter -----Original Message----- From: Jay Sagadraca [mailto:knight7883@yahoo.ca] Sent: Wednesday, April 30, 2003 10:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR question Hello !!! We are in the process of going to a newer version of SQR from SQRV3.0.12.3 to SQRV6.2. While testing one of the sqrs, I encountered the following messages : SQR V6.2 Copyright (C) Brio Technology 1994-2001. All Worldwide Rights Reserved. Unknown CALLed subroutine: xsqinstallerrhandler Unknown CALLed subroutine: xsqclearerr On the old version, I didn't encounter any error message like the above mentioned. Below is the part of sqr wherein, the sqr is calling the routine : begin-report call xsqinstallerrhandler using ' ' #errorno call xsqclearerr using ' ' #errorno I think the call routine was not defined in the early part of the sqr but it is a stored procedure. Can you please help me? 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-admin@sqrug.org Wed Apr 30 13:23:23 2003 From: Rhonda Hudgins Date: Wed, 30 Apr 2003 14:18:23 -0400 Subject: [sqr-users] question - creating pdf output I am creating a report that will create a pdf report for each employ . I am using the -PRINTER:PD to create the pdf files and the New-report $file_name to create the individual reports. The problem is on the last pdf file created in the report it prints extra characters example $ y5.00 y the y is the extra character in the .spf report for the same report the extra characters are not there. Has anyone seen this before? Any ideas on how to fix it? I am running sqr 6.14 version Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- 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-admin@sqrug.org Wed Apr 30 14:36:26 2003 From: "Jacqueline Smith" Date: Wed, 30 Apr 2003 15:34:35 -0400 Subject: [sqr-users] encrypting in an SQR SQR-HELP Has anyone ever encrypted a field in a SQR that is being written to a flat file for data transmission? If so, could you please send examples on how to do this. THANKS!!!! Jacquelin Smith Telephone 631-4545 Code IH PeopleSoft ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 14:47:05 2003 Subject: RE: [sqr-users] encrypting in an SQR Date: Wed, 30 Apr 2003 14:46:15 -0500 From: "Knapp, Richard" My strategy has been to use PGP to encrypt the entire file. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Jacqueline Smith [mailto:Jacqueline_Smith@nexnet.navy.mil] Sent: Wednesday, April 30, 2003 2:35 PM To: sqr-users@sqrug.org Subject: [sqr-users] encrypting in an SQR SQR-HELP Has anyone ever encrypted a field in a SQR that is being written to a flat file for data transmission? If so, could you please send examples on how to do this. THANKS!!!! Jacquelin Smith Telephone 631-4545 Code IH PeopleSoft ***************************defiant************************************ This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. messaging_support_team@nexnet.navy.mil ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 15:27:45 2003 From: Manuel_Garcia@hdm.honda.com Date: Wed, 30 Apr 2003 15:26:31 -0500 Subject: [sqr-users] Why my COMMIT doesn't work?? Hello people I'm writing a SQR program and running it through a PeopleSoft process definition. I'm working in a new test environment, but there's something wrong in it, process status is not being updated to "Success" it remains "Posting", I think that's why my commits aren't working. I'm issuing track messages to follow the progress of my sqr program and it seems it's reaching the end. I'm adding data to some tables and performing a COMMIT after every update process, but after all, the data is not being inserted. Any help will be greatly appreciated. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 15:37:23 2003 Date: Wed, 30 Apr 2003 16:35:34 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Can you try by giving on-error statements, which will throw some light on the type of the problem. Example will be as follows: Begin-SQL On-Error=SQL-Error INSERT INTO Hope this helps Prasanna Manuel_Garcia@hdm.honda.com wrote: > > Hello people > > I'm writing a SQR program and running it through a PeopleSoft process > definition. > > I'm working in a new test environment, but there's something wrong in it, > process status is not being updated to "Success" it remains "Posting", I > think that's why my commits aren't working. > > I'm issuing track messages to follow the progress of my sqr program and it > seems it's reaching the end. I'm adding data to some tables and performing > a COMMIT after every update process, but after all, the data is not being > inserted. > > Any help will be greatly appreciated. > > Juan Manuel García > Tecnología de Información > Honda de Mexico S.A. de C.V. > Tel: (01 33) 328 40135 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Wed Apr 30 15:47:08 2003 From: "the dragon" Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 15:46:39 -0500 If your sqr runs to completion, a commit happens implicitely unless you perform a rollback. This issue sounds more like you aren't executing the api steps - as in your sqr programs have not been made api aware. 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---- Can you try by giving on-error statements, which will throw some light on the type of the problem. Example will be as follows: Begin-SQL On-Error=SQL-Error INSERT INTO
Hope this helps Prasanna Manuel_Garcia@hdm.honda.com wrote: > > Hello people > > I'm writing a SQR program and running it through a PeopleSoft process > definition. > > I'm working in a new test environment, but there's something wrong in it, > process status is not being updated to "Success" it remains "Posting", I > think that's why my commits aren't working. > > I'm issuing track messages to follow the progress of my sqr program and it > seems it's reaching the end. I'm adding data to some tables and performing > a COMMIT after every update process, but after all, the data is not being > inserted. > > Any help will be greatly appreciated. > > Juan Manuel García > Tecnología de Información > Honda de Mexico S.A. de C.V. > Tel: (01 33) 328 40135 > _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 15:56:07 2003 Subject: RE: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 15:54:57 -0500 From: "Knapp, Richard" The PS process scheduler steps I'm used to seeing are: initiated, queued, processing, success - with error a possibility anywhere along the line. I would say, based on a guess as to what "Posting" means that either the process scheduler is not running or your program does not include the init, param fetch and terminate processes. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Manuel_Garcia@hdm.honda.com [mailto:Manuel_Garcia@hdm.honda.com] Sent: Wednesday, April 30, 2003 3:27 PM To: sqr-users@sqrug.org Subject: [sqr-users] Why my COMMIT doesn't work?? Hello people I'm writing a SQR program and running it through a PeopleSoft process definition. I'm working in a new test environment, but there's something wrong in it, process status is not being updated to "Success" it remains "Posting", I think that's why my commits aren't working. I'm issuing track messages to follow the progress of my sqr program and it seems it's reaching the end. I'm adding data to some tables and performing a COMMIT after every update process, but after all, the data is not being inserted. Any help will be greatly appreciated. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:03:06 2003 Subject: Re: [sqr-users] Why my COMMIT doesn't work?? From: Manuel_Garcia@hdm.honda.com Date: Wed, 30 Apr 2003 16:02:08 -0500 Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 17:33:15 2003 Subject: RE: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 17:07:14 -0400 From: "Katragadda, Sridhar (CORP, Consultant)" Hi Looks like your Distribution agent is not running. Make sure the Distribution agent started with the Process Scheduler agent . If u have access to run PSADMIN Utility 2 Process Scheduler 8 show the status of the process scheduler thanks -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, April 30, 2003 4:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Why my COMMIT doesn't work?? The PS process scheduler steps I'm used to seeing are: initiated, queued, processing, success - with error a possibility anywhere along the line. I would say, based on a guess as to what "Posting" means that either the process scheduler is not running or your program does not include the init, param fetch and terminate processes. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Manuel_Garcia@hdm.honda.com [mailto:Manuel_Garcia@hdm.honda.com] Sent: Wednesday, April 30, 2003 3:27 PM To: sqr-users@sqrug.org Subject: [sqr-users] Why my COMMIT doesn't work?? Hello people I'm writing a SQR program and running it through a PeopleSoft process definition. I'm working in a new test environment, but there's something wrong in it, process status is not being updated to "Success" it remains "Posting", I think that's why my commits aren't working. I'm issuing track messages to follow the progress of my sqr program and it seems it's reaching the end. I'm adding data to some tables and performing a COMMIT after every update process, but after all, the data is not being inserted. Any help will be greatly appreciated. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:08:07 2003 From: "Aguirre, Jose" Subject: RE: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 16:07:29 -0500 Try getting rid of the empty lines within your code. José A. Aguirre -----Original Message----- From: Manuel_Garcia@hdm.honda.com [mailto:Manuel_Garcia@hdm.honda.com] Sent: Wednesday, April 30, 2003 4:02 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:16:11 2003 From: "Walcker, Paul" Subject: RE: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 14:15:38 -0700 To supplement Richard's descriptions, we have seen posting a status with version 8. It is the indicator to the report distribution agent to pickup the output and move to the output location. If the status is staying at posting, it means that your SQR has finished successfully, but that the report distribution hasn't done its job yet. Paul -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, April 30, 2003 1:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Why my COMMIT doesn't work?? The PS process scheduler steps I'm used to seeing are: initiated, queued, processing, success - with error a possibility anywhere along the line. I would say, based on a guess as to what "Posting" means that either the process scheduler is not running or your program does not include the init, param fetch and terminate processes. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Manuel_Garcia@hdm.honda.com [mailto:Manuel_Garcia@hdm.honda.com] Sent: Wednesday, April 30, 2003 3:27 PM To: sqr-users@sqrug.org Subject: [sqr-users] Why my COMMIT doesn't work?? Hello people I'm writing a SQR program and running it through a PeopleSoft process definition. I'm working in a new test environment, but there's something wrong in it, process status is not being updated to "Success" it remains "Posting", I think that's why my commits aren't working. I'm issuing track messages to follow the progress of my sqr program and it seems it's reaching the end. I'm adding data to some tables and performing a COMMIT after every update process, but after all, the data is not being inserted. Any help will be greatly appreciated. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:27:57 2003 Date: Wed, 30 Apr 2003 16:26:12 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Juan Try adding the commit in its own BEGIN-SQL END-SQL call after your insert add something like this. Take out the commit from the INSERT into ps_hdm_voucher_tmp using. One another thing, are you sure that your insert table call is being executed and that there is data to insert. BEGIN-SQL COMMIT END-SQL >>> Manuel_Garcia@hdm.honda.com 04/30/03 04:02PM >>> Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:33:05 2003 Date: Wed, 30 Apr 2003 16:32:33 -0500 From: "Suman Buddharaju" Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Sorry my earlier was not very clear. Juan Try adding the commit in its own BEGIN-SQL END-SQL call. After your insert data, add something like this BEGIN-SQL COMMIT END-SQL Take out the commit from the INSERT into ps_hdm_voucher_tmp section. One another thing, are you sure that your insert table call is being executed and that there is data to insert. >>> SBUDDHA@dot.state.tx.us 04/30/03 04:26PM >>> Juan Try adding the commit in its own BEGIN-SQL END-SQL call after your insert add something like this. Take out the commit from the INSERT into ps_hdm_voucher_tmp using. One another thing, are you sure that your insert table call is being executed and that there is data to insert. BEGIN-SQL COMMIT END-SQL >>> Manuel_Garcia@hdm.honda.com 04/30/03 04:02PM >>> Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Apr 30 16:41:20 2003 From: "the dragon" Subject: Re: [sqr-users] Why my COMMIT doesn't work?? Date: Wed, 30 Apr 2003 16:39:50 -0500 Actually, if you want to force a commit from within an sqr that you're running from within peoplesoft through the process scheduoler, you should use the peoplesoft supplied procedure called commit-transaction but, once again, I reiterate, if you're looking for the process scheduler status to change, you need to make the sqr api aware with this code and include the prcsapi.sqc: ! ------*-*-----------------------&---------(--,----)------------*-*---+ ! - CLOSING PROCESS - ! ! - desc : This procedure closes the process schedular for - | ! - panel initiated programs on successful - | ! - completion. - | ! - proc : 21 - | ! - from : 0 - | ! - 08-Dec-1999 [CW] - | ! ------*-*-----------------------&---------(--,----)------------*-*---+ begin-procedure closing_process show 'Entering CLOSING PROCESS : proc 21 ' if $prcs_process_instance <> '' let $prcs_run_status = 'S' let $prcs_message_parm1 = 'Successful Completion' do Update-Prcs-Run-Status ! prcsapi.sqc end-if show 'Exiting CLOSING PROCESS' end-procedure ! CLOSING PROCESS 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---- Juan Try adding the commit in its own BEGIN-SQL END-SQL call after your insert add something like this. Take out the commit from the INSERT into ps_hdm_voucher_tmp using. One another thing, are you sure that your insert table call is being executed and that there is data to insert. BEGIN-SQL COMMIT END-SQL >>> Manuel_Garcia@hdm.honda.com 04/30/03 04:02PM >>> Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Apr 30 17:19:06 2003 Subject: Re: [sqr-users] Why my COMMIT doesn't work?? From: Manuel_Garcia@hdm.honda.com Date: Wed, 30 Apr 2003 17:18:21 -0500 Hello all. {:-) 1.- Clark, I'm actually including the prcsapi.sqc, the same program is running well in another environment, the problem is in our test environment. The Process Scheduler problem with the processes status belongs to our server administrator, but while she fixes that I'm trying to get my tables updated by placing some COMMITS along the program. I mean, even though the process status is never set to succes, my commits along the program should take effect. 2.- Jose, I tried that but didn't work :´- ( 3.- Suman, I tried that too, neither it worked Thanks to all . Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 1 00:03:06 2003 Date: Thu, 1 May 2003 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.14 $ $Date: 2002-11-13 12:55:07-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 Digests 3.4 Obtaining your password 3.5 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 2002/04/17: o Reflect the new location of the list and the new list server software being used. 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 Brio Software (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. 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-2002 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, and click the "Edit Options" button. In the page that comes up, there will be an "Unsubscribing from sqr-users" section; simply enter your password in the box there and click the "Unsubscribe" button. Assuming you enter the correct password, you will recieve a message stating "You have been unsubscribed." and the removal will take effect immediately (there is no need to send in a confirmation e-mail message). (If you have forgotton your password, see the instructions below.) 3.3. 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, enter your address in the "sqr-users Subscribers" section of the sqr-users List Info page and click the "Edit Options" button. At the bottom of the resulting page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option to "On", enter your subscription password in the box provided, and click the "Submit My Changes" button. (If you have forgotton your password, see the instructions below.) 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.4. Obtaining your password You will not be able to unsubscribe or change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the Edit Options page and your password will be e-mailed 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.5. 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). 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 in reply from other subscribers.) 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. 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 fule 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 Brio product and version number (see notes below) o Operating system 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's, so it's very important to mention whether you are using Brio'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 version number listed here is the one under which this copy of SQR was compiled, so you'll still need to include this infor- mation 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-admin@sqrug.org Thu May 1 08:32:16 2003 Date: Thu, 1 May 2003 09:30:57 -0400 From: "White, Denise" Subject: [sqr-users] RE: Why my COMMIT doesn't work?? Hola Manuel, I don't think that the "Posting" status has anything to do with the data not being committed. As someone else mentioned, this is a status that is seen AFTER the SQR has completed and is connected with posting the output to the report repository. You don't mention what database platform you are on, which may be significant, but in general you do not issue commits within the BEGIN-SQL paragraph in an SQR program. You might want to check your SQR documentation on the "commit" command; in my documentation (ver. 4.3.2) it is as follows: "COMMIT is an SQR command and should not be used within a SQL paragraph (see note below). If used in a SQL paragraph, unpredictable errors may occur. Note: The COMMIT command can be used with Oracle, SQL Base, ODBC, DB2, Informix, and Ingres. For Sybase and Microsoft SQL Server, use BEGIN TRANSACTION and COMMIT TRANSACTION within SQL paragraphs as in the code segment shown below." However, there are also issues with using the SQR commit command if you are on Oracle: "For example, when used with Oracle, it closes SELECT cursors. For this reason, it should not be used within the scope of an active SELECT paragraph or unpredictable results may occur." I know you said that this works fine in another environment, but that may be what "unpredictable" is referring to! HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 21 Subject: Re: [sqr-users] Why my COMMIT doesn't work?? To: sqr-users@sqrug.org From: Manuel_Garcia@hdm.honda.com Date: Wed, 30 Apr 2003 16:02:08 -0500 Reply-To: sqr-users@sqrug.org Hello Prasanna, first of all, thanks a lot for your response. I think no error is happening within my program because it runs well in another environment, my problem is that I'm not seeing the COMMIT effect Some part of the program goes as follows: begin-procedure llenar_tabla_ps_hdm_voucher_tmp show 'Llenando tabla PS_HDM_VOUCHER_TMP' BEGIN-SQL INSERT into ps_hdm_voucher_tmp using SELECT A.VOUCHER_ID, B.INVOICE_ID, B.VENDOR_ID, B.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, A.MONETARY_AMOUNT, B.CLOSE_STATUS, B.MANUAL_CLOSE_DT FROM PS_HDM_VCHR_ACCTG A, PS_VOUCHER B WHERE A.VOUCHER_ID = B.VOUCHER_ID AND B.VENDOR_ID >= $vndr_fr AND B.VENDOR_ID <= $vndr_to ; COMMIT; END-SQL show 'Tabla PS_HDM_VOUCHER_TMP Creada.' end-procedure !llenar_tabla_ps_hdm_voucher_tmp This procedure is executing well, but after the whole program finishes (although the process status in PS Process Monitor is never set to Success in my test environtment), no new data is inserted in my table. I checked the select statement outside SQR and it works. Thanks a lot ! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 1 11:55:08 2003 Date: Thu, 01 May 2003 09:52:53 -0700 From: Jim Engebretson Subject: [sqr-users] Importing data into Peoplesoft 8 Are we required to use SQR for importing data into Peoplesoft data tables? Why can't computer administrators directly import data into Peoplesoft user data tables (i.e. using MS Sql Server DTS) since we are not affecting control tables (panel field sizes or security)? Thank you, Jim Engebretson Cerritos College _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 1 12:04:09 2003 From: "Ashish Bhatt" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Date: Thu, 01 May 2003 17:03:18 +0000 Jim, we are also using SQR to import data into Peoplesoft data tables. I know it is so painful to write big inserts in SQR. >From: Jim Engebretson >Reply-To: sqr-users@sqrug.org >To: sqr-users@sqrug.org >Subject: [sqr-users] Importing data into Peoplesoft 8 >Date: Thu, 01 May 2003 09:52:53 -0700 > >Are we required to use SQR for importing data into Peoplesoft data tables? >Why can't computer administrators directly import data into Peoplesoft user >data tables (i.e. using MS Sql Server DTS) since we are not affecting >control tables (panel field sizes or security)? > > > >Thank you, > > > >Jim Engebretson > >Cerritos College > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Send a fun phone greeting to your friend! http://www.msn.com.sg/mobile/fungreetings/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 1 12:10:11 2003 Date: Thu, 01 May 2003 12:09:31 -0500 From: "Lock, Edward J" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 In PS/Oracle you can Data Mover and/or Sql Loader scripts, but using SQR allows greater control over data conversion and error handling issues. Edward Lock, University of Houston -----Original Message----- From: Ashish Bhatt [mailto:ashish_bhatt@hotmail.com] Sent: Thursday, May 01, 2003 12:03 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Jim, we are also using SQR to import data into Peoplesoft data tables. I know it is so painful to write big inserts in SQR. >From: Jim Engebretson >Reply-To: sqr-users@sqrug.org >To: sqr-users@sqrug.org >Subject: [sqr-users] Importing data into Peoplesoft 8 >Date: Thu, 01 May 2003 09:52:53 -0700 > >Are we required to use SQR for importing data into Peoplesoft data tables? >Why can't computer administrators directly import data into Peoplesoft user >data tables (i.e. using MS Sql Server DTS) since we are not affecting >control tables (panel field sizes or security)? > > > >Thank you, > > > >Jim Engebretson > >Cerritos College > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Send a fun phone greeting to your friend! http://www.msn.com.sg/mobile/fungreetings/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu May 1 12:15:06 2003 Date: Thu, 01 May 2003 14:14:12 -0300 From: "Peter Clark" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 I know of no such restriction. You can use whatever tool you have at hand as long as you do the proper edits. I imagine that since SQR is delivered with the product and will be an integral part of the application, many people use that tool for conversion (as a way of learning SQR as much as anything), but there is no requirement to use it. >>> jengebretson@cerritos.edu 2003/05/01 1:52:53 pm >>> Are we required to use SQR for importing data into Peoplesoft data tables? Why can't computer administrators directly import data into Peoplesoft user data tables (i.e. using MS Sql Server DTS) since we are not affecting control tables (panel field sizes or security)? Thank you, Jim Engebretson Cerritos College _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu May 1 13:22:22 2003 Date: Thu, 01 May 2003 14:21:57 -0400 From: "Dan Brinkley" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Hey all, this is my first posting. I guess you only hear from me when I have a problem :) I'm now using SQR to load data into PS (ver 8) for Health and Safety. I'm getting the following Oracle error when trying to do my INSERT INTO PS_INCIDENT_DATA... (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: ORA-01401: inserted value too large for column It would be nice if Oracle told us what column has a problem. To figure this out, I've ran SQRW with the -S to produce the full SQL in the log file, then taken the INSERT statement and pasted it into SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate values. AND IT WORKS JUST FINE!!!! The Procedure is below, and I'm not really feeding in much user data at all; most is just field defaults. EXACT_LOCATION (char 240) and DESCRLONG (long char) are the ones I might suspect of causing a problem. But the input values appear to be within string limits. Does anyone have a better method of solving these kinds of problems in SQR. I've checked my code over and over again. I'm clueless. Anyone's comment is greatly appreciated. Daniel Brinkley Programmer/Analyst/Worker Bee Techneglas, Inc. / Columbus, OH !****************************** Begin-Procedure Insert-Incident-Data !****************************** #debugp show 'PROC: Insert-Incident-Data' Begin-SQL INSERT INTO PS_INCIDENT_DATA ( INCIDENT_NBR, INCIDENT_TYPE, REG_REGION, DANGER_OCC_CD, INCIDENT_DT, INCIDENT_TIME, RECURRENCE, RESULT_INJURY_ILL, REPORTED_BY_EMPL, REPORTED_BY_NONEMP, REPORTED_TO, DT_REPORTED, TIME_REPORTED, DT_RECORDED, TIME_RECORDED, INVESTIGATED, EMPLOYER_PREMISES, SETID_LOCATION, LOCATION, LOCATION_NAME, COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3, COUNTY, STATE, POSTAL, GEO_CODE, IN_CITY_LIMIT, EXACT_LOCATION, ROAD_CONDITION, WEATHER_CONDITION, INC_OUTCOME_CAN, WCB_JURISDICT_SW, CLASS_SUBCLASS, EXPOSURE_ST_DT, EXPOSURE_ST_TM, EXPOSURE_END_DT, EXPOSURE_END_TM, BUSINESS_TYPE, OCCURRENCE_TYPE, DATE_TIME_EXACT_SW, INCDNT_OP_LOCN_SW, SCENE_DESCR, INCDNT_TMP_SITE_SW, CLAIM_CONTACT_ID, HS_CONTACT_EMPLID, LOCN_SIZE_CD, DISABLED_PROG_SW, DIS_PROG_EMPLID, RTW_AVAILABLE_SW, STREET_NBR, STREET_NAME, STREET_UNIT_NBR, WCB_PO_BOX, WCB_RR_NBR, INCIDENT_STAT_FRA, INCIDENT_TYPE_FRA, REP_BY_CLASS_FRA, REP_POLICE_SW_FRA, REP_POLICE_NAM_FRA, LOCATION_CLASS_FRA, SIGNER_EMPLID_FRA, WHERE_REPORTED_FRA, LOCAL_AUTHORITY_UK, PUBLIC_PLACE_SW_UK, DESCRLONG ) VALUES ( $Incident_Nbr, ! INCIDENT_NBR 'I', ! INCIDENT_TYPE 'USA', ! REG_REGION ' ', ! DANGER_OCC_CD $Incident_Dt, ! INCIDENT_DT '', ! INCIDENT_TIME 'N', ! RECURRENCE 'Y', ! RESULT_INJURY_ILL $EmplID, ! REPORTED_BY_EMPL ' ', ! REPORTED_BY_NONEMP ' ', ! REPORTED_TO $Incident_Dt, ! DT_REPORTED '', ! TIME_REPORTED $Incident_Dt, ! DT_RECORDED '', ! TIME_RECORDED 'N', ! INVESTIGATED 'Y', ! EMPLOYER_PREMISES 'COL', ! SETID_LOCATION ' ', ! LOCATION ' ', ! LOCATION_NAME 'USA', ! COUNTRY ' ', ! ADDRESS1 ' ', ! ADDRESS2 ' ', ! ADDRESS3 ' ', ! ADDRESS4 ' ', ! CITY ' ', ! NUM1 ' ', ! NUM2 ' ', ! HOUSE_TYPE ' ', ! ADDR_FIELD1 ' ', ! ADDR_FIELD2 ' ', ! ADDR_FIELD3 ' ', ! COUNTY ' ', ! STATE ' ', ! POSTAL ' ', ! GEO_CODE ' ', ! IN_CITY_LIMIT $Specific_Area, ! EXACT_LOCATION ' ', ! ROAD_CONDITION ' ', ! WEATHER_CONDITION ' ', ! INC_OUTCOME_CAN 'Y', ! WCB_JURISDICT_SW 0, ! CLASS_SUBCLASS '', ! EXPOSURE_ST_DT '', ! EXPOSURE_ST_TM '', ! EXPOSURE_END_DT '', ! EXPOSURE_END_TM ' ', ! BUSINESS_TYPE ' ', ! OCCURRENCE_TYPE 'N', ! DATE_TIME_EXACT_SW 'N', ! INCDNT_OP_LOCN_SW ' ', ! SCENE_DESCR 'N', ! INCDNT_TMP_SITE_SW ' ', ! CLAIM_CONTACT_ID ' ', ! HS_CONTACT_EMPLID ' ', ! LOCN_SIZE_CD 'N', ! DISABLED_PROG_SW ' ', ! DIS_PROG_EMPLID ' ', ! RTW_AVAILABLE_SW ' ', ! STREET_NBR ' ', ! STREET_NAME ' ', ! STREET_UNIT_NBR ' ', ! WCB_PO_BOX ' ', ! WCB_RR_NBR ' ', ! INCIDENT_STAT_FRA ' ', ! INCIDENT_TYPE_FRA ' ', ! REP_BY_CLASS_FRA ' ', ! REP_POLICE_SW_FRA ' ', ! REP_POLICE_NAM_FRA ' ', ! LOCATION_CLASS_FRA ' ', ! SIGNER_EMPLID_FRA ' ', ! WHERE_REPORTED_FRA ' ', ! LOCAL_AUTHORITY_UK ' ', ! PUBLIC_PLACE_SW_UK $Activity ! DESCRLONG ) End-SQL End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 1 13:33:10 2003 Date: Thu, 01 May 2003 14:32:08 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Display the values and their legnths before the insert . Also append on-error at your insert procedure so that it helps Prasanna Dan Brinkley wrote: > > Hey all, this is my first posting. I guess you only hear from me when I > have a problem :) > I'm now using SQR to load data into PS (ver 8) for Health and Safety. > > I'm getting the following Oracle error when trying to do my INSERT INTO > PS_INCIDENT_DATA... > > (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: > ORA-01401: inserted value too large for column > > It would be nice if Oracle told us what column has a problem. > > To figure this out, I've ran SQRW with the -S to produce the full SQL > in the log file, then taken the INSERT statement and pasted it into > SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate > values. > AND IT WORKS JUST FINE!!!! > > The Procedure is below, and I'm not really feeding in much user data at > all; most is just field defaults. EXACT_LOCATION (char 240) and > DESCRLONG (long char) are the ones I might suspect of causing a problem. > But the input values appear to be within string limits. > > Does anyone have a better method of solving these kinds of problems in > SQR. I've checked my code over and over again. I'm clueless. > Anyone's comment is greatly appreciated. > > Daniel Brinkley > Programmer/Analyst/Worker Bee > Techneglas, Inc. / Columbus, OH > > !****************************** > Begin-Procedure Insert-Incident-Data > !****************************** > #debugp show 'PROC: Insert-Incident-Data' > Begin-SQL > INSERT INTO PS_INCIDENT_DATA > ( > INCIDENT_NBR, > INCIDENT_TYPE, > REG_REGION, > DANGER_OCC_CD, > INCIDENT_DT, > INCIDENT_TIME, > RECURRENCE, > RESULT_INJURY_ILL, > REPORTED_BY_EMPL, > REPORTED_BY_NONEMP, > REPORTED_TO, > DT_REPORTED, > TIME_REPORTED, > DT_RECORDED, > TIME_RECORDED, > INVESTIGATED, > EMPLOYER_PREMISES, > SETID_LOCATION, > LOCATION, > LOCATION_NAME, > COUNTRY, > ADDRESS1, > ADDRESS2, > ADDRESS3, > ADDRESS4, > CITY, > NUM1, > NUM2, > HOUSE_TYPE, > ADDR_FIELD1, > ADDR_FIELD2, > ADDR_FIELD3, > COUNTY, > STATE, > POSTAL, > GEO_CODE, > IN_CITY_LIMIT, > EXACT_LOCATION, > ROAD_CONDITION, > WEATHER_CONDITION, > INC_OUTCOME_CAN, > WCB_JURISDICT_SW, > CLASS_SUBCLASS, > EXPOSURE_ST_DT, > EXPOSURE_ST_TM, > EXPOSURE_END_DT, > EXPOSURE_END_TM, > BUSINESS_TYPE, > OCCURRENCE_TYPE, > DATE_TIME_EXACT_SW, > INCDNT_OP_LOCN_SW, > SCENE_DESCR, > INCDNT_TMP_SITE_SW, > CLAIM_CONTACT_ID, > HS_CONTACT_EMPLID, > LOCN_SIZE_CD, > DISABLED_PROG_SW, > DIS_PROG_EMPLID, > RTW_AVAILABLE_SW, > STREET_NBR, > STREET_NAME, > STREET_UNIT_NBR, > WCB_PO_BOX, > WCB_RR_NBR, > INCIDENT_STAT_FRA, > INCIDENT_TYPE_FRA, > REP_BY_CLASS_FRA, > REP_POLICE_SW_FRA, > REP_POLICE_NAM_FRA, > LOCATION_CLASS_FRA, > SIGNER_EMPLID_FRA, > WHERE_REPORTED_FRA, > LOCAL_AUTHORITY_UK, > PUBLIC_PLACE_SW_UK, > DESCRLONG > ) > VALUES > ( > $Incident_Nbr, ! INCIDENT_NBR > 'I', ! INCIDENT_TYPE > 'USA', ! REG_REGION > ' ', ! DANGER_OCC_CD > $Incident_Dt, ! INCIDENT_DT > '', ! INCIDENT_TIME > 'N', ! RECURRENCE > 'Y', ! RESULT_INJURY_ILL > $EmplID, ! REPORTED_BY_EMPL > ' ', ! REPORTED_BY_NONEMP > ' ', ! REPORTED_TO > $Incident_Dt, ! DT_REPORTED > '', ! TIME_REPORTED > $Incident_Dt, ! DT_RECORDED > '', ! TIME_RECORDED > 'N', ! INVESTIGATED > 'Y', ! EMPLOYER_PREMISES > 'COL', ! SETID_LOCATION > ' ', ! LOCATION > ' ', ! LOCATION_NAME > 'USA', ! COUNTRY > ' ', ! ADDRESS1 > ' ', ! ADDRESS2 > ' ', ! ADDRESS3 > ' ', ! ADDRESS4 > ' ', ! CITY > ' ', ! NUM1 > ' ', ! NUM2 > ' ', ! HOUSE_TYPE > ' ', ! ADDR_FIELD1 > ' ', ! ADDR_FIELD2 > ' ', ! ADDR_FIELD3 > ' ', ! COUNTY > ' ', ! STATE > ' ', ! POSTAL > ' ', ! GEO_CODE > ' ', ! IN_CITY_LIMIT > $Specific_Area, ! EXACT_LOCATION > ' ', ! ROAD_CONDITION > ' ', ! WEATHER_CONDITION > ' ', ! INC_OUTCOME_CAN > 'Y', ! WCB_JURISDICT_SW > 0, ! CLASS_SUBCLASS > '', ! EXPOSURE_ST_DT > '', ! EXPOSURE_ST_TM > '', ! EXPOSURE_END_DT > '', ! EXPOSURE_END_TM > ' ', ! BUSINESS_TYPE > ' ', ! OCCURRENCE_TYPE > 'N', ! DATE_TIME_EXACT_SW > 'N', ! INCDNT_OP_LOCN_SW > ' ', ! SCENE_DESCR > 'N', ! INCDNT_TMP_SITE_SW > ' ', ! CLAIM_CONTACT_ID > ' ', ! HS_CONTACT_EMPLID > ' ', ! LOCN_SIZE_CD > 'N', ! DISABLED_PROG_SW > ' ', ! DIS_PROG_EMPLID > ' ', ! RTW_AVAILABLE_SW > ' ', ! STREET_NBR > ' ', ! STREET_NAME > ' ', ! STREET_UNIT_NBR > ' ', ! WCB_PO_BOX > ' ', ! WCB_RR_NBR > ' ', ! INCIDENT_STAT_FRA > ' ', ! INCIDENT_TYPE_FRA > ' ', ! REP_BY_CLASS_FRA > ' ', ! REP_POLICE_SW_FRA > ' ', ! REP_POLICE_NAM_FRA > ' ', ! LOCATION_CLASS_FRA > ' ', ! SIGNER_EMPLID_FRA > ' ', ! WHERE_REPORTED_FRA > ' ', ! LOCAL_AUTHORITY_UK > ' ', ! PUBLIC_PLACE_SW_UK > $Activity ! DESCRLONG > ) > End-SQL > > 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-admin@sqrug.org Thu May 1 13:29:11 2003 Subject: RE: [sqr-users] Importing data into Peoplesoft 8 From: Rick_Creel@aoncons.com Date: Thu, 1 May 2003 14:27:45 -0400 We have encountered the same problem. How do you get your input values? What we had to do was to use the LTRIM and/or RTRIM functions to eliminate unwanted spaces. I found that sometimes there were sufficient trailing spaces that would cause the field to be too long. Give this a try :=) "Dan Brinkley" glas.com> cc: "Richard Wyant" Sent by: Subject: RE: [sqr-users] Importing data into Peoplesoft 8 sqr-users-admin@s qrug.org 05/01/2003 02:21 PM Please respond to sqr-users Hey all, this is my first posting. I guess you only hear from me when I have a problem :) I'm now using SQR to load data into PS (ver 8) for Health and Safety. I'm getting the following Oracle error when trying to do my INSERT INTO PS_INCIDENT_DATA... (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: ORA-01401: inserted value too large for column It would be nice if Oracle told us what column has a problem. To figure this out, I've ran SQRW with the -S to produce the full SQL in the log file, then taken the INSERT statement and pasted it into SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate values. AND IT WORKS JUST FINE!!!! The Procedure is below, and I'm not really feeding in much user data at all; most is just field defaults. EXACT_LOCATION (char 240) and DESCRLONG (long char) are the ones I might suspect of causing a problem. But the input values appear to be within string limits. Does anyone have a better method of solving these kinds of problems in SQR. I've checked my code over and over again. I'm clueless. Anyone's comment is greatly appreciated. Daniel Brinkley Programmer/Analyst/Worker Bee Techneglas, Inc. / Columbus, OH !****************************** Begin-Procedure Insert-Incident-Data !****************************** #debugp show 'PROC: Insert-Incident-Data' Begin-SQL INSERT INTO PS_INCIDENT_DATA ( INCIDENT_NBR, INCIDENT_TYPE, REG_REGION, DANGER_OCC_CD, INCIDENT_DT, INCIDENT_TIME, RECURRENCE, RESULT_INJURY_ILL, REPORTED_BY_EMPL, REPORTED_BY_NONEMP, REPORTED_TO, DT_REPORTED, TIME_REPORTED, DT_RECORDED, TIME_RECORDED, INVESTIGATED, EMPLOYER_PREMISES, SETID_LOCATION, LOCATION, LOCATION_NAME, COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3, COUNTY, STATE, POSTAL, GEO_CODE, IN_CITY_LIMIT, EXACT_LOCATION, ROAD_CONDITION, WEATHER_CONDITION, INC_OUTCOME_CAN, WCB_JURISDICT_SW, CLASS_SUBCLASS, EXPOSURE_ST_DT, EXPOSURE_ST_TM, EXPOSURE_END_DT, EXPOSURE_END_TM, BUSINESS_TYPE, OCCURRENCE_TYPE, DATE_TIME_EXACT_SW, INCDNT_OP_LOCN_SW, SCENE_DESCR, INCDNT_TMP_SITE_SW, CLAIM_CONTACT_ID, HS_CONTACT_EMPLID, LOCN_SIZE_CD, DISABLED_PROG_SW, DIS_PROG_EMPLID, RTW_AVAILABLE_SW, STREET_NBR, STREET_NAME, STREET_UNIT_NBR, WCB_PO_BOX, WCB_RR_NBR, INCIDENT_STAT_FRA, INCIDENT_TYPE_FRA, REP_BY_CLASS_FRA, REP_POLICE_SW_FRA, REP_POLICE_NAM_FRA, LOCATION_CLASS_FRA, SIGNER_EMPLID_FRA, WHERE_REPORTED_FRA, LOCAL_AUTHORITY_UK, PUBLIC_PLACE_SW_UK, DESCRLONG ) VALUES ( $Incident_Nbr, ! INCIDENT_NBR 'I', ! INCIDENT_TYPE 'USA', ! REG_REGION ' ', ! DANGER_OCC_CD $Incident_Dt, ! INCIDENT_DT '', ! INCIDENT_TIME 'N', ! RECURRENCE 'Y', ! RESULT_INJURY_ILL $EmplID, ! REPORTED_BY_EMPL ' ', ! REPORTED_BY_NONEMP ' ', ! REPORTED_TO $Incident_Dt, ! DT_REPORTED '', ! TIME_REPORTED $Incident_Dt, ! DT_RECORDED '', ! TIME_RECORDED 'N', ! INVESTIGATED 'Y', ! EMPLOYER_PREMISES 'COL', ! SETID_LOCATION ' ', ! LOCATION ' ', ! LOCATION_NAME 'USA', ! COUNTRY ' ', ! ADDRESS1 ' ', ! ADDRESS2 ' ', ! ADDRESS3 ' ', ! ADDRESS4 ' ', ! CITY ' ', ! NUM1 ' ', ! NUM2 ' ', ! HOUSE_TYPE ' ', ! ADDR_FIELD1 ' ', ! ADDR_FIELD2 ' ', ! ADDR_FIELD3 ' ', ! COUNTY ' ', ! STATE ' ', ! POSTAL ' ', ! GEO_CODE ' ', ! IN_CITY_LIMIT $Specific_Area, ! EXACT_LOCATION ' ', ! ROAD_CONDITION ' ', ! WEATHER_CONDITION ' ', ! INC_OUTCOME_CAN 'Y', ! WCB_JURISDICT_SW 0, ! CLASS_SUBCLASS '', ! EXPOSURE_ST_DT '', ! EXPOSURE_ST_TM '', ! EXPOSURE_END_DT '', ! EXPOSURE_END_TM ' ', ! BUSINESS_TYPE ' ', ! OCCURRENCE_TYPE 'N', ! DATE_TIME_EXACT_SW 'N', ! INCDNT_OP_LOCN_SW ' ', ! SCENE_DESCR 'N', ! INCDNT_TMP_SITE_SW ' ', ! CLAIM_CONTACT_ID ' ', ! HS_CONTACT_EMPLID ' ', ! LOCN_SIZE_CD 'N', ! DISABLED_PROG_SW ' ', ! DIS_PROG_EMPLID ' ', ! RTW_AVAILABLE_SW ' ', ! STREET_NBR ' ', ! STREET_NAME ' ', ! STREET_UNIT_NBR ' ', ! WCB_PO_BOX ' ', ! WCB_RR_NBR ' ', ! INCIDENT_STAT_FRA ' ', ! INCIDENT_TYPE_FRA ' ', ! REP_BY_CLASS_FRA ' ', ! REP_POLICE_SW_FRA ' ', ! REP_POLICE_NAM_FRA ' ', ! LOCATION_CLASS_FRA ' ', ! SIGNER_EMPLID_FRA ' ', ! WHERE_REPORTED_FRA ' ', ! LOCAL_AUTHORITY_UK ' ', ! PUBLIC_PLACE_SW_UK $Activity ! DESCRLONG ) End-SQL 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-admin@sqrug.org Thu May 1 13:30:07 2003 Date: Thu, 01 May 2003 14:29:23 -0400 From: "Larry Roux" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Try doing a RTRIM on the character values. It is possible that the procedure you use to populate, say, the DESCRLONG variable is adding final spaces or something. You could also display the values being inserted - be sure to surround the field with a character to ensure you are seeing the whole string - ie show '*' $SOMEVAR '*' ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> DBrinkley@techneglas.com 05/01/03 02:21PM >>> Hey all, this is my first posting. I guess you only hear from me when I have a problem :) I'm now using SQR to load data into PS (ver 8) for Health and Safety. I'm getting the following Oracle error when trying to do my INSERT INTO PS_INCIDENT_DATA... (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: ORA-01401: inserted value too large for column It would be nice if Oracle told us what column has a problem. To figure this out, I've ran SQRW with the -S to produce the full SQL in the log file, then taken the INSERT statement and pasted it into SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate values. AND IT WORKS JUST FINE!!!! The Procedure is below, and I'm not really feeding in much user data at all; most is just field defaults. EXACT_LOCATION (char 240) and DESCRLONG (long char) are the ones I might suspect of causing a problem. But the input values appear to be within string limits. Does anyone have a better method of solving these kinds of problems in SQR. I've checked my code over and over again. I'm clueless. Anyone's comment is greatly appreciated. Daniel Brinkley Programmer/Analyst/Worker Bee Techneglas, Inc. / Columbus, OH !****************************** Begin-Procedure Insert-Incident-Data !****************************** #debugp show 'PROC: Insert-Incident-Data' Begin-SQL INSERT INTO PS_INCIDENT_DATA ( INCIDENT_NBR, INCIDENT_TYPE, REG_REGION, DANGER_OCC_CD, INCIDENT_DT, INCIDENT_TIME, RECURRENCE, RESULT_INJURY_ILL, REPORTED_BY_EMPL, REPORTED_BY_NONEMP, REPORTED_TO, DT_REPORTED, TIME_REPORTED, DT_RECORDED, TIME_RECORDED, INVESTIGATED, EMPLOYER_PREMISES, SETID_LOCATION, LOCATION, LOCATION_NAME, COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3, COUNTY, STATE, POSTAL, GEO_CODE, IN_CITY_LIMIT, EXACT_LOCATION, ROAD_CONDITION, WEATHER_CONDITION, INC_OUTCOME_CAN, WCB_JURISDICT_SW, CLASS_SUBCLASS, EXPOSURE_ST_DT, EXPOSURE_ST_TM, EXPOSURE_END_DT, EXPOSURE_END_TM, BUSINESS_TYPE, OCCURRENCE_TYPE, DATE_TIME_EXACT_SW, INCDNT_OP_LOCN_SW, SCENE_DESCR, INCDNT_TMP_SITE_SW, CLAIM_CONTACT_ID, HS_CONTACT_EMPLID, LOCN_SIZE_CD, DISABLED_PROG_SW, DIS_PROG_EMPLID, RTW_AVAILABLE_SW, STREET_NBR, STREET_NAME, STREET_UNIT_NBR, WCB_PO_BOX, WCB_RR_NBR, INCIDENT_STAT_FRA, INCIDENT_TYPE_FRA, REP_BY_CLASS_FRA, REP_POLICE_SW_FRA, REP_POLICE_NAM_FRA, LOCATION_CLASS_FRA, SIGNER_EMPLID_FRA, WHERE_REPORTED_FRA, LOCAL_AUTHORITY_UK, PUBLIC_PLACE_SW_UK, DESCRLONG ) VALUES ( $Incident_Nbr, ! INCIDENT_NBR 'I', ! INCIDENT_TYPE 'USA', ! REG_REGION ' ', ! DANGER_OCC_CD $Incident_Dt, ! INCIDENT_DT '', ! INCIDENT_TIME 'N', ! RECURRENCE 'Y', ! RESULT_INJURY_ILL $EmplID, ! REPORTED_BY_EMPL ' ', ! REPORTED_BY_NONEMP ' ', ! REPORTED_TO $Incident_Dt, ! DT_REPORTED '', ! TIME_REPORTED $Incident_Dt, ! DT_RECORDED '', ! TIME_RECORDED 'N', ! INVESTIGATED 'Y', ! EMPLOYER_PREMISES 'COL', ! SETID_LOCATION ' ', ! LOCATION ' ', ! LOCATION_NAME 'USA', ! COUNTRY ' ', ! ADDRESS1 ' ', ! ADDRESS2 ' ', ! ADDRESS3 ' ', ! ADDRESS4 ' ', ! CITY ' ', ! NUM1 ' ', ! NUM2 ' ', ! HOUSE_TYPE ' ', ! ADDR_FIELD1 ' ', ! ADDR_FIELD2 ' ', ! ADDR_FIELD3 ' ', ! COUNTY ' ', ! STATE ' ', ! POSTAL ' ', ! GEO_CODE ' ', ! IN_CITY_LIMIT $Specific_Area, ! EXACT_LOCATION ' ', ! ROAD_CONDITION ' ', ! WEATHER_CONDITION ' ', ! INC_OUTCOME_CAN 'Y', ! WCB_JURISDICT_SW 0, ! CLASS_SUBCLASS '', ! EXPOSURE_ST_DT '', ! EXPOSURE_ST_TM '', ! EXPOSURE_END_DT '', ! EXPOSURE_END_TM ' ', ! BUSINESS_TYPE ' ', ! OCCURRENCE_TYPE 'N', ! DATE_TIME_EXACT_SW 'N', ! INCDNT_OP_LOCN_SW ' ', ! SCENE_DESCR 'N', ! INCDNT_TMP_SITE_SW ' ', ! CLAIM_CONTACT_ID ' ', ! HS_CONTACT_EMPLID ' ', ! LOCN_SIZE_CD 'N', ! DISABLED_PROG_SW ' ', ! DIS_PROG_EMPLID ' ', ! RTW_AVAILABLE_SW ' ', ! STREET_NBR ' ', ! STREET_NAME ' ', ! STREET_UNIT_NBR ' ', ! WCB_PO_BOX ' ', ! WCB_RR_NBR ' ', ! INCIDENT_STAT_FRA ' ', ! INCIDENT_TYPE_FRA ' ', ! REP_BY_CLASS_FRA ' ', ! REP_POLICE_SW_FRA ' ', ! REP_POLICE_NAM_FRA ' ', ! LOCATION_CLASS_FRA ' ', ! SIGNER_EMPLID_FRA ' ', ! WHERE_REPORTED_FRA ' ', ! LOCAL_AUTHORITY_UK ' ', ! PUBLIC_PLACE_SW_UK $Activity ! DESCRLONG ) End-SQL 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-admin@sqrug.org Thu May 1 13:33:33 2003 Date: Thu, 01 May 2003 14:30:30 -0400 From: "Jamie Harris" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Yes, for this reason I usually surround variables with '|' characters in show statements. For example: #debuga show '|' $variable '|' This tells me right away if I forgot to trim something. :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> Rick_Creel@aoncons.com 5/1/2003 2:27:45 PM >>> We have encountered the same problem. How do you get your input values? What we had to do was to use the LTRIM and/or RTRIM functions to eliminate unwanted spaces. I found that sometimes there were sufficient trailing spaces that would cause the field to be too long. Give this a try :=) "Dan Brinkley" glas.com> cc: "Richard Wyant" Sent by: Subject: RE: [sqr-users] Importing data into Peoplesoft 8 sqr-users-admin@s qrug.org 05/01/2003 02:21 PM Please respond to sqr-users Hey all, this is my first posting. I guess you only hear from me when I have a problem :) I'm now using SQR to load data into PS (ver 8) for Health and Safety. I'm getting the following Oracle error when trying to do my INSERT INTO PS_INCIDENT_DATA... (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: ORA-01401: inserted value too large for column It would be nice if Oracle told us what column has a problem. To figure this out, I've ran SQRW with the -S to produce the full SQL in the log file, then taken the INSERT statement and pasted it into SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate values. AND IT WORKS JUST FINE!!!! The Procedure is below, and I'm not really feeding in much user data at all; most is just field defaults. EXACT_LOCATION (char 240) and DESCRLONG (long char) are the ones I might suspect of causing a problem. But the input values appear to be within string limits. Does anyone have a better method of solving these kinds of problems in SQR. I've checked my code over and over again. I'm clueless. Anyone's comment is greatly appreciated. Daniel Brinkley Programmer/Analyst/Worker Bee Techneglas, Inc. / Columbus, OH !****************************** Begin-Procedure Insert-Incident-Data !****************************** #debugp show 'PROC: Insert-Incident-Data' Begin-SQL INSERT INTO PS_INCIDENT_DATA ( INCIDENT_NBR, INCIDENT_TYPE, REG_REGION, DANGER_OCC_CD, INCIDENT_DT, INCIDENT_TIME, RECURRENCE, RESULT_INJURY_ILL, REPORTED_BY_EMPL, REPORTED_BY_NONEMP, REPORTED_TO, DT_REPORTED, TIME_REPORTED, DT_RECORDED, TIME_RECORDED, INVESTIGATED, EMPLOYER_PREMISES, SETID_LOCATION, LOCATION, LOCATION_NAME, COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3, COUNTY, STATE, POSTAL, GEO_CODE, IN_CITY_LIMIT, EXACT_LOCATION, ROAD_CONDITION, WEATHER_CONDITION, INC_OUTCOME_CAN, WCB_JURISDICT_SW, CLASS_SUBCLASS, EXPOSURE_ST_DT, EXPOSURE_ST_TM, EXPOSURE_END_DT, EXPOSURE_END_TM, BUSINESS_TYPE, OCCURRENCE_TYPE, DATE_TIME_EXACT_SW, INCDNT_OP_LOCN_SW, SCENE_DESCR, INCDNT_TMP_SITE_SW, CLAIM_CONTACT_ID, HS_CONTACT_EMPLID, LOCN_SIZE_CD, DISABLED_PROG_SW, DIS_PROG_EMPLID, RTW_AVAILABLE_SW, STREET_NBR, STREET_NAME, STREET_UNIT_NBR, WCB_PO_BOX, WCB_RR_NBR, INCIDENT_STAT_FRA, INCIDENT_TYPE_FRA, REP_BY_CLASS_FRA, REP_POLICE_SW_FRA, REP_POLICE_NAM_FRA, LOCATION_CLASS_FRA, SIGNER_EMPLID_FRA, WHERE_REPORTED_FRA, LOCAL_AUTHORITY_UK, PUBLIC_PLACE_SW_UK, DESCRLONG ) VALUES ( $Incident_Nbr, ! INCIDENT_NBR 'I', ! INCIDENT_TYPE 'USA', ! REG_REGION ' ', ! DANGER_OCC_CD $Incident_Dt, ! INCIDENT_DT '', ! INCIDENT_TIME 'N', ! RECURRENCE 'Y', ! RESULT_INJURY_ILL $EmplID, ! REPORTED_BY_EMPL ' ', ! REPORTED_BY_NONEMP ' ', ! REPORTED_TO $Incident_Dt, ! DT_REPORTED '', ! TIME_REPORTED $Incident_Dt, ! DT_RECORDED '', ! TIME_RECORDED 'N', ! INVESTIGATED 'Y', ! EMPLOYER_PREMISES 'COL', ! SETID_LOCATION ' ', ! LOCATION ' ', ! LOCATION_NAME 'USA', ! COUNTRY ' ', ! ADDRESS1 ' ', ! ADDRESS2 ' ', ! ADDRESS3 ' ', ! ADDRESS4 ' ', ! CITY ' ', ! NUM1 ' ', ! NUM2 ' ', ! HOUSE_TYPE ' ', ! ADDR_FIELD1 ' ', ! ADDR_FIELD2 ' ', ! ADDR_FIELD3 ' ', ! COUNTY ' ', ! STATE ' ', ! POSTAL ' ', ! GEO_CODE ' ', ! IN_CITY_LIMIT $Specific_Area, ! EXACT_LOCATION ' ', ! ROAD_CONDITION ' ', ! WEATHER_CONDITION ' ', ! INC_OUTCOME_CAN 'Y', ! WCB_JURISDICT_SW 0, ! CLASS_SUBCLASS '', ! EXPOSURE_ST_DT '', ! EXPOSURE_ST_TM '', ! EXPOSURE_END_DT '', ! EXPOSURE_END_TM ' ', ! BUSINESS_TYPE ' ', ! OCCURRENCE_TYPE 'N', ! DATE_TIME_EXACT_SW 'N', ! INCDNT_OP_LOCN_SW ' ', ! SCENE_DESCR 'N', ! INCDNT_TMP_SITE_SW ' ', ! CLAIM_CONTACT_ID ' ', ! HS_CONTACT_EMPLID ' ', ! LOCN_SIZE_CD 'N', ! DISABLED_PROG_SW ' ', ! DIS_PROG_EMPLID ' ', ! RTW_AVAILABLE_SW ' ', ! STREET_NBR ' ', ! STREET_NAME ' ', ! STREET_UNIT_NBR ' ', ! WCB_PO_BOX ' ', ! WCB_RR_NBR ' ', ! INCIDENT_STAT_FRA ' ', ! INCIDENT_TYPE_FRA ' ', ! REP_BY_CLASS_FRA ' ', ! REP_POLICE_SW_FRA ' ', ! REP_POLICE_NAM_FRA ' ', ! LOCATION_CLASS_FRA ' ', ! SIGNER_EMPLID_FRA ' ', ! WHERE_REPORTED_FRA ' ', ! LOCAL_AUTHORITY_UK ' ', ! PUBLIC_PLACE_SW_UK $Activity ! DESCRLONG ) End-SQL 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-admin@sqrug.org Fri May 2 00:24:04 2003 Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 2 May 2003 10:55:13 +0530 From: "Mathews, Sam (Cognizant)" This is a multi-part message in MIME format... ------=_NextPartTM-000-51057ea7-b7de-4691-89ac-59a544610b2b Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I guess sometimes the "Carriage-return" and "Line-feed" characters also cau= se problems... so, if such is the case, you will have to translate these characters and th= en do further processing. -----Original Message----- From: Dan Brinkley [mailto:DBrinkley@techneglas.com] Sent: Thursday, May 01, 2003 11:52 PM To: sqr-users@sqrug.org Cc: Richard Wyant Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Hey all, this is my first posting. I guess you only hear from me when I have a problem :) I'm now using SQR to load data into PS (ver 8) for Health and Safety. I'm getting the following Oracle error when trying to do my INSERT INTO PS_INCIDENT_DATA... (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: ORA-01401: inserted value too large for column It would be nice if Oracle told us what column has a problem.=20=20 To figure this out, I've ran SQRW with the -S to produce the full SQL in the log file, then taken the INSERT statement and pasted it into SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate values. AND IT WORKS JUST FINE!!!! The Procedure is below, and I'm not really feeding in much user data at all; most is just field defaults. EXACT_LOCATION (char 240) and DESCRLONG (long char) are the ones I might suspect of causing a problem. But the input values appear to be within string limits. Does anyone have a better method of solving these kinds of problems in SQR. I've checked my code over and over again. I'm clueless.=20 Anyone's comment is greatly appreciated. Daniel Brinkley Programmer/Analyst/Worker Bee Techneglas, Inc. / Columbus, OH !****************************** Begin-Procedure Insert-Incident-Data !****************************** #debugp show 'PROC: Insert-Incident-Data' Begin-SQL=20 INSERT INTO PS_INCIDENT_DATA ( INCIDENT_NBR, INCIDENT_TYPE, REG_REGION, DANGER_OCC_CD, INCIDENT_DT, INCIDENT_TIME, RECURRENCE, RESULT_INJURY_ILL, REPORTED_BY_EMPL, REPORTED_BY_NONEMP, REPORTED_TO, DT_REPORTED, TIME_REPORTED, DT_RECORDED, TIME_RECORDED, INVESTIGATED, EMPLOYER_PREMISES, SETID_LOCATION, LOCATION, LOCATION_NAME, COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3, COUNTY, STATE, POSTAL, GEO_CODE, IN_CITY_LIMIT, EXACT_LOCATION, ROAD_CONDITION, WEATHER_CONDITION, INC_OUTCOME_CAN, WCB_JURISDICT_SW, CLASS_SUBCLASS, EXPOSURE_ST_DT, EXPOSURE_ST_TM, EXPOSURE_END_DT, EXPOSURE_END_TM, BUSINESS_TYPE, OCCURRENCE_TYPE, DATE_TIME_EXACT_SW, INCDNT_OP_LOCN_SW, SCENE_DESCR, INCDNT_TMP_SITE_SW, CLAIM_CONTACT_ID, HS_CONTACT_EMPLID, LOCN_SIZE_CD, DISABLED_PROG_SW, DIS_PROG_EMPLID, RTW_AVAILABLE_SW, STREET_NBR, STREET_NAME, STREET_UNIT_NBR, WCB_PO_BOX, WCB_RR_NBR, INCIDENT_STAT_FRA, INCIDENT_TYPE_FRA, REP_BY_CLASS_FRA, REP_POLICE_SW_FRA, REP_POLICE_NAM_FRA, LOCATION_CLASS_FRA, SIGNER_EMPLID_FRA, WHERE_REPORTED_FRA, LOCAL_AUTHORITY_UK, PUBLIC_PLACE_SW_UK, DESCRLONG ) VALUES ( $Incident_Nbr, ! INCIDENT_NBR 'I', ! INCIDENT_TYPE 'USA', ! REG_REGION ' ', ! DANGER_OCC_CD $Incident_Dt, ! INCIDENT_DT '', ! INCIDENT_TIME 'N', ! RECURRENCE 'Y', ! RESULT_INJURY_ILL $EmplID, ! REPORTED_BY_EMPL ' ', ! REPORTED_BY_NONEMP ' ', ! REPORTED_TO $Incident_Dt, ! DT_REPORTED '', ! TIME_REPORTED $Incident_Dt, ! DT_RECORDED '', ! TIME_RECORDED 'N', ! INVESTIGATED 'Y', ! EMPLOYER_PREMISES 'COL', ! SETID_LOCATION ' ', ! LOCATION ' ', ! LOCATION_NAME 'USA', ! COUNTRY ' ', ! ADDRESS1 ' ', ! ADDRESS2 ' ', ! ADDRESS3 ' ', ! ADDRESS4 ' ', ! CITY ' ', ! NUM1 ' ', ! NUM2 ' ', ! HOUSE_TYPE ' ', ! ADDR_FIELD1 ' ', ! ADDR_FIELD2 ' ', ! ADDR_FIELD3 ' ', ! COUNTY ' ', ! STATE ' ', ! POSTAL ' ', ! GEO_CODE ' ', ! IN_CITY_LIMIT $Specific_Area, ! EXACT_LOCATION ' ', ! ROAD_CONDITION ' ', ! WEATHER_CONDITION ' ', ! INC_OUTCOME_CAN 'Y', ! WCB_JURISDICT_SW 0, ! CLASS_SUBCLASS '', ! EXPOSURE_ST_DT '', ! EXPOSURE_ST_TM '', ! EXPOSURE_END_DT '', ! EXPOSURE_END_TM ' ', ! BUSINESS_TYPE ' ', ! OCCURRENCE_TYPE 'N', ! DATE_TIME_EXACT_SW 'N', ! INCDNT_OP_LOCN_SW ' ', ! SCENE_DESCR 'N', ! INCDNT_TMP_SITE_SW ' ', ! CLAIM_CONTACT_ID ' ', ! HS_CONTACT_EMPLID ' ', ! LOCN_SIZE_CD 'N', ! DISABLED_PROG_SW ' ', ! DIS_PROG_EMPLID ' ', ! RTW_AVAILABLE_SW ' ', ! STREET_NBR ' ', ! STREET_NAME ' ', ! STREET_UNIT_NBR ' ', ! WCB_PO_BOX ' ', ! WCB_RR_NBR ' ', ! INCIDENT_STAT_FRA ' ', ! INCIDENT_TYPE_FRA ' ', ! REP_BY_CLASS_FRA ' ', ! REP_POLICE_SW_FRA ' ', ! REP_POLICE_NAM_FRA ' ', ! LOCATION_CLASS_FRA ' ', ! SIGNER_EMPLID_FRA ' ', ! WHERE_REPORTED_FRA ' ', ! LOCAL_AUTHORITY_UK ' ', ! PUBLIC_PLACE_SW_UK $Activity ! DESCRLONG ) End-SQL End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPartTM-000-51057ea7-b7de-4691-89ac-59a544610b2b Content-Type: text/plain; name="InterScan_SafeStamp.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_SafeStamp.txt" ****** Message from InterScan E-Mail VirusWall NT ****** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). ***************** End of message *************** ------=_NextPartTM-000-51057ea7-b7de-4691-89ac-59a544610b2b Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-51057ea7-b7de-4691-89ac-59a544610b2b-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 07:38:56 2003 From: "Edwin Hommes" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 2 May 2003 14:35:38 +0200 Jim, Of course it is not carved in stone that you use SQR to load data into PeopleSoft tables. The reason it is used so often is because it is a proven tool which allows a great database transaction control. The disadvantage of all tools mentioned is that no dependancies in the database are checked or updated by these tools unless programmed in the dataloader tool. Since SQR proved itself so many times there are loads of programms out there that other people made and used that do have these dependancy logic in it already. Using a tool which hasn't got that basically means doing a whole lot of work again. Hope this helps you, Edwin ----- Original Message ----- From: "Jim Engebretson" To: Sent: Thursday, May 01, 2003 6:52 PM Subject: [sqr-users] Importing data into Peoplesoft 8 > Are we required to use SQR for importing data into Peoplesoft data tables? > Why can't computer administrators directly import data into Peoplesoft user > data tables (i.e. using MS Sql Server DTS) since we are not affecting > control tables (panel field sizes or security)? > > > > Thank you, > > > > Jim Engebretson > > Cerritos College > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.476 / Virus Database: 273 - Release Date: 24/04/2003 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 08:40:16 2003 From: "Barnes, Tracy" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 2 May 2003 08:37:10 -0500 Jim, PeopleSoft likes to think they can control you and your interaction with the PS database, but we know they can't. Any tool that can be used to import/export/load database tables can and should be considered for loading your data into the PS system. Some tools have distinct advantages over others, and some are better suited for certain tasks and volumes of data. Things to consider: - If the data needs error checking, data validation or manipulation, then it is best to use a Procedural language, such as SQR. - If the data is a straight load from a fixed length flat file, and there is a large amount of data, then it may be best to use a RDBMS specific tool such as MSS DTS, or Oracle SQL*Loader. This is good for PS setup tables. - If the table is a stand-alone table, i.e. no parent/child tables, it will also help your choice. If there are parent/child relationships that need to be adhered to, then be sure to load those necessary tables ASAP. The RDBMS does not have any Integrity constraints for the PS tables, but if all Integrity is not enforced by the Programmer/DBA doing the load, the PS Application will experience problems! Hope this helps! Tracy E. Barnes Ciber Enterprise Solutions Principal Consultant Cell: (317) 374-7356 -----Original Message----- From: Jim Engebretson [mailto:jengebretson@Cerritos.edu] Sent: Thursday, May 01, 2003 11:53 AM To: sqr-users@sqrug.org Subject: [sqr-users] Importing data into Peoplesoft 8 Are we required to use SQR for importing data into Peoplesoft data tables? Why can't computer administrators directly import data into Peoplesoft user data tables (i.e. using MS Sql Server DTS) since we are not affecting control tables (panel field sizes or security)? Thank you, Jim Engebretson Cerritos College _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri May 2 08:59:06 2003 Date: Fri, 02 May 2003 09:58:07 -0400 From: "Dan Brinkley" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Thanks to all for the assistance. Trailing spaces was definitely a good thing to check for. I guess what bothers me the most is that the Oracle error message doesn't indicate which column it is. I should not have to spend the whole day figuring this out. Thanks again, Daniel Brinkley Techneglas, Inc. Columbus, OH. >>> pmenta@umuc.edu 05/01/2003 2:32:08 PM >>> Display the values and their legnths before the insert . Also append on-error at your insert procedure so that it helps Prasanna Dan Brinkley wrote: > > Hey all, this is my first posting. I guess you only hear from me when I > have a problem :) > I'm now using SQR to load data into PS (ver 8) for Health and Safety. > > I'm getting the following Oracle error when trying to do my INSERT INTO > PS_INCIDENT_DATA... > > (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: > ORA-01401: inserted value too large for column > > It would be nice if Oracle told us what column has a problem. > > To figure this out, I've ran SQRW with the -S to produce the full SQL > in the log file, then taken the INSERT statement and pasted it into > SQL-PLUS, replaced the bind variables (:1, :2, etc...) with appropriate > values. > AND IT WORKS JUST FINE!!!! > > The Procedure is below, and I'm not really feeding in much user data at > all; most is just field defaults. EXACT_LOCATION (char 240) and > DESCRLONG (long char) are the ones I might suspect of causing a problem. > But the input values appear to be within string limits. > > Does anyone have a better method of solving these kinds of problems in > SQR. I've checked my code over and over again. I'm clueless. > Anyone's comment is greatly appreciated. > > Daniel Brinkley > Programmer/Analyst/Worker Bee > Techneglas, Inc. / Columbus, OH > > !****************************** > Begin-Procedure Insert-Incident-Data > !****************************** > #debugp show 'PROC: Insert-Incident-Data' > Begin-SQL > INSERT INTO PS_INCIDENT_DATA > ( > INCIDENT_NBR, > INCIDENT_TYPE, > REG_REGION, > DANGER_OCC_CD, > INCIDENT_DT, > INCIDENT_TIME, > RECURRENCE, > RESULT_INJURY_ILL, > REPORTED_BY_EMPL, > REPORTED_BY_NONEMP, > REPORTED_TO, > DT_REPORTED, > TIME_REPORTED, > DT_RECORDED, > TIME_RECORDED, > INVESTIGATED, > EMPLOYER_PREMISES, > SETID_LOCATION, > LOCATION, > LOCATION_NAME, > COUNTRY, > ADDRESS1, > ADDRESS2, > ADDRESS3, > ADDRESS4, > CITY, > NUM1, > NUM2, > HOUSE_TYPE, > ADDR_FIELD1, > ADDR_FIELD2, > ADDR_FIELD3, > COUNTY, > STATE, > POSTAL, > GEO_CODE, > IN_CITY_LIMIT, > EXACT_LOCATION, > ROAD_CONDITION, > WEATHER_CONDITION, > INC_OUTCOME_CAN, > WCB_JURISDICT_SW, > CLASS_SUBCLASS, > EXPOSURE_ST_DT, > EXPOSURE_ST_TM, > EXPOSURE_END_DT, > EXPOSURE_END_TM, > BUSINESS_TYPE, > OCCURRENCE_TYPE, > DATE_TIME_EXACT_SW, > INCDNT_OP_LOCN_SW, > SCENE_DESCR, > INCDNT_TMP_SITE_SW, > CLAIM_CONTACT_ID, > HS_CONTACT_EMPLID, > LOCN_SIZE_CD, > DISABLED_PROG_SW, > DIS_PROG_EMPLID, > RTW_AVAILABLE_SW, > STREET_NBR, > STREET_NAME, > STREET_UNIT_NBR, > WCB_PO_BOX, > WCB_RR_NBR, > INCIDENT_STAT_FRA, > INCIDENT_TYPE_FRA, > REP_BY_CLASS_FRA, > REP_POLICE_SW_FRA, > REP_POLICE_NAM_FRA, > LOCATION_CLASS_FRA, > SIGNER_EMPLID_FRA, > WHERE_REPORTED_FRA, > LOCAL_AUTHORITY_UK, > PUBLIC_PLACE_SW_UK, > DESCRLONG > ) > VALUES > ( > $Incident_Nbr, ! INCIDENT_NBR > 'I', ! INCIDENT_TYPE > 'USA', ! REG_REGION > ' ', ! DANGER_OCC_CD > $Incident_Dt, ! INCIDENT_DT > '', ! INCIDENT_TIME > 'N', ! RECURRENCE > 'Y', ! RESULT_INJURY_ILL > $EmplID, ! REPORTED_BY_EMPL > ' ', ! REPORTED_BY_NONEMP > ' ', ! REPORTED_TO > $Incident_Dt, ! DT_REPORTED > '', ! TIME_REPORTED > $Incident_Dt, ! DT_RECORDED > '', ! TIME_RECORDED > 'N', ! INVESTIGATED > 'Y', ! EMPLOYER_PREMISES > 'COL', ! SETID_LOCATION > ' ', ! LOCATION > ' ', ! LOCATION_NAME > 'USA', ! COUNTRY > ' ', ! ADDRESS1 > ' ', ! ADDRESS2 > ' ', ! ADDRESS3 > ' ', ! ADDRESS4 > ' ', ! CITY > ' ', ! NUM1 > ' ', ! NUM2 > ' ', ! HOUSE_TYPE > ' ', ! ADDR_FIELD1 > ' ', ! ADDR_FIELD2 > ' ', ! ADDR_FIELD3 > ' ', ! COUNTY > ' ', ! STATE > ' ', ! POSTAL > ' ', ! GEO_CODE > ' ', ! IN_CITY_LIMIT > $Specific_Area, ! EXACT_LOCATION > ' ', ! ROAD_CONDITION > ' ', ! WEATHER_CONDITION > ' ', ! INC_OUTCOME_CAN > 'Y', ! WCB_JURISDICT_SW > 0, ! CLASS_SUBCLASS > '', ! EXPOSURE_ST_DT > '', ! EXPOSURE_ST_TM > '', ! EXPOSURE_END_DT > '', ! EXPOSURE_END_TM > ' ', ! BUSINESS_TYPE > ' ', ! OCCURRENCE_TYPE > 'N', ! DATE_TIME_EXACT_SW > 'N', ! INCDNT_OP_LOCN_SW > ' ', ! SCENE_DESCR > 'N', ! INCDNT_TMP_SITE_SW > ' ', ! CLAIM_CONTACT_ID > ' ', ! HS_CONTACT_EMPLID > ' ', ! LOCN_SIZE_CD > 'N', ! DISABLED_PROG_SW > ' ', ! DIS_PROG_EMPLID > ' ', ! RTW_AVAILABLE_SW > ' ', ! STREET_NBR > ' ', ! STREET_NAME > ' ', ! STREET_UNIT_NBR > ' ', ! WCB_PO_BOX > ' ', ! WCB_RR_NBR > ' ', ! INCIDENT_STAT_FRA > ' ', ! INCIDENT_TYPE_FRA > ' ', ! REP_BY_CLASS_FRA > ' ', ! REP_POLICE_SW_FRA > ' ', ! REP_POLICE_NAM_FRA > ' ', ! LOCATION_CLASS_FRA > ' ', ! SIGNER_EMPLID_FRA > ' ', ! WHERE_REPORTED_FRA > ' ', ! LOCAL_AUTHORITY_UK > ' ', ! PUBLIC_PLACE_SW_UK > $Activity ! DESCRLONG > ) > End-SQL > > 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-admin@sqrug.org Fri May 2 09:07:05 2003 From: "Turner, Ivan" Subject: RE: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 2 May 2003 10:06:12 -0400 sqr is best for data loads when they will be periodic loads performed by a user. -----Original Message----- From: Edwin Hommes [mailto:hommes@bluewin.ch] Sent: Friday, May 02, 2003 8:36 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Jim, Of course it is not carved in stone that you use SQR to load data into PeopleSoft tables. The reason it is used so often is because it is a proven tool which allows a great database transaction control. The disadvantage of all tools mentioned is that no dependancies in the database are checked or updated by these tools unless programmed in the dataloader tool. Since SQR proved itself so many times there are loads of programms out there that other people made and used that do have these dependancy logic in it already. Using a tool which hasn't got that basically means doing a whole lot of work again. Hope this helps you, Edwin ----- Original Message ----- From: "Jim Engebretson" To: Sent: Thursday, May 01, 2003 6:52 PM Subject: [sqr-users] Importing data into Peoplesoft 8 > Are we required to use SQR for importing data into Peoplesoft data tables? > Why can't computer administrators directly import data into Peoplesoft user > data tables (i.e. using MS Sql Server DTS) since we are not affecting > control tables (panel field sizes or security)? > > > > Thank you, > > > > Jim Engebretson > > Cerritos College > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.476 / Virus Database: 273 - Release Date: 24/04/2003 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri May 2 09:16:07 2003 From: "Ashish Bhatt" Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 02 May 2003 14:15:29 +0000 Dan, the best way to figure out this is to take your insert in any sql editor (TOAD, etc) and hard code the input values in the insert. Then run insert. This way you don't waste whole day. It is max 30 minutes to hard code the values in insert. To get these values you have to put show/display right before the insert in the sqr. This is how I have been doing this since last 3 years. Have a nice day and great weekend. Regards. Ashish Bhatt. >From: "Dan Brinkley" >Reply-To: sqr-users@sqrug.org >To: >Subject: Re: [sqr-users] Importing data into Peoplesoft 8 >Date: Fri, 02 May 2003 09:58:07 -0400 > >Thanks to all for the assistance. Trailing spaces was definitely a good >thing to check for. I guess what bothers me the most is that the Oracle >error message doesn't indicate which column it is. I should not have to >spend the whole day figuring this out. > >Thanks again, >Daniel Brinkley >Techneglas, Inc. >Columbus, OH. > > >>> pmenta@umuc.edu 05/01/2003 2:32:08 PM >>> >Display the values and their legnths before the insert . Also append >on-error at your insert procedure so that it helps >Prasanna > >Dan Brinkley wrote: > > > > Hey all, this is my first posting. I guess you only hear from me >when I > > have a problem :) > > I'm now using SQR to load data into PS (ver 8) for Health and >Safety. > > > > I'm getting the following Oracle error when trying to do my INSERT >INTO > > PS_INCIDENT_DATA... > > > > (SQR 5528) ORACLE OCIStmtExecute error 1401 in cursor 5: > > ORA-01401: inserted value too large for column > > > > It would be nice if Oracle told us what column has a problem. > > > > To figure this out, I've ran SQRW with the -S to produce the full >SQL > > in the log file, then taken the INSERT statement and pasted it into > > SQL-PLUS, replaced the bind variables (:1, :2, etc...) with >appropriate > > values. > > AND IT WORKS JUST FINE!!!! > > > > The Procedure is below, and I'm not really feeding in much user data >at > > all; most is just field defaults. EXACT_LOCATION (char 240) and > > DESCRLONG (long char) are the ones I might suspect of causing a >problem. > > But the input values appear to be within string limits. > > > > Does anyone have a better method of solving these kinds of problems >in > > SQR. I've checked my code over and over again. I'm clueless. > > Anyone's comment is greatly appreciated. > > > > Daniel Brinkley > > Programmer/Analyst/Worker Bee > > Techneglas, Inc. / Columbus, OH > > > > !****************************** > > Begin-Procedure Insert-Incident-Data > > !****************************** > > #debugp show 'PROC: Insert-Incident-Data' > > Begin-SQL > > INSERT INTO PS_INCIDENT_DATA > > ( > > INCIDENT_NBR, > > INCIDENT_TYPE, > > REG_REGION, > > DANGER_OCC_CD, > > INCIDENT_DT, > > INCIDENT_TIME, > > RECURRENCE, > > RESULT_INJURY_ILL, > > REPORTED_BY_EMPL, > > REPORTED_BY_NONEMP, > > REPORTED_TO, > > DT_REPORTED, > > TIME_REPORTED, > > DT_RECORDED, > > TIME_RECORDED, > > INVESTIGATED, > > EMPLOYER_PREMISES, > > SETID_LOCATION, > > LOCATION, > > LOCATION_NAME, > > COUNTRY, > > ADDRESS1, > > ADDRESS2, > > ADDRESS3, > > ADDRESS4, > > CITY, > > NUM1, > > NUM2, > > HOUSE_TYPE, > > ADDR_FIELD1, > > ADDR_FIELD2, > > ADDR_FIELD3, > > COUNTY, > > STATE, > > POSTAL, > > GEO_CODE, > > IN_CITY_LIMIT, > > EXACT_LOCATION, > > ROAD_CONDITION, > > WEATHER_CONDITION, > > INC_OUTCOME_CAN, > > WCB_JURISDICT_SW, > > CLASS_SUBCLASS, > > EXPOSURE_ST_DT, > > EXPOSURE_ST_TM, > > EXPOSURE_END_DT, > > EXPOSURE_END_TM, > > BUSINESS_TYPE, > > OCCURRENCE_TYPE, > > DATE_TIME_EXACT_SW, > > INCDNT_OP_LOCN_SW, > > SCENE_DESCR, > > INCDNT_TMP_SITE_SW, > > CLAIM_CONTACT_ID, > > HS_CONTACT_EMPLID, > > LOCN_SIZE_CD, > > DISABLED_PROG_SW, > > DIS_PROG_EMPLID, > > RTW_AVAILABLE_SW, > > STREET_NBR, > > STREET_NAME, > > STREET_UNIT_NBR, > > WCB_PO_BOX, > > WCB_RR_NBR, > > INCIDENT_STAT_FRA, > > INCIDENT_TYPE_FRA, > > REP_BY_CLASS_FRA, > > REP_POLICE_SW_FRA, > > REP_POLICE_NAM_FRA, > > LOCATION_CLASS_FRA, > > SIGNER_EMPLID_FRA, > > WHERE_REPORTED_FRA, > > LOCAL_AUTHORITY_UK, > > PUBLIC_PLACE_SW_UK, > > DESCRLONG > > ) > > VALUES > > ( > > $Incident_Nbr, ! INCIDENT_NBR > > 'I', ! INCIDENT_TYPE > > 'USA', ! REG_REGION > > ' ', ! DANGER_OCC_CD > > $Incident_Dt, ! INCIDENT_DT > > '', ! INCIDENT_TIME > > 'N', ! RECURRENCE > > 'Y', ! RESULT_INJURY_ILL > > $EmplID, ! REPORTED_BY_EMPL > > ' ', ! REPORTED_BY_NONEMP > > ' ', ! REPORTED_TO > > $Incident_Dt, ! DT_REPORTED > > '', ! TIME_REPORTED > > $Incident_Dt, ! DT_RECORDED > > '', ! TIME_RECORDED > > 'N', ! INVESTIGATED > > 'Y', ! EMPLOYER_PREMISES > > 'COL', ! SETID_LOCATION > > ' ', ! LOCATION > > ' ', ! LOCATION_NAME > > 'USA', ! COUNTRY > > ' ', ! ADDRESS1 > > ' ', ! ADDRESS2 > > ' ', ! ADDRESS3 > > ' ', ! ADDRESS4 > > ' ', ! CITY > > ' ', ! NUM1 > > ' ', ! NUM2 > > ' ', ! HOUSE_TYPE > > ' ', ! ADDR_FIELD1 > > ' ', ! ADDR_FIELD2 > > ' ', ! ADDR_FIELD3 > > ' ', ! COUNTY > > ' ', ! STATE > > ' ', ! POSTAL > > ' ', ! GEO_CODE > > ' ', ! IN_CITY_LIMIT > > $Specific_Area, ! EXACT_LOCATION > > ' ', ! ROAD_CONDITION > > ' ', ! WEATHER_CONDITION > > ' ', ! INC_OUTCOME_CAN > > 'Y', ! WCB_JURISDICT_SW > > 0, ! CLASS_SUBCLASS > > '', ! EXPOSURE_ST_DT > > '', ! EXPOSURE_ST_TM > > '', ! EXPOSURE_END_DT > > '', ! EXPOSURE_END_TM > > ' ', ! BUSINESS_TYPE > > ' ', ! OCCURRENCE_TYPE > > 'N', ! DATE_TIME_EXACT_SW > > 'N', ! INCDNT_OP_LOCN_SW > > ' ', ! SCENE_DESCR > > 'N', ! INCDNT_TMP_SITE_SW > > ' ', ! CLAIM_CONTACT_ID > > ' ', ! HS_CONTACT_EMPLID > > ' ', ! LOCN_SIZE_CD > > 'N', ! DISABLED_PROG_SW > > ' ', ! DIS_PROG_EMPLID > > ' ', ! RTW_AVAILABLE_SW > > ' ', ! STREET_NBR > > ' ', ! STREET_NAME > > ' ', ! STREET_UNIT_NBR > > ' ', ! WCB_PO_BOX > > ' ', ! WCB_RR_NBR > > ' ', ! INCIDENT_STAT_FRA > > ' ', ! INCIDENT_TYPE_FRA > > ' ', ! REP_BY_CLASS_FRA > > ' ', ! REP_POLICE_SW_FRA > > ' ', ! REP_POLICE_NAM_FRA > > ' ', ! LOCATION_CLASS_FRA > > ' ', ! SIGNER_EMPLID_FRA > > ' ', ! WHERE_REPORTED_FRA > > ' ', ! LOCAL_AUTHORITY_UK > > ' ', ! PUBLIC_PLACE_SW_UK > > $Activity ! DESCRLONG > > ) > > End-SQL > > > > 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 _________________________________________________________________ Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 17:48:05 2003 From: Date: Fri, 2 May 2003 18:45:37 -500 Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Please Note: This is an automated reply. I will be out of the district May 5 - 9. I will be checking mail during this time but may be unable to respond until I return on May 12th. If you need immediate assistance, please contact Angie Cartrette at acartre@do.hcs.k12.sc.us or phone the Help Desk at 843-488-6825. Thank you, Jeri _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 18:06:06 2003 From: "Jeri Fawcett" Date: Fri, 2 May 2003 19:04:34 -0400 Subject: Re: [sqr-users] Importing data into Peoplesoft 8 My apologies for the out of office reply. I'd made a typo in the list address when I entered it in the "don't reply" file. Jeri _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 17:45:12 2003 From: Al H Subject: Re: [sqr-users] Importing data into Peoplesoft 8 Date: Fri, 02 May 2003 15:43:56 -0700 The tools you use for data loading are strictly a decision of technical business policy. There is no encryption in PeopleSoft tables that would require you to use any specific tool. Size considerations (200 records vs 2 million), purpose (initial data conversion, ongoing interfaces etc), data sources and available expertise on the tools that might be used are all considerations. SQR, DTS, Data Mover, PS Import Manager (8.1x tools and prior), Application Engine, Component Interface all have there values in getting data into the system. One big consideration is the volume of data. Massive amounts of data to be loaded in one run may be best loaded using the database platform tools where the journalling can be turned off. On Thu, 01 May 2003 09:52:53 -0700, you wrote: >Are we required to use SQR for importing data into Peoplesoft data tables? >Why can't computer administrators directly import data into Peoplesoft user >data tables (i.e. using MS Sql Server DTS) since we are not affecting >control tables (panel field sizes or security)? > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 15:31:03 2003 From: luc.vallee@vtl.ca Date: Fri, 2 May 2003 16:28:08 -0400 Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be greatly appreciated Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 2 15:44:06 2003 From: "Benzenhafer, Dave" Subject: RE: [sqr-users] Problem with PRINT-IMAGE function Date: Fri, 2 May 2003 15:41:53 -0500 PDF files will only recognize JPEG files. You need to declare the image in the setup section like DECLARE-IMAGE TO_logo type=jpeg-file image-size=(22,2) source='to.jpg' END-DECLARE And then in a procedure Print-Image TO_logo (1,126) Good luck Dave Benzenhafer dbenzenhafer@houston.deepwater.com -----Original Message----- From: luc.vallee@vtl.ca [mailto:luc.vallee@vtl.ca] Sent: Friday, May 02, 2003 3:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be 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-admin@sqrug.org Fri May 2 15:50:06 2003 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] Problem with PRINT-IMAGE function Date: Fri, 2 May 2003 16:49:32 -0400 Have you experimented with the image-size you are specifying? Try increasing those parameters. I have had this problem before also and it is usually because I haven't specified large enough area for the gif file. -----Original Message----- From: luc.vallee@vtl.ca [mailto:luc.vallee@vtl.ca] Sent: Friday, May 02, 2003 4:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be 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-admin@sqrug.org Fri May 2 15:54:05 2003 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] Problem with PRINT-IMAGE function Date: Fri, 2 May 2003 16:53:12 -0400 Dave, To generate PDF files, you CAN also use gif files. We use them all the time on our reports. HTH, Louise -----Original Message----- From: Benzenhafer, Dave [mailto:DBenzenhafer@houston.deepwater.com] Sent: Friday, May 02, 2003 4:42 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Problem with PRINT-IMAGE function PDF files will only recognize JPEG files. You need to declare the image in the setup section like DECLARE-IMAGE TO_logo type=jpeg-file image-size=(22,2) source='to.jpg' END-DECLARE And then in a procedure Print-Image TO_logo (1,126) Good luck Dave Benzenhafer dbenzenhafer@houston.deepwater.com -----Original Message----- From: luc.vallee@vtl.ca [mailto:luc.vallee@vtl.ca] Sent: Friday, May 02, 2003 3:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be 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-admin@sqrug.org Sun May 4 19:43:18 2003 From: James Clarke Date: Mon, 5 May 2003 10:42:04 +1000 Subject: [sqr-users] HowTo print Japanese Characters from SQR? SQR Users We're trying to produce a Japanese Document from SQR/BRIO.Reports on a unix platform in Postscript. We've got the Japanese literals in a DBCS Oracle database. We produce a Postscript file, then we then try to print and convert the ps file to pdf at a later stage but we get the following error. Error: /undefined in %Type0BuildChar Operand stack: false --nostringval-- --nostringval-- --dict:12/13(ro)(L)-- 0 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa lse 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop .runexec 2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push -- nostringval-- %finish_show --nostringval-- --nostringval-- 7 4 3 - -nostringval-- (pdf_text_enum_t) %op_show_continue --nostringval-- --nos tringval-- Dictionary stack: --dict:995/1476(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:50/ 200(L)-- Current allocation mode is local Current file position is 25483 I suspect the /SF postscript stack coded by SQR in the Prologue doesn't like supporting CID fonts. When I run the following sample code it works fine.... %!PS-Adobe-3.0 %%BoundingBox: 50 450 550 600 %%Pages: (atend) %%EndComments %%Page: 1 1 /WadaMin-Regular-H findfont 60 scalefont setfont 50 500 moveto <2156 3b33 4544 2122 4259 3b4a 2123 2157> show showpage %%Trailer %%EOF Does Brio.Reports support the Postscript CID-Keyed fonts? Is there only a couple of Japanese Fonts that SQR supports? If so which ones please... Are there any SQR settings that should be checked to produce Japanese/Multi-Byte CharacterSets)? For an Ascii font the lower(1) and upper(255). What is, or how can I find out what the lower and upper bounds of the font WadaMin-Regular-H is? >From what I can see we're trying to produce font glyphs using hex values in the range of <938C 8EC5> so I'm hoping the WadaMin-Regular-H font is just a subset of the Japanese font and the problem is we're using the wrong font.... That would be an easier problem to deal with... Any help is appreciated.... James Clarke Hansen Technologies Technical Consultant 2 Frederick Street, Doncaster, Victoria 3108, Australia Phone: +61 (0)3 9840 3855 Mobile: +61 (0)4 0812 7357 Fax: +61 3 9840 3099 E-Mail: james.clarke@hsntech.com _____ ***************************************************************************** Notice: This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of Hansen Technologies Limited or third parties. Copying, distributing, disclosing, commercialising or otherwise acting in reliance on this e-mail and any attachments is strictly prohibited unless you are the addressee of this e-mail and have written permission to do so. If you have received this e-mail in error please delete this e-mail (including any copies and attachments) and contact Hansen Technologies Limited by return e-mail or by telephone on + 61 3 9840 3000. Any views expressed in this e-mail are those of the individual sender and may not necessarily reflect the views of or be a commitment by the organisation, except where the individual sender has the authority and expressly states them to be so. ***************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon May 5 12:38:08 2003 From: Manuel_Garcia@hdm.honda.com Date: Mon, 5 May 2003 12:36:27 -0500 Subject: [sqr-users] Urgent help needed !! Hi all, I'm writing a sqr program and I'm having a performance problem with this statement: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; COMMIT; END-SQL My key fields are: PS_HDM_VOUCHER_TMP: voucher_id PS_PYMNT_VCHR_XREF: business_unit, voucher_id, pymnt_count. If I run a query oustide sqr (PS Query for instance), it runs almost immediately, SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; I have similar statements along my program and there's no problem whit them, the next, for instance, it runs quick: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT A.VOUCHER_ID, B.PYMNT_CNT, A.INVOICE_ID, A.VENDOR_ID, A.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, B.RATE_MULT, A.MONETARY_AMOUNT, B.PYMNT_GROSS_AMT, B.SCHEDULED_PAY_DT, B.PYMNT_SELCT_STATUS, C.PYMNT_DT FROM PS_HDM_VOUCHER_TMP A, PS_PYMNT_VCHR_XREF B, PS_PAYMENT_TBL C WHERE A.VOUCHER_ID = B.VOUCHER_ID AND C.BANK_SETID = B.BANK_SETID AND C.BANK_CD = B.BANK_CD AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND C.PYMNT_ID = B.PYMNT_ID AND A.ACCOUNTING_DT <= $fecha AND B.PYMNT_SELCT_STATUS = 'P' AND C.ACCOUNTING_DT > $fecha ; COMMIT; END-SQL Thanks. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon May 5 15:16:24 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Urgent help needed !! Date: Mon, 5 May 2003 13:19:08 -0700 One thing that slows down an insert is if you're trying to insert duplicate rows. Normally, that will cause your SQR program to abort unless you have an "on-error" clause in your begin-sql statement. Then, you can display or show $sql-error and see what's happening. You don't have an "on-error" clause in your code sample, and you're not mentioning the program aborting, so I guess that's not it. -----Original Message----- From: Manuel_Garcia@hdm.honda.com [mailto:Manuel_Garcia@hdm.honda.com] Sent: Monday, May 05, 2003 10:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] Urgent help needed !! Hi all, I'm writing a sqr program and I'm having a performance problem with this statement: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; COMMIT; END-SQL My key fields are: PS_HDM_VOUCHER_TMP: voucher_id PS_PYMNT_VCHR_XREF: business_unit, voucher_id, pymnt_count. If I run a query oustide sqr (PS Query for instance), it runs almost immediately, SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; I have similar statements along my program and there's no problem whit them, the next, for instance, it runs quick: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT A.VOUCHER_ID, B.PYMNT_CNT, A.INVOICE_ID, A.VENDOR_ID, A.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, B.RATE_MULT, A.MONETARY_AMOUNT, B.PYMNT_GROSS_AMT, B.SCHEDULED_PAY_DT, B.PYMNT_SELCT_STATUS, C.PYMNT_DT FROM PS_HDM_VOUCHER_TMP A, PS_PYMNT_VCHR_XREF B, PS_PAYMENT_TBL C WHERE A.VOUCHER_ID = B.VOUCHER_ID AND C.BANK_SETID = B.BANK_SETID AND C.BANK_CD = B.BANK_CD AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND C.PYMNT_ID = B.PYMNT_ID AND A.ACCOUNTING_DT <= $fecha AND B.PYMNT_SELCT_STATUS = 'P' AND C.ACCOUNTING_DT > $fecha ; COMMIT; END-SQL Thanks. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon May 5 18:10:02 2003 Date: Tue, 06 May 2003 09:07:52 +1000 From: "Ian Mills" Subject: Re: [sqr-users] Urgent help needed !! Juan, One possible cause could be the $fecha variable. If this is not defined with the correct type it can cause a query to run slow. Another performance problem I have encounted is when I am running reports against a Sybase database. Somehow the database query analyser when running queries in SQR doesn't choose the correct index and as a result, the queries use either no index or the wrong index. To fix this I include index query hints. If your not using Sybase then this may not be a problem. Although as a precaution, I use index query hints in all my queries no matter what database I am using. In general, I have noticed that some of my queries run much faster in a query analysis tool than they do in an SQR program. I do not know why this is I hope I have been of some assistance. Regards, Ian Mills ORIX Australia >>> Manuel_Garcia@hdm.honda.com 06/05/2003 3:36:27 am >>> Hi all, I'm writing a sqr program and I'm having a performance problem with this statement: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; COMMIT; END-SQL My key fields are: PS_HDM_VOUCHER_TMP: voucher_id PS_PYMNT_VCHR_XREF: business_unit, voucher_id, pymnt_count. If I run a query oustide sqr (PS Query for instance), it runs almost immediately, SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; I have similar statements along my program and there's no problem whit them, the next, for instance, it runs quick: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT A.VOUCHER_ID, B.PYMNT_CNT, A.INVOICE_ID, A.VENDOR_ID, A.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, B.RATE_MULT, A.MONETARY_AMOUNT, B.PYMNT_GROSS_AMT, B.SCHEDULED_PAY_DT, B.PYMNT_SELCT_STATUS, C.PYMNT_DT FROM PS_HDM_VOUCHER_TMP A, PS_PYMNT_VCHR_XREF B, PS_PAYMENT_TBL C WHERE A.VOUCHER_ID = B.VOUCHER_ID AND C.BANK_SETID = B.BANK_SETID AND C.BANK_CD = B.BANK_CD AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND C.PYMNT_ID = B.PYMNT_ID AND A.ACCOUNTING_DT <= $fecha AND B.PYMNT_SELCT_STATUS = 'P' AND C.ACCOUNTING_DT > $fecha ; COMMIT; END-SQL Thanks. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue May 6 11:36:47 2003 Date: Tue, 6 May 2003 07:16:21 -0700 (PDT) From: Yuri Lakef Subject: [sqr-users] SQR in 8.4 (evaluating OS using #ifdef) Hello to the group. When I run an SQR in PeopleSoft 8.4 Process Scheduler on Unix HP 11 with the following code, the SQR thinks it's running on NT and displays the "NT" message and terminates, even though runs on Unix! !-------------------- ! THIS DOESN'T WORK: !-------------------- #ifdef UNIX let $ps_home = getenv('PS_HOME') let $path = $ps_home || '/' #end-if #ifdef NT show '*** Run process on Unix Server ***' stop #end-if When I check reserved variable $sqr-platform instead of "#ifdef", I get the expected results and the program runs. !-------------------- ! THIS WORKS: !-------------------- if $sqr-platform = 'UNIX' let $ps_home = getenv('PS_HOME') let $path = $ps_home || '/' end-if if $sqr-platform = 'WINDOWS-NT' show '*** Run process on Unix Server ***' stop end-if Any idea why the SQR thinks it's running on NT when the "#ifdef" is evaluated? Thank you for any help. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon May 5 18:37:06 2003 From: James Clarke Subject: RE: [sqr-users] Urgent help needed !! Date: Tue, 6 May 2003 09:37:23 +1000 Juan, If it is also possible I would avoid the use of <> in where clauses. Sometimes it is more efficient to create a subquery stating "where exists (Select 0 from {table} where {Field}={Criteria})". This is Oracle syntax however I'm sure Sybase would have a close equivalent. Cheers James Clarke Hansen Technologies Australia -----Original Message----- From: Ian Mills [mailto:Ian.Mills@orix.com.au] Sent: Tuesday, 6 May 2003 9:08 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Urgent help needed !! Juan, One possible cause could be the $fecha variable. If this is not defined with the correct type it can cause a query to run slow. Another performance problem I have encounted is when I am running reports against a Sybase database. Somehow the database query analyser when running queries in SQR doesn't choose the correct index and as a result, the queries use either no index or the wrong index. To fix this I include index query hints. If your not using Sybase then this may not be a problem. Although as a precaution, I use index query hints in all my queries no matter what database I am using. In general, I have noticed that some of my queries run much faster in a query analysis tool than they do in an SQR program. I do not know why this is I hope I have been of some assistance. Regards, Ian Mills ORIX Australia >>> Manuel_Garcia@hdm.honda.com 06/05/2003 3:36:27 am >>> Hi all, I'm writing a sqr program and I'm having a performance problem with this statement: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; COMMIT; END-SQL My key fields are: PS_HDM_VOUCHER_TMP: voucher_id PS_PYMNT_VCHR_XREF: business_unit, voucher_id, pymnt_count. If I run a query oustide sqr (PS Query for instance), it runs almost immediately, SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; I have similar statements along my program and there's no problem whit them, the next, for instance, it runs quick: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT A.VOUCHER_ID, B.PYMNT_CNT, A.INVOICE_ID, A.VENDOR_ID, A.INVOICE_DT, A.ACCOUNTING_DT, A.FOREIGN_AMOUNT, A.FOREIGN_CURRENCY, B.RATE_MULT, A.MONETARY_AMOUNT, B.PYMNT_GROSS_AMT, B.SCHEDULED_PAY_DT, B.PYMNT_SELCT_STATUS, C.PYMNT_DT FROM PS_HDM_VOUCHER_TMP A, PS_PYMNT_VCHR_XREF B, PS_PAYMENT_TBL C WHERE A.VOUCHER_ID = B.VOUCHER_ID AND C.BANK_SETID = B.BANK_SETID AND C.BANK_CD = B.BANK_CD AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND C.PYMNT_ID = B.PYMNT_ID AND A.ACCOUNTING_DT <= $fecha AND B.PYMNT_SELCT_STATUS = 'P' AND C.ACCOUNTING_DT > $fecha ; COMMIT; END-SQL Thanks. Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ***************************************************************************** Notice: This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of Hansen Technologies Limited or third parties. Copying, distributing, disclosing, commercialising or otherwise acting in reliance on this e-mail and any attachments is strictly prohibited unless you are the addressee of this e-mail and have written permission to do so. If you have received this e-mail in error please delete this e-mail (including any copies and attachments) and contact Hansen Technologies Limited by return e-mail or by telephone on + 61 3 9840 3000. Any views expressed in this e-mail are those of the individual sender and may not necessarily reflect the views of or be a commitment by the organisation, except where the individual sender has the authority and expressly states them to be so. ***************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 11:35:49 2003 From: "Edwin Hommes" Subject: Re: [sqr-users] Urgent help needed !! Date: Tue, 6 May 2003 15:48:32 +0200 Manuel, I think you should check the amount of data in the target table as well. When there is a lot of data in there it could be the initial space planned for the table is full and the database needs to write it elsewhere. As long as you're nagging you're DBA's anyway, you may also want them to check the fragmentation of your database as well as the status of your database statistics. Also check the amount of indices on the table. The more there are, the more need to be updated when inserting a row. You may want to consider dropping your indices just before the inserts and rebuild them after you are done. For the SQL, you may want to get rid of the OR statement, though that should not make a huge difference in performance. Regards, Edwin ----- Original Message ----- From: To: Sent: Monday, May 05, 2003 7:36 PM Subject: [sqr-users] Urgent help needed !! > Hi all, > > > I'm writing a sqr program and I'm having a performance problem with this > statement: > > > BEGIN-SQL > INSERT into ps_hdm_saldos_tmp using > SELECT > D.VOUCHER_ID, > E.PYMNT_CNT, > D.INVOICE_ID, > D.VENDOR_ID, > D.INVOICE_DT, > D.ACCOUNTING_DT, > D.FOREIGN_AMOUNT, > D.FOREIGN_CURRENCY, > E.RATE_MULT, > D.MONETARY_AMOUNT, > E.PYMNT_GROSS_AMT, > E.SCHEDULED_PAY_DT, > E.PYMNT_SELCT_STATUS, > E.DSCNT_DUE_DT > FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E > WHERE D.VOUCHER_ID = E.VOUCHER_ID > AND E.PYMNT_SELCT_STATUS <> 'P' > AND E.PYMNT_SELCT_STATUS <> 'X' > AND D.ACCOUNTING_DT <= $fecha > AND ( D.CLOSE_STATUS <> 'C' > OR ( D.CLOSE_STATUS = 'C' > AND D.MANUAL_CLOSE_DT > $fecha)) > ; > COMMIT; > END-SQL > > My key fields are: > > PS_HDM_VOUCHER_TMP: > voucher_id > > PS_PYMNT_VCHR_XREF: > business_unit, > voucher_id, > pymnt_count. > > > If I run a query oustide sqr (PS Query for instance), it runs almost > immediately, > SELECT > D.VOUCHER_ID, > E.PYMNT_CNT, > D.INVOICE_ID, > D.VENDOR_ID, > D.INVOICE_DT, > D.ACCOUNTING_DT, > D.FOREIGN_AMOUNT, > D.FOREIGN_CURRENCY, > E.RATE_MULT, > D.MONETARY_AMOUNT, > E.PYMNT_GROSS_AMT, > E.SCHEDULED_PAY_DT, > E.PYMNT_SELCT_STATUS, > E.DSCNT_DUE_DT > FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E > WHERE D.VOUCHER_ID = E.VOUCHER_ID > AND E.PYMNT_SELCT_STATUS <> 'P' > AND E.PYMNT_SELCT_STATUS <> 'X' > AND D.ACCOUNTING_DT <= $fecha > AND ( D.CLOSE_STATUS <> 'C' > OR ( D.CLOSE_STATUS = 'C' > AND D.MANUAL_CLOSE_DT > $fecha)) > ; > > > I have similar statements along my program and there's no problem whit > them, the next, for instance, it runs quick: > > BEGIN-SQL > > INSERT into ps_hdm_saldos_tmp using > SELECT > A.VOUCHER_ID, > B.PYMNT_CNT, > A.INVOICE_ID, > A.VENDOR_ID, > A.INVOICE_DT, > A.ACCOUNTING_DT, > A.FOREIGN_AMOUNT, > A.FOREIGN_CURRENCY, > B.RATE_MULT, > A.MONETARY_AMOUNT, > B.PYMNT_GROSS_AMT, > B.SCHEDULED_PAY_DT, > B.PYMNT_SELCT_STATUS, > C.PYMNT_DT > FROM PS_HDM_VOUCHER_TMP A, PS_PYMNT_VCHR_XREF B, PS_PAYMENT_TBL C > WHERE A.VOUCHER_ID = B.VOUCHER_ID > AND C.BANK_SETID = B.BANK_SETID > AND C.BANK_CD = B.BANK_CD > AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY > AND C.PYMNT_ID = B.PYMNT_ID > AND A.ACCOUNTING_DT <= $fecha > AND B.PYMNT_SELCT_STATUS = 'P' > AND C.ACCOUNTING_DT > $fecha > ; > COMMIT; > END-SQL > > > > > Thanks. > > > > > > > > Juan Manuel García > Tecnología de Información > Honda de Mexico S.A. de C.V. > Tel: (01 33) 328 40135 > > > > > > > > > > > > > > > > > > > > > > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.476 / Virus Database: 273 - Release Date: 24/04/2003 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 10:11:24 2003 From: Manuel_Garcia@hdm.honda.com Date: Tue, 6 May 2003 08:46:33 -0500 Subject: [sqr-users] RE: Urgent help needed !! Hi people, I solved my problem by restructuring my insert-select statement. I converted this: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND ( D.CLOSE_STATUS <> 'C' OR ( D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha)) ; COMMIT; END-SQL Into this: BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND D.CLOSE_STATUS <> 'C' ; COMMIT; END-SQL BEGIN-SQL INSERT into ps_hdm_saldos_tmp using SELECT D.VOUCHER_ID, E.PYMNT_CNT, D.INVOICE_ID, D.VENDOR_ID, D.INVOICE_DT, D.ACCOUNTING_DT, D.FOREIGN_AMOUNT, D.FOREIGN_CURRENCY, E.RATE_MULT, D.MONETARY_AMOUNT, E.PYMNT_GROSS_AMT, E.SCHEDULED_PAY_DT, E.PYMNT_SELCT_STATUS, E.DSCNT_DUE_DT FROM PS_HDM_VOUCHER_TMP D, PS_PYMNT_VCHR_XREF E WHERE D.VOUCHER_ID = E.VOUCHER_ID AND E.PYMNT_SELCT_STATUS <> 'P' AND E.PYMNT_SELCT_STATUS <> 'X' AND D.ACCOUNTING_DT <= $fecha AND D.CLOSE_STATUS = 'C' AND D.MANUAL_CLOSE_DT > $fecha ; COMMIT; END-SQL I'm inserting data in two steps instead of including an OR condition in the criteria section, and it gave good results, now my program runs fast. I'm still wondering about the problem with the OR condition but, for now, my immediate problem is solved. Thanks a lot to all !! Juan Manuel García Tecnología de Información Honda de Mexico S.A. de C.V. Tel: (01 33) 328 40135 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 11:36:33 2003 Date: Tue, 6 May 2003 07:02:11 -0700 (PDT) From: Russell Phillips Subject: [sqr-users] IP printing with SQR's on PeopleTools 7.6 We are upgrading our Novell network and have not been able to print through SQR's (V4.3.4) to the IP printers. PeopleSoft stated they do not support this functionality in Tools 7.x. Has anyone came up with a good workaround/solution for this problem. Thanks Russ --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 11:45:07 2003 Date: Tue, 06 May 2003 12:44:04 -0400 From: "George Jansen" Subject: Re: [sqr-users] IP printing with SQR's on PeopleTools 7.6 As I recall we had to capture ports such as LPT1, LPT2, etc. to the network printers, and when we upgraded the Netware client we had to capture through "Novell Capture Printer Port", where we clicked on the orange N down in the toolbar. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 11:37:00 2003 From: Rhonda Hudgins Date: Tue, 6 May 2003 11:48:14 -0400 Subject: [sqr-users] printer command Is there a way to tell what the -PRINTER:XX on the sqr command line from within an sqr? Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- 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-admin@sqrug.org Tue May 6 14:50:28 2003 From: luc.vallee@vtl.ca Date: Tue, 6 May 2003 15:48:21 -0400 Subject: [sqr-users] =?iso-8859-1?Q?R=E9f=2E_=3A_RE=3A_[sqr-users]_Problem_with_PRINT-IMAGE?= function Thank you for your responses, I tried either with GIF or JPG and also tried to increase the image size but still the box with an X. - Could it be something with the type of GIF or JPEG I use (black & white VS color) ? - Do I have to specify a certain type of printer using the "DECLARE-PRINTER" statement ? - ??? thanks again "Hood Louise (app1lxh)" @sqrug.org le 2003-05-02 16:53:12 Veuillez répondre à sqr-users@sqrug.org Envoyé par : sqr-users-admin@sqrug.org Pour : "'sqr-users@sqrug.org'" cc : Objet : RE: [sqr-users] Problem with PRINT-IMAGE function Dave, To generate PDF files, you CAN also use gif files. We use them all the time on our reports. HTH, Louise -----Original Message----- From: Benzenhafer, Dave [mailto:DBenzenhafer@houston.deepwater.com] Sent: Friday, May 02, 2003 4:42 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Problem with PRINT-IMAGE function PDF files will only recognize JPEG files. You need to declare the image in the setup section like DECLARE-IMAGE TO_logo type=jpeg-file image-size=(22,2) source='to.jpg' END-DECLARE And then in a procedure Print-Image TO_logo (1,126) Good luck Dave Benzenhafer dbenzenhafer@houston.deepwater.com -----Original Message----- From: luc.vallee@vtl.ca [mailto:luc.vallee@vtl.ca] Sent: Friday, May 02, 2003 3:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 15:03:08 2003 From: Rhonda Hudgins Date: Tue, 6 May 2003 16:00:37 -0400 Subject: [sqr-users] Re: [sqr-users] =?ISO-8859-1?Q?R=E9f=2E_=3A_RE=3A_[sqr-users]_Problem_with_PRINT-IMAGE?= =?ISO-8859-1?Q?_function?= We have had to include the entire path name for the file --- source='c:\ps8\sqr\to.jpg' Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc 585/256-5266 rhudgins@genencor.com luc.vallee@vtl.c a To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@ Subject: [sqr-users] Réf. : RE: [sqr-users] Problem with PRINT-IMAGE function sqrug.org 05/06/2003 03:48 PM Please respond to sqr-users Thank you for your responses, I tried either with GIF or JPG and also tried to increase the image size but still the box with an X. - Could it be something with the type of GIF or JPEG I use (black & white VS color) ? - Do I have to specify a certain type of printer using the "DECLARE-PRINTER" statement ? - ??? thanks again "Hood Louise (app1lxh)" @sqrug.org le 2003-05-02 16:53:12 Veuillez répondre à sqr-users@sqrug.org Envoyé par : sqr-users-admin@sqrug.org Pour : "'sqr-users@sqrug.org'" cc : Objet : RE: [sqr-users] Problem with PRINT-IMAGE function Dave, To generate PDF files, you CAN also use gif files. We use them all the time on our reports. HTH, Louise -----Original Message----- From: Benzenhafer, Dave [mailto:DBenzenhafer@houston.deepwater.com] Sent: Friday, May 02, 2003 4:42 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Problem with PRINT-IMAGE function PDF files will only recognize JPEG files. You need to declare the image in the setup section like DECLARE-IMAGE TO_logo type=jpeg-file image-size=(22,2) source='to.jpg' END-DECLARE And then in a procedure Print-Image TO_logo (1,126) Good luck Dave Benzenhafer dbenzenhafer@houston.deepwater.com -----Original Message----- From: luc.vallee@vtl.ca [mailto:luc.vallee@vtl.ca] Sent: Friday, May 02, 2003 3:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with PRINT-IMAGE function Hi, I think I'm not first to have this kind of problem with SQR. I'm trying to put an image on my PDF report (-PRINTER:PD) and I always get a box with diagonals in it instead of the image. I use those lines of codes: print-image (81,35) type = gif-file image-size = (30,20) source = 'logo4.gif' and tried different options like: - Use different types of image (jpeg and bmp) - Specifying the full path of the file ex: ( source = '/export/home/valleel/test_sqr/logo4.gif' ) - Use a "declare-image" statement then use the declared image name with "print-image" But always get the box with diagonals instead of the image in the PDF. I'm using SQR v5.1on Sun-Unix and created the gif, bmp and jpg files using Paint Shop Pro for windows. Any help or hints would be 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 _______________________________________________ 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-admin@sqrug.org Tue May 6 17:45:16 2003 Date: Tue, 06 May 2003 16:38:13 -0400 From: "Tajinder Chahal" Subject: [sqr-users] ftp sqr output from NT to Unix I would like to ftp a flat file which is being generated by running an sqr on NT to Unix. How can I do that within the same sqr. Also I need to delete the file from NT once it gets ftp'd successfully. TIA Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed May 7 07:52:15 2003 From: "Bambach, Tom" Subject: RE: [sqr-users] ftp sqr output from NT to Unix Date: Wed, 7 May 2003 08:50:32 -0400 Tajinder, 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: Tajinder Chahal [SMTP:Tchaha@Roushind.com] > Sent: Tuesday, May 06, 2003 4:38 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] ftp sqr output from NT to Unix > > I would like to ftp a flat file which is being generated by running an > sqr on NT to Unix. How can I do that within the same sqr. > Also I need to delete the file from NT once it gets ftp'd > successfully. > > TIA > > Tajinder > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 15:48:29 2003 Date: Tue, 6 May 2003 13:41:36 -0700 (PDT) From: sqr user Subject: [sqr-users] I need a dev license price for Personnal SQR Hello Sqr users, Can Any body tell me how much does it cost to buy personal sqr edition version 6.3+, capable of handling international language. I tried calling Brio but in vain. Thanks __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed May 7 08:10:06 2003 From: "Steve Cavill" Subject: RE: [sqr-users] I need a dev license price for Personnal SQR Date: Wed, 7 May 2003 23:09:08 +1000 Personal SQR is not available for individual sale. It is packaged with Report Builder, which can be licensed as an add on to SQR Server. IN other words you can only get Personal SQR if you already have SQR Server. Report Builder costs about US$1000. The latest release is 6.2. Steve -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of sqr user Sent: Wednesday, 7 May 2003 6:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] I need a dev license price for Personnal SQR Hello Sqr users, Can Any body tell me how much does it cost to buy personal sqr edition version 6.3+, capable of handling international language. I tried calling Brio but in vain. Thanks __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.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-admin@sqrug.org Wed May 7 09:02:12 2003 Date: Wed, 7 May 2003 07:01:23 -0700 (PDT) From: sqr user Subject: RE: [sqr-users] I need a dev license price for Personnal SQR Thanks Steve for the info, I appreciate your input. --- Steve Cavill wrote: > Personal SQR is not available for individual sale. > It is packaged with > Report Builder, which can be licensed as an add on > to SQR Server. IN other > words you can only get Personal SQR if you already > have SQR Server. Report > Builder costs about US$1000. The latest release is > 6.2. > Steve > > -----Original Message----- > From: sqr-users-admin@sqrug.org > [mailto:sqr-users-admin@sqrug.org]On > Behalf Of sqr user > Sent: Wednesday, 7 May 2003 6:42 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] I need a dev license price for > Personnal SQR > > > Hello Sqr users, > > Can Any body tell me how much does > it cost to buy personal sqr edition version 6.3+, > capable of handling international language. > > I tried calling Brio but in vain. > > Thanks > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.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 __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 16:34:45 2003 Date: Tue, 6 May 2003 23:33:47 +0200 (CEST) From: =?iso-8859-1?q?Charles-Albert=20Lebrun?= Subject: [sqr-users] Pb to get oracle func. value after some loops Hello all, I'm new to the list so I don't know if this has been mentioned before. I try to search, but did not get proper result. I have a Brio SQR program that prepare some data in a seperate table (ment for later export). This process has a loop that scan data and update a temporary table that will be read bu another software. During this process I'm calling some Oracle 8i (8.1.5) stored procedures to compute some stuff and store it. After a number of loops/records in the main cursor, one of the Oracle proc/func. call I issue does not return the proper values. At the beginning it was a procedure with two return param : the value I need + a status flag. After some loops the OUT param. of the stored procedure were not updated anymore. I changed it to a function, and it gave the same bad result. If I try to call the proc. or func. with the same parameters from Oracle tools (such as SQLPLUS), it works well ! The original stored procedure is an old one used for years on several sites, so I am pretty confident that it is not the culprit... But... When I replace the content of the proc. and makes it return a constant value, it works (i.e. that value is correctly returned to Brio). If anyone has an advice for that case, I will be thankful. Have a nice day, Charly ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue May 6 16:37:05 2003 Date: Tue, 6 May 2003 23:36:19 +0200 (CEST) From: =?iso-8859-1?q?Charles-Albert=20Lebrun?= Subject: [sqr-users] Pb to get oracle func. value after some loops Sorry ! I forgot to mention that I'm using Brio v6.1.3 and 6.2.1. Both give same result. ------------------------------------- Hello all, I'm new to the list so I don't know if this has been mentioned before. I try to search, but did not get proper result. I have a Brio SQR program that prepare some data in a seperate table (ment for later export). This process has a loop that scan data and update a temporary table that will be read bu another software. During this process I'm calling some Oracle 8i (8.1.5) stored procedures to compute some stuff and store it. After a number of loops/records in the main cursor, one of the Oracle proc/func. call I issue does not return the proper values. At the beginning it was a procedure with two return param : the value I need + a status flag. After some loops the OUT param. of the stored procedure were not updated anymore. I changed it to a function, and it gave the same bad result. If I try to call the proc. or func. with the same parameters from Oracle tools (such as SQLPLUS), it works well ! The original stored procedure is an old one used for years on several sites, so I am pretty confident that it is not the culprit... But... When I replace the content of the proc. and makes it return a constant value, it works (i.e. that value is correctly returned to Brio). If anyone has an advice for that case, I will be thankful. Have a nice day, Charly ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed May 7 08:08:07 2003 Date: Wed, 07 May 2003 08:46:37 -0400 From: "George Jansen" Subject: Re: [sqr-users] Pb to get oracle func. value after some loops Might I suggest that rather than testing with SQL*Plus you use the utPLSQL packages, freely available from SourceForge, to test your function? If the error shows up only after some number of loops, you probably want to automate your tests. Even if there is a Brio bug and your functions are blameless, getting to know utPLSQL is worth the trouble: http://oracle.oreilly.com/utplsql/ >>> calebrun@yahoo.com 05/06/03 05:36PM >>> Sorry ! I forgot to mention that I'm using Brio v6.1.3 and 6.2.1. Both give same result. ------------------------------------- Hello all, I'm new to the list so I don't know if this has been mentioned before. I try to search, but did not get proper result. I have a Brio SQR program that prepare some data in a seperate table (ment for later export). This process has a loop that scan data and update a temporary table that will be read bu another software. During this process I'm calling some Oracle 8i (8.1.5) stored procedures to compute some stuff and store it. After a number of loops/records in the main cursor, one of the Oracle proc/func. call I issue does not return the proper values. At the beginning it was a procedure with two return param : the value I need + a status flag. After some loops the OUT param. of the stored procedure were not updated anymore. I changed it to a function, and it gave the same bad result. If I try to call the proc. or func. with the same parameters from Oracle tools (such as SQLPLUS), it works well ! The original stored procedure is an old one used for years on several sites, so I am pretty confident that it is not the culprit... But... When I replace the content of the proc. and makes it return a constant value, it works (i.e. that value is correctly returned to Brio). If anyone has an advice for that case, I will be thankful. Have a nice day, Charly ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.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-admin@sqrug.org Wed May 7 10:03:29 2003 From: "Bryson, Steven" Date: Wed, 7 May 2003 11:03:13 -0400 Subject: [sqr-users] Excel output importing incorrectly When using Excel output certain numbers are converted to dates within Excel meaning a number that is 12-01 will display as Dec-01. I am aware the text is fine and this is an Excel problem in which it converts it to a date when it should be a text field. Is there any way to code a workaround without a user having to import the file and format? "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-admin@sqrug.org Wed May 7 10:17:06 2003 From: skirklin@stl-inc.com Subject: RE: [sqr-users] Excel output importing incorrectly Date: Wed, 7 May 2003 09:15:38 -0600 Did you try exporting your text with quotes around it so that your separator is a ","? Sherri -----Original Message----- From: Bryson, Steven [mailto:Steve.Bryson@phh.com] Sent: Wednesday, May 07, 2003 10:03 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Excel output importing incorrectly When using Excel output certain numbers are converted to dates within Excel meaning a number that is 12-01 will display as Dec-01. I am aware the text is fine and this is an Excel problem in which it converts it to a date when it should be a text field. Is there any way to code a workaround without a user having to import the file and format? "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 Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 notify the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed May 7 11:26:22 2003 Date: Wed, 07 May 2003 12:24:11 -0400 From: don.barclay@srs.gov Subject: Re: [sqr-users] Excel output importing incorrectly Steven, We've found that if we add an equals sign and a double quote before the variable and a double quote after the variable, excel will not try to auto-format the field. I got this trick from this list some time ago. let $variable = '12-01' let $excel_variable = '="' | $variable | '"' write 10 from $excel_variable:10 Don Barclay Westinghouse Savannah River Co. Aiken, SC "Bryson, Steven" Sent by: sqr-users-admin@sqrug.org 05/07/2003 11:03 AM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] Excel output importing incorrectly When using Excel output certain numbers are converted to dates within Excel meaning a number that is 12-01 will display as Dec-01. I am aware the text is fine and this is an Excel problem in which it converts it to a date when it should be a text field. Is there any way to code a workaround without a user having to import the file and format? "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-admin@sqrug.org Wed May 7 12:08:11 2003 From: "Bryson, Steven" Subject: RE: [sqr-users] Excel output importing incorrectly Date: Wed, 7 May 2003 13:08:02 -0400 Exactly what I needed....Thank you!!! -----Original Message----- From: don.barclay@srs.gov [mailto:don.barclay@srs.gov] Sent: Wednesday, May 07, 2003 12:24 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Excel output importing incorrectly Steven, We've found that if we add an equals sign and a double quote before the variable and a double quote after the variable, excel will not try to auto-format the field. I got this trick from this list some time ago. let $variable = '12-01' let $excel_variable = '="' | $variable | '"' write 10 from $excel_variable:10 Don Barclay Westinghouse Savannah River Co. Aiken, SC "Bryson, Steven" Sent by: sqr-users-admin@sqrug.org 05/07/2003 11:03 AM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] Excel output importing incorrectly When using Excel output certain numbers are converted to dates within Excel meaning a number that is 12-01 will display as Dec-01. I am aware the text is fine and this is an Excel problem in which it converts it to a date when it should be a text field. Is there any way to code a workaround without a user having to import the file and format? "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 "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-admin@sqrug.org Wed May 7 11:35:28 2003 Date: Wed, 07 May 2003 12:34:45 -0400 From: Amy Emge Subject: [sqr-users] line chart in SQR with dates SQR 6.1.3. No new graphics. I'm doing a line chart and my x-axis (horizontal) values are dates. I have two problems. One, I want the dates to appear on the x-axis of the chart as '1/02' instead of '01-JAN-2002' to save space. Right now, oddly enough, they're printing as 2, 4, 6 8, 10, 12, 14, 16 (I have a 16 month span of dates in the array). Two, I only want January, May and September to print. The x-axis-major-increment only accepts numbers and if I put in a value of 4, I get 4, 8, 12 and 16 on the x axis, the values for April, August, December and January. The array is defined like this: create-array name = chart size = 100 field=date:date field=goal:number field=giving:number I've also tried declaring the date field as char since the SQR book implies the first field in the array is the x axis and must be char. This helps solve my first problem (they'll print as '1/02'), but not my second. The x-axis-major-increment works, but I can't get the x axis to start at January then go to May then to September - it wants to start at May. The x-axis-min-value only accepts numbers too (which is odd considering the x axis must be a char) and I've tried a variety of values in this parameter to try to get the x axis to start at January then increment to May then to September. No luck yet. I've been playing around with charts a bit in the past month, but never one that had dates. Any help you can give would be appreciated. Amy Emge Applications Analyst Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri May 9 23:03:06 2003 From: Ray Ontko Date: Fri, 9 May 2003 23:02:27 -0500 Subject: Re: [sqr-users] line chart in SQR with dates Hi Amy, Are you placing the January data in element 1 or element 0 of the array. I think that if you put it in element 0, then you should see it print 0, 4, 8, 12, instead of 4, 8, 12, 16. Hope this helps. Ray On Wed, May 07, 2003 at 12:34:45PM -0400, Amy Emge wrote: > SQR 6.1.3. No new graphics. > > I'm doing a line chart and my x-axis (horizontal) values are dates. I have > two problems. > > One, I want the dates to appear on the x-axis of the chart as '1/02' > instead of '01-JAN-2002' to save space. Right now, oddly enough, they're > printing as 2, 4, 6 8, 10, 12, 14, 16 (I have a 16 month span of dates in > the array). > > Two, I only want January, May and September to print. The > x-axis-major-increment only accepts numbers and if I put in a value of 4, I > get 4, 8, 12 and 16 on the x axis, the values for April, August, December > and January. > > The array is defined like this: > > create-array > name = chart > size = 100 > field=date:date > field=goal:number > field=giving:number > > I've also tried declaring the date field as char since the SQR book implies > the first field in the array is the x axis and must be char. This helps > solve my first problem (they'll print as '1/02'), but not my second. The > x-axis-major-increment works, but I can't get the x axis to start at > January then go to May then to September - it wants to start at May. The > x-axis-min-value only accepts numbers too (which is odd considering the x > axis must be a char) and I've tried a variety of values in this parameter > to try to get the x axis to start at January then increment to May then to > September. No luck yet. > > I've been playing around with charts a bit in the past month, but never one > that had dates. Any help you can give would be appreciated. > > Amy Emge > Applications Analyst > Miami 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-admin@sqrug.org Wed May 7 13:48:16 2003 From: "Oracle HRMS" Date: Wed, 07 May 2003 18:47:14 +0000 Subject: [sqr-users] Problem Printing Compressed Portrait Hi All, I am attempting to print my report on 8/5 X 11 paper, in a Portrait orientation, but with a compressed pitch so that all of the output will fit the width of the page. However, no matter what combinations of delcare-report/declare-printer/alter-printer I use I still end us with a "normal" courier font printing beyond the width of the page. Below is my latest attempt: begin-setup declare-printer printer1 type = hplaserjet Font = {FONT_COURIER} point-size = 8.0 end-declare declare-report bcbs_rpt layout = layout1 ! printer-type = hplaserjet end-declare declare-Layout layout1 Orientation = Portrait Paper-Size = (Letter) line-height =9 char-width = 5.0 end-declare ! declare-Layout layout1 ! paper-size = (8.5,11) ! Max-Columns = {REPORT_WIDTH} ! Max-Lines = {REPORT_LENGTH} ! left-margin = .5 ! char-width = 4.8 ! line-height = 10 ! end-declare end-setup I attempt to alter the pitch to compressed with the following: begin-program alter-printer point-size=8 font=3 pitch=16.67 ! alter-printer pitch=16.67 do getargs do mask do print_header do main end-program I am printing to an HP Laserjet 5s1 - any ideas ? Thanks in advance to all who reply ! Jeff _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu May 8 06:02:16 2003 Date: Thu, 08 May 2003 08:01:09 -0300 From: "Peter Clark" Subject: Re: [sqr-users] Problem Printing Compressed Portrait You may need Use-Report and/or Use-Printer-Type statements (there is no evidence that you are but maybe you just forgot to indicate it in your example) since none of your declares are for the "default-hp" printer >>> oracle_payroll@hotmail.com 2003/05/07 3:47:14 pm >>> Hi All, I am attempting to print my report on 8/5 X 11 paper, in a Portrait orientation, but with a compressed pitch so that all of the output will fit the width of the page. However, no matter what combinations of delcare-report/declare-printer/alter-printer I use I still end us with a "normal" courier font printing beyond the width of the page. Below is my latest attempt: begin-setup declare-printer printer1 type = hplaserjet Font = {FONT_COURIER} point-size = 8.0 end-declare declare-report bcbs_rpt layout = layout1 ! printer-type = hplaserjet end-declare declare-Layout layout1 Orientation = Portrait Paper-Size = (Letter) line-height =9 char-width = 5.0 end-declare ! declare-Layout layout1 ! paper-size = (8.5,11) ! Max-Columns = {REPORT_WIDTH} ! Max-Lines = {REPORT_LENGTH} ! left-margin = .5 ! char-width = 4.8 ! line-height = 10 ! end-declare end-setup I attempt to alter the pitch to compressed with the following: begin-program alter-printer point-size=8 font=3 pitch=16.67 ! alter-printer pitch=16.67 do getargs do mask do print_header do main end-program I am printing to an HP Laserjet 5s1 - any ideas ? Thanks in advance to all who reply ! Jeff _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu May 8 06:14:14 2003 Date: Thu, 08 May 2003 08:12:54 -0300 From: "Peter Clark" Subject: Re: [sqr-users] Problem Printing Compressed Portrait oops, that should read: your declare-printer isn't for the "default-hp" printer attribute >>> PGCLARK@vac-acc.gc.ca 2003/05/08 8:01:09 am >>> You may need Use-Report and/or Use-Printer-Type statements (there is no evidence that you are but maybe you just forgot to indicate it in your example) since none of your declares are for the "default-hp" printer >>> oracle_payroll@hotmail.com 2003/05/07 3:47:14 pm >>> Hi All, I am attempting to print my report on 8/5 X 11 paper, in a Portrait orientation, but with a compressed pitch so that all of the output will fit the width of the page. However, no matter what combinations of delcare-report/declare-printer/alter-printer I use I still end us with a "normal" courier font printing beyond the width of the page. Below is my latest attempt: begin-setup declare-printer printer1 type = hplaserjet Font = {FONT_COURIER} point-size = 8.0 end-declare declare-report bcbs_rpt layout = layout1 ! printer-type = hplaserjet end-declare declare-Layout layout1 Orientation = Portrait Paper-Size = (Letter) line-height =9 char-width = 5.0 end-declare ! declare-Layout layout1 ! paper-size = (8.5,11) ! Max-Columns = {REPORT_WIDTH} ! Max-Lines = {REPORT_LENGTH} ! left-margin = .5 ! char-width = 4.8 ! line-height = 10 ! end-declare end-setup I attempt to alter the pitch to compressed with the following: begin-program alter-printer point-size=8 font=3 pitch=16.67 ! alter-printer pitch=16.67 do getargs do mask do print_header do main end-program I am printing to an HP Laserjet 5s1 - any ideas ? Thanks in advance to all who reply ! Jeff _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed May 7 15:54:16 2003 From: "Ashish Bhatt" Date: Wed, 07 May 2003 20:52:17 +0000 Subject: [sqr-users] insert into LONG field Hi SQR Gurus, I hope you doing fine today. Has anyone done reading multiple paragraph data from a text file and inserting it into a LONG field in Peoplesoft table ? If yes, please reply. TIA. Have a nice day and great week. Regards. Ashish Bhatt. _________________________________________________________________ Send a fun phone greeting to your friend! http: