From owner-sqr-users@USA.NET Thu Jan 2 12:49:00 1997 Date: Thu, 2 Jan 1997 12:37:34 -0500 From: Allen Wong Subject: Creating a box I would like to create a square box, and I am using the following code to acheive this : PRINT ' ' (,59) BOX PRINT ' ' (,61) BOX PRINT ' ' (,63) BOX PRINT '.' (,66) BOLD PRINT ' ' (,67) BOX PRINT ' ' (,69) BOX As one can tell this is probably not the best method, if someone can show me the light, much will be appreciated. Thanks, Allen From owner-sqr-users@USA.NET Mon Jan 6 18:08:53 1997 Date: Mon, 6 Jan 1997 11:11:31 EST From: David Colangelo Subject: 1099-FORM Has anyone developed an SQR program that prints the layout for the IRS 1099 series of forms? I'd like to avoid reinventing the wheel if someone has already done it. Thanks in advance. Thank you, David Colangelo david_colangelo@mail.amsinc.com From owner-sqr-users@USA.NET Mon Jan 6 19:29:57 1997 Date: Mon, 6 Jan 1997 18:19:46 -0500 From: Ray Ontko Subject: Re: 1099-FORM > Has anyone developed an SQR program that prints the layout for the IRS > 1099 series of forms? I'd like to avoid reinventing the wheel if > someone has already done it. Thanks in advance. > > Thank you, > > David Colangelo David, I don't know if this will work, but you can get the official version of the forms from the IRS website (www.irs.ustreas.gov) as postscript files and use these as background for your printing. If you're not using postscript printers, you may have to fuss around. Hope this helps. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about Forte Software" rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Jan 8 03:48:52 1997 Date: Tue, 7 Jan 1997 08:35:56 -0600 From: Melissa Santamaria Subject: Re: 1099-FORM Yes, we sure have. We have SQR code used with Oracle that we have been using for about 3 years to create both printed 1099s and the IRS file format. I don't know if it has yet been reviewed/updated for any potential changes for tax year 1996. If you would like an email copy of the critical parts of that SQR program, reply to: melissa@medianet.com. Good luck! Melissa On Mon, 6 Jan 1997, David Colangelo wrote: > Has anyone developed an SQR program that prints the layout for the IRS > 1099 series of forms? I'd like to avoid reinventing the wheel if > someone has already done it. Thanks in advance. > > Thank you, > > David Colangelo > david_colangelo@mail.amsinc.com > From owner-sqr-users@USA.NET Wed Jan 8 04:25:42 1997 Date: Tue, 7 Jan 1997 12:00:16 -0500 From: Ray Ontko Subject: Win 95 Has anyone had any success running 32-bit SQR (3 or 4) under Win 95? I'm trying to connect to a Sybase 10 or 11 server using a copy of SQR for Windows NT/Sybase 4.0 and get a general protection violation on exit (SQR seems to run my program, but I get this error...) Ray ---------------------------------------------------------------------- rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Jan 8 08:06:01 1997 Date: Wed, 8 Jan 1997 07:53:34 -0500 From: Shivakumar Rajagopal Subject: next-listing problem... I used next-listing after printing every detail line of a report in order to get one blank line between detail lines. Towards the end of the report, a line that was being printed within begin-heading...end-heading, was getting printed partially in the detail line i.e the detail line was garbled....When I used next-listing skiplines=0, the same problem occurred...next-listing skiplines=1 ran successfully but there were 2 blank lines between detail lines...is it a known bug or what ? Is there any list of known SQR bugs around ?....Would appreciate your help.......shiv From owner-sqr-users@USA.NET Wed Jan 8 13:57:32 1997 Date: Wed, 8 Jan 1997 12:00:28 -0500 From: "Eric A. Eastman" Subject: Fetch out of sequence error. Hello all, I have a problem where an extremely simple select causes a "fetch out of sequence" error. I think that it is caused by the cursor unexpectedly closing in the middle of the select. This always occurs after a specific record is read ( sys_fkey = 16852 ) regaurdless of what "order by" is used. Even though I have trapped the error with on error the select stops after this record. ( fyi_char30 is NULL for that record). The select works fine in sqlplus. Does anyone have any thoughts? Thanks, Eric here is the code: begin-program do main end-program begin-procedure main show 'start' begin-select on-error=error fyi_char30 &char30 sys_fkey show &sys_fkey ' - ' &char30 from fyi_asset_fold@bfnfyi.world where sys_fkey > 16850 and sys_fkey < 16860 end-select show 'done' end-procedure begin-procedure error show 'begin-error' show #sql-status show $sql-error show 'Char30 = ' &char30 show 'Fkey = ' &sys_fkey show 'end-error' end-procedure and here are the results: SQR: Structured Query Report Writer V3.0.12.1 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. start 16851 - BFN-3-XIS -099-0002 16852 - begin-error -1002.000000 ORA-01002: fetch out of sequence Char30 = Fkey = 16852 end-error done SQR: End of Run. $ sqr -id SQR/3.0.12.1/Sun/Solaris 2.4/Oracle 7.0.16/Dec 01 1995 From owner-sqr-users@USA.NET Wed Jan 8 14:30:44 1997 Date: Wed, 8 Jan 1997 12:29:31 -0500 From: DAReiser@AOL.COM Subject: PeopleSoft Consulting Opportunities Happy New Year! Do you work with PeopleSoft? I would be interested in speaking with you. Deb Reiser, Technical Recruiter Dimension Systems, Inc. 41621 West Eleven Mile Road Novi, MI 48375-1804 Phone: (810)305-9399 E-Mail: DAReiser@aol.com From owner-sqr-users@USA.NET Wed Jan 8 17:19:57 1997 Date: Wed, 8 Jan 1997 13:58:08 -0800 From: Raja Rajaram Subject: help with General Protection Faults... Hi All, I would like to know the reasons and ways to avoid any GPF's. We are planning on shipping our s/w and would like to know more about GPF's so that we can build a concrete product. We will be calling SQR from a VB front end. So if ther are any specific steps to avoid GPF's within the SQRWIN.DLL file kindly let me know. During the developments i have gottne the GPF in WMCOMN.LIB many a times. ANy way to avoid these?? Help much appreciated.. Thanks Raja raja@wise.com From owner-sqr-users@USA.NET Wed Jan 8 21:31:47 1997 Date: Wed, 8 Jan 1997 21:00:45 -0500 From: Terri Jenkins Subject: Re: PeopleSoft Consulting Opportunities Yes I do, for about 2 years now. Currently am with an implementation partner and travelling a lot. From owner-sqr-users@USA.NET Thu Jan 9 08:31:08 1997 Date: Thu, 9 Jan 1997 08:22:30 -0500 From: "\"Fernando Villaamil" Subject: Re: help with General Protection Faults... GPFs are a strange animal. We used to suffer from them until we upgraded our machines memory to 16Mb from 8. From owner-sqr-users@USA.NET Fri Jan 10 07:34:04 1997 Date: Fri, 10 Jan 1997 06:02:26 -0500 From: Steve Krim Hi all, I'm new to this list server, hopefully I can contribute something to it! A couple of questions open for discussion... 1) What kinds of things have others done to do remote report / interface development? I'm an independant contractor and would rather work at home on client reports (Less travel time, less interuptions, etc...) The issues I see are differing DB platforms, how to get good test data into my DB, performance of a home server (I don't bill enough to buy an Ultra Sparc 6000!), and others I'm sure. 2) Has anyone done anything to put a report into native Excel 5.x format? I don't have a lot of faith this is possible with out getting the Excel file format spec. Thanks alot to all! Steve From owner-sqr-users@USA.NET Fri Jan 10 08:54:04 1997 Date: Fri, 10 Jan 1997 08:41:55 -0500 From: Ray Ontko Subject: Re: your mail > 1) What kinds of things have others done to do remote report / interface > development? I'm an independant contractor and would rather work at home > on client reports (Less travel time, less interuptions, etc...) The issues > I see are differing DB platforms, how to get good test data into my DB, > performance of a home server (I don't bill enough to buy an Ultra Sparc > 6000!), and others I'm sure. Steve, We've done a fair amount of remote development of SQR applications. Here are a few thoughts: 1) get a fast connection to the internet. Many clients will at least allow you to telnet into their machines to do development or ftp to upload and download files easily. A ppp connection (available through your internet service provider) would often allow you to test remotely against a database server at your client. 2) if most of your work is with a particular database, (say Oracle or Sybase), get a copy to run on an intel machine in your office. Because your client won't have to provide a machine for you, you may be able to justify a slightly higher rate. 3) although SQR runs against many databases, I wouldn't expect you to be very productive writing SQR reports against Oracle with the intention of running them against a Sybase database. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Jan 10 18:19:27 1997 Date: Fri, 10 Jan 1997 10:28:37 -0800 From: John Kellogg Subject: Re: Fetch out of sequence error. From owner-sqr-users@USA.NET Mon Jan 13 04:55:16 1997 Date: Tue, 14 Jan 1997 11:39:57 +0200 From: Marcel Groenewald Subject: Using SQR3 for batch processing Because of the power and ease of use of SQR3, we are contemplating using it for purposes other than reportwriting. Is anyone else currently using SQR3 in the UNIX environment for other tasks (e.g. batch jobs)? These tasks could include database housekeeping and interfacing to outside systems (e.g. file transfers, etc.) If you are using SQR3 in this manner, I would like to know how issues like error logging, security, etc. are handled. Thank you Marcel Groenewald From owner-sqr-users@USA.NET Mon Jan 13 08:19:53 1997 Date: Tue, 14 Jan 1997 07:56:00 -0500 From: Michael Docteroff Subject: Re: Using SQR3 for batch processing Marcel, I have worked on systems that use SQR for all daily and nightly batch processing. Including Material Requirements Planning modules, Accounts Payable check processing, Physical Inventory systems and even Accounts Payable Check Reconciliation processes that read interfaced files from a companies financial institution. I think SQR is a real powerful transaction processing tool and would be a great choice for what you are trying to accomplish. The systems I worked on were running under HP-UX and using an Oracle database and the security issues were handled by the operating system and the database. Now that SQR allows you to write to multiple output files error logging has become easier to handle. If you have any questions please feel free to contact me at 609-716-3233. Michael A.Docteroff M.A.D. Technologies ______________________________ Reply Separator _________________________________ Subject: Using SQR3 for batch processing Author: marcelg@NEW.ISCORLTD.CO.ZA at GATEWAY Date: 1/14/97 4:39 AM Because of the power and ease of use of SQR3, we are contemplating using it for purposes other than reportwriting. Is anyone else currently using SQR3 in the UNIX environment for other tasks (e.g. batch jobs)? These tasks could include database housekeeping and interfacing to outside systems (e.g. file transfers, etc.) If you are using SQR3 in this manner, I would like to know how issues like error logging, security, etc. are handled. Thank you Marcel Groenewald From owner-sqr-users@USA.NET Tue Jan 14 12:22:10 1997 Date: Tue, 14 Jan 1997 11:58:00 -0500 From: james rader Subject: Re: Using SQR3 for batch processing Marcel, Most SQR shops quickly extend it's use beyond reportwriting. In fact, we get really testy when someone refers to it as a "reportwriter". We at INTELSAT, like many SQR shops, have used it to convert between ORACLE versions, fix ORACLE databases, and do very heavy duty batch processing. We also use it to provide world-wide on-line database query capability as part of multi-teir distributed systems architectures. If you only use it for reports, you have but scratched the surface. - Jim Rader Internet: james.rader@intelsat.int ------------- Original Text >From MARCELG@SMTPGATE (Marcel Groenewald) {marcelg@NEW.ISCORLTD.CO.ZA}, on 14/1/97 4:39 AM: To: SQR-USER@SMTPGATE (Multiple recipients of list SQR-USERS) {SQR-USERS@USA.NET} Because of the power and ease of use of SQR3, we are contemplating using it for purposes other than reportwriting. Is anyone else currently using SQR3 in the UNIX environment for other tasks (e.g. batch jobs)? These tasks could include database housekeeping and interfacing to outside systems (e.g. file transfers, etc.) If you are using SQR3 in this manner, I would like to know how issues like error logging, security, etc. are handled. Thank you Marcel Groenewald From owner-sqr-users@USA.NET Tue Jan 14 18:38:26 1997 Date: Tue, 14 Jan 1997 17:07:57 -0600 From: Richard Watts Subject: Using SQR3 for batch processing -Reply Marcel, I don't know how familiar, if at all, you are with PeopleSoft Financials, but the entire Asset Management server product is written in SQR, and quite a few pieces of their GL and Project Costing modules are written in SQR. To that end we have written maintenance processes, tree loader processes, and entire source system interface/edit modules for PeopleSoft Financials in SQR. >>> Marcel Groenewald 01/14/97 03:39am >>> Because of the power and ease of use of SQR3, we are contemplating using it for purposes other than reportwriting. Is anyone else currently using SQR3 in the UNIX environment for other tasks (e.g. batch jobs)? These tasks could include database housekeeping and interfacing to outside systems (e.g. file transfers, etc.) If you are using SQR3 in this manner, I would like to know how issues like error logging, security, etc. are handled. Thank you Marcel Groenewald From owner-sqr-users@USA.NET Wed Jan 15 10:43:25 1997 Date: Wed, 15 Jan 1997 10:22:00 -0500 From: Callis David Subject: Re: PeopleSoft Consulting Opportunities Are you considering new opportunities? >---------- >From: Terri Jenkins[SMTP:LDYGLFR@AOL.COM] >Sent: Wednesday, January 08, 1997 9:00 PM >To: Multiple recipients of list SQR-USERS >Subject: Re: PeopleSoft Consulting Opportunities > >Yes I do, for about 2 years now. Currently am with an implementation partner >and travelling a lot. > From owner-sqr-users@USA.NET Wed Jan 15 13:35:16 1997 Date: Thu, 16 Jan 1997 14:29:22 +0000 From: Simone Curtis Subject: SQR report developer I am looking for an SQR report developer to work in an Oracle 7 and Sysbase 10 environment on out Great Ormond Street project. I would prefer a new permenent member of staff but if any contractors are available for the next 2-3 months, please let me know. The company is KPMG Health Systems, based in Manchester city center, England. If you are interested please send your C.V. to me as soon as possible. Thanks Simone Curtis Consultant KPMG Health Systems From owner-sqr-users@USA.NET Wed Jan 15 15:25:02 1997 Date: Wed, 15 Jan 1997 14:43:59 -0500 From: Sean Collins Has anyone else out there experienced this problem. I received this message from one of our users. *************************************************************************************** After successfully running to completion several of my EasySQR programs - and obtaining the expected results - I may need to return and run the given program a second time. Many times, I have re-run a program without making changes to the program whatsoever. When the system message informs me that the run is completed and I view what should be the output on the screen, I instead have received the message that informs me that: "The report output file does not exist o You haven't run the report yet o One or more of the following clauses ("Join", "Where") didn't allow any data to be selected from the database." Logically, this is impossible because I have previously tested the program, obtained the results, and have not amended the program in any way. **************************************************************************************** Thanks in advance for any light you can shed on the subject. From owner-sqr-users@USA.NET Wed Jan 15 15:29:38 1997 Date: Wed, 15 Jan 1997 11:13:26 -0800 From: Raja Rajaram Subject: Re: SQR report developer Hi, I would like to know if the position will be based in England itself or if there is an opportuinity for any positions here in the US. IF so please let me know. I have about 5 months experience in SQR and i am also in the Health Care business. Raja raja@wise.com ____________________Reply Separator____________________ Subject: SQR report developer Author: SQR-USERS@USA.NET Date: 1/16/97 2:29 PM I am looking for an SQR report developer to work in an Oracle 7 and Sysbase 10 environment on out Great Ormond Street project. I would prefer a new permenent member of staff but if any contractors are available for the next 2-3 months, please let me know. The company is KPMG Health Systems, based in Manchester city center, England. If you are interested please send your C.V. to me as soon as possible. Thanks Simone Curtis Consultant KPMG Health Systems From owner-sqr-users@USA.NET Wed Jan 15 23:00:58 1997 Date: Wed, 15 Jan 1997 22:49:34 -0500 From: Ed Crotty <73747.1247@COMPUSERVE.COM> Subject: Using SQR3 for batch processing -Reply If you're NOT using SQR for batch processing - you're missing the boat!! From owner-sqr-users@USA.NET Wed Jan 15 23:49:08 1997 Date: Thu, 16 Jan 1997 11:52:25 +0800 From: Raymond Yip Subject: 32-bit version of SQR Viewer Is there any 32-bit version of SQR Viewer? Raymond From owner-sqr-users@USA.NET Thu Jan 16 03:14:42 1997 Date: Thu, 16 Jan 1997 09:07:08 +0200 From: Marcel Groenewald Subject: Re: Using SQR3 for batch processing Thank you for your reply. I work for a large steel manufacturing company on exactly the same platform you are (i.e. Oracle on HPUX). I would appreciate it if you could tell me how you handle certain issues: 1. How does your SQR programs log on to the database? Is the username and password hard coded in your programs? If so, what do you do when a password changes? Don't you see this as a possible security problem (i.e. anyone with access to your program can get a database login) ? 2. Are your SQR systems 24x7 type of systems? If so, what do you do when an error occurs? We have 24 hr operations people who could monitor for errors or resource usage, but I'm just wondering what will be the best way to do this (e.g. using some systems management tool like HP/Openview). How are your systems handling this? Can your systems notify a user when an error occured? 3. Do you keep logs of execution times? (i.e. when last a certain program executed) 4. Do you have any architecture for kicking of your batches from a client PC running Windows? (I.e. a client wants to run a certain SQR program on the HPUX server, and not on his PC. He may want to be notified when it completed and view the results, log, etc.) 5. How many people in your environment are coding using SQR3? Do you have some coding standards or guidelines? (e.g. the general layout of the program, how to handle errors, what to log where and when, etc.) Thank you for your interest Marcel Groenewald ---------- > Marcel, > > I have worked on systems that use SQR for all daily and nightly batch > processing. Including Material Requirements Planning modules, Accounts > Payable check processing, Physical Inventory systems and even Accounts > Payable Check Reconciliation processes that read interfaced files from > a companies financial institution. > > I think SQR is a real powerful transaction processing tool and would > be a great choice for what you are trying to accomplish. > > The systems I worked on were running under HP-UX and using an Oracle > database and the security issues were handled by the operating system > and the database. > > Now that SQR allows you to write to multiple output files error > logging has become easier to handle. > > > If you have any questions please feel free to contact me at > 609-716-3233. > > Michael A.Docteroff > M.A.D. Technologies From owner-sqr-users@USA.NET Sat Jan 18 14:52:29 1997 Date: Sat, 18 Jan 1997 08:42:40 -0500 From: Ray Ontko Subject: Re: next-listing problem... > I used next-listing after printing every detail line of a report in order to > get one blank line between detail lines. Towards the end of the report, a > line that was being printed within begin-heading...end-heading, was getting > printed partially in the detail line i.e the detail line was garbled....When > I used next-listing skiplines=0, the same problem occurred...next-listing > skiplines=1 ran successfully but there were 2 blank lines between detail > lines...is it a known bug or what ? Is there any list of known SQR bugs > around ?....Would appreciate your help.......shiv Make sure that you have the correct number of lines declared for your heading. Also, an early version of 3.0 had a problem with putting an extra blank line at the top of a page (below the header) if wrap continued onto a second page (if I remember correctly). I'm not aware of any other problems, but call MITI for the official word. Hope this helps. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Sat Jan 18 14:52:34 1997 Date: Sat, 18 Jan 1997 07:48:17 -0500 From: Ray Ontko Subject: Re: 32-bit version of SQR Viewer > Is there any 32-bit version of SQR Viewer? > > Raymond I assume you mean for Win95. The 16 bit version is the only supported one for Win95. Is there a reason the 16 bit version won't work for your application? Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Sun Jan 19 04:30:48 1997 Date: Sun, 19 Jan 1997 04:13:23 -0800 From: Recruiting Subject: SQR Openings... ------------7EC358124C0415 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii We have SQR openings...Salary:$35-$45/hr...Length:1 year. Interested candidates please e-mail resumes to recruiting@proconinc.com or fax to 1-810-213-0314. For more details please call 1-810-244-8536. Thanks, Ron Procon Inc. 810-244-8536 ------------7EC358124C0415 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
 We have SQR openings...Salary:$35-$45/hr...Length:1 year. Interested candidates please e-mail resumes to recruiting@proconinc.com or fax to 1-810-213-0314. For more details please call 1-810-244-8536.
 
Thanks,
Ron
Procon Inc.
810-244-8536
------------7EC358124C0415-- From owner-sqr-users@USA.NET Tue Jan 21 13:36:26 1997 Date: Tue, 21 Jan 1997 13:15:47 -0500 From: "JUNNARKAR, SWAPNIL" Subject: Password & Porting on NT Hi, I am using SQR 3 on UNIX. I need some help on the following issues. 1>Can U get the password in some reserved variable? like $username gives you the user id. I have a driver SQR which runs other SQRs as per the parameters. 2>Currently I am running the SQRs on UNIX, but it can happen that they might be ported onto NT. I am issuing operating system commands for eg call system using 'UNIX comm' DOes anyone know how to do the same on NT ? Thanks in advance, Swapnil. From owner-sqr-users@USA.NET Wed Jan 22 06:47:13 1997 Date: Wed, 22 Jan 1997 10:40:40 +0000 From: lclarke@SPS-UK.CO.UK Subject: SQR Contractors Needed SPS, MITI's primary supplier of SQR consultancy and training services in th= e UK, are currently looking for SQR contractors to undertake a variety of SQR=20 development projects in the UK. If you have experience of SQR and would be interested in finding out more a= bout=20 the sort of assignments SPS could offer you, send a copy of your Resume/CV=20= to: Linda Clarke For more information about SPS and its services you can visit our web site=20= at: http://www.sps-uk.co.uk ---------------------------------------------------------------------- >From : Linda Clarke Date : 22 January 1996 Company : Software Product Services Limited Tel : +44 (0)1483 730771 =20 Fax : +44 (0)1483 727417 E-Mail : sps@sps-uk.co.uk URL : http://www.sps-uk.co.uk ---------------------------------------------------------------------- From owner-sqr-users@USA.NET Wed Jan 22 13:06:30 1997 Date: Wed, 22 Jan 1997 08:20:35 -0800 From: John Kellogg Subject: Re: Password & Porting on NT Swapnil, 1) We have an enhancement request already open for a $password reserved variable (# 558). So far, the request has not been implemented. It may be considered for V5. There are obvious security considerations in implementing this variable. 2) Your choices are to convert the call system command from a UNIX command to a DOS or Windows equivalent if available, or, to run a UNIX shell package on the NT such as MKS. John L. Kellogg SQRiBE (Formerly MITI) Technical Support Manager JUNNARKAR, SWAPNIL wrote: > > Hi, > I am using SQR 3 on UNIX. > I need some help on the following issues. > > 1>Can U get the password in some reserved variable? like $username gives > you the user id. > I have a driver SQR which runs other SQRs as per the parameters. > > 2>Currently I am running the SQRs on UNIX, but it can happen that they > might be ported onto NT. > I am issuing operating system commands for eg call system using 'UNIX > comm' > DOes anyone know how to do the same on NT ? > Thanks in advance, > Swapnil. From owner-sqr-users@USA.NET Thu Jan 23 19:26:33 1997 Date: Thu, 23 Jan 1997 09:38:54 -0800 From: Angel Guzman Subject: SQR3 on WIN-NT We are going to migrate to WIN-NT this summer. I currently use SQR3, will SQR work in NT? From owner-sqr-users@USA.NET Thu Jan 23 19:38:59 1997 Date: Thu, 23 Jan 1997 16:43:33 +0000 From: Harry at Planet Connect Subject: Including inverted commas within the STRING statement How can I include a ' within a STRING statement (so as to build a dynamic variable). Thanks Harry From owner-sqr-users@USA.NET Thu Jan 23 22:07:52 1997 Date: Thu, 23 Jan 1997 19:56:46 -0500 From: "Eric A. Eastman" Subject: Re: Including inverted commas within the STRING statement Harry, You simply double the quotation mark: print 'The Beatles sang ''Can''t Buy Me Love.''' () result The Beatles sang 'Can't Buy Me Love.' Welcome, Eric PS. The same goes for exclaimation marks in strings: print 'Go Packers!!' () print 'Go Pats!' () is an error. On Thu, 23 Jan 1997, Harry at Planet Connect wrote: > How can I include a ' within a STRING statement (so as to build a > dynamic variable). > > Thanks > > Harry > From owner-sqr-users@USA.NET Thu Jan 23 22:21:50 1997 Date: Thu, 23 Jan 1997 17:12:52 -0800 From: Raja Rajaram Subject: How can this be done?? Hi All, I have this question. I have a select statement which has an IN clause, for eg. select emp_iid from emp where dept in ('HR',ENG') This is the problem. I would like to have th IN clause parameters to be a variable number. I have an upper limit though (say 10) I dont know how many different Dept's i might have to include. I tried passing all the depts as a comma seperated string. I UNSTRING them into 10 different variables and them make them into a string like 'HR','ENG','SALES' (including the ' and , ) say $Dept. so now the select clause could look like as select emp_iid where dept in ($Dept). This apparently does not work. Does anybody have any suggestion for this kinda problem? Thanks Raja raja@wise.com From owner-sqr-users@USA.NET Fri Jan 24 01:48:27 1997 Date: Thu, 23 Jan 1997 22:42:40 -0500 From: Ray Ontko Subject: Re: How can this be done?? > Hi All, > I have this question. I have a select statement which has an IN clause, for eg. > > select emp_iid > from emp > where dept in ('HR',ENG') > > This is the problem. I would like to have th IN clause parameters to be a > variable number. I have an upper limit though (say 10) I dont know how many > different Dept's i might have to include. I tried passing all the depts as a > comma seperated string. I UNSTRING them into 10 different variables and them > make them into a string like 'HR','ENG','SALES' (including the ' and , ) say > $Dept. so now the select clause could look like as > select emp_iid where dept in ($Dept). > This apparently does not work. Does anybody have any suggestion for this kinda > problem? Raja, What you're trying to do is called a "dynamic query". To include variable text in the where clause, put square brackets around the variable containing the text. For example: where dept in ( [$dept] ) The square brackets tell SQR to treat the contents of the variable as part of the literal SQL statement, not as a host variable. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Jan 24 01:56:15 1997 Date: Thu, 23 Jan 1997 18:27:12 -0800 From: Bob Lowell Subject: Re: Including inverted commas within the STRING statement At 04:43 PM 1/23/97 +0000, Harry at Planet Connect wrote: >How can I include a ' within a STRING statement (so as to build a >dynamic variable). You have to comment it with an additional ' ie: STRING 'bp.release_group = ' '''' $rg '''' BY '' INTO $dynamic_rg where the four ' in a row preceding and trailing $rg represent 1) opening quote 2) comment quote 3) quote written into $dynamic_rg variable 4) closing quote Enjoy, Bob From owner-sqr-users@USA.NET Fri Jan 24 01:59:31 1997 Date: Fri, 24 Jan 1997 05:32:17 -0000 From: "Ward, Martin" Subject: SQR/SQR3 Querying on Database Views Can SQR/SQR3 'select' from a database view?. My version(s) of SQR come bundled with the MAXIMO Maintenance Management Package. I have tried to select from a view that I have created at the database level, but I receive a 'TABLE not CREATED' SQR Error. Interestingly, the MAXIMO Application has views on its tables, and SQR can select from them. I am not sure whether the catalog that the SQR sees is purely linked to the MAXIMO application. For information I am running a SQLBase database. Many thanks for any help. Regards M.J.Ward MAXIMO Analyst Systems Development News International Newspapers Ltd. email : martin.ward@it.newsint.co Tel: 0171-782-6389 fax: 0171-782-6416 From owner-sqr-users@USA.NET Fri Jan 24 15:18:45 1997 Date: Fri, 24 Jan 1997 13:10:33 -0500 From: "Brent S. Templeton" Subject: Re: SQR/SQR3 Querying on Database Views ------ =_NextPart_000_01BC09F8.4D4024C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Should work, you might re-check permissions on the view to include the SQR login user. I am not familiar with Maximo however. Regards, Brent btempleton@pmai.org -----Original Message----- From: Ward, Martin [SMTP:martin.ward@IT.NEWSINT.CO.UK] Sent: Friday, January 24, 1997 8:52 AM To: Multiple recipients of list SQR-USERS Subject: SQR/SQR3 Querying on Database Views Can SQR/SQR3 'select' from a database view?. My version(s) of SQR come bundled with the MAXIMO Maintenance Management Package. I have tried to select from a view that I have created at the database level, but I receive a 'TABLE not CREATED' SQR Error. Interestingly, the MAXIMO Application has views on its tables, and SQR can select from them. I am not sure whether the catalog that the SQR sees is purely linked to the MAXIMO application. For information I am running a SQLBase database. Many thanks for any help. Regards M.J.Ward MAXIMO Analyst Systems Development News International Newspapers Ltd. email : martin.ward@it.newsint.co Tel: 0171-782-6389 fax: 0171-782-6416 ------ =_NextPart_000_01BC09F8.4D4024C0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IjMSAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAANjdBMjUwOUVGMjc1RDAxMTkwMzQwMEEwQzkxMjEw QTYA1QYBBYADAA4AAADNBwEAGAANAAoAIQAFACoBASCAAwAOAAAAzQcBABgADQAKACEABQAqAQEE kAYAsAEAAAEAAAARAAAAAwAAMAAAAAALAA8OAAAAAAIB/w8BAAAAQwAAAAAAAACBKx+kvqMQGZ1u AN0BD1QCAAAAACdTUVItVVNFUlNAVVNBLk5FVCcAU01UUABTUVItVVNFUlNAVVNBLk5FVAAAHgAC MAEAAAAFAAAAU01UUAAAAAAeAAMwAQAAABIAAABTUVItVVNFUlNAVVNBLk5FVAAAAAIB9g8BAAAA BAAAAAAAAAADABUMAQAAAAIBCzABAAAAFwAAAFNNVFA6U1FSLVVTRVJTQFVTQS5ORVQAAB4AATAB AAAAFAAAACdTUVItVVNFUlNAVVNBLk5FVCcAHgAgOgEAAAAUAAAAJ1NRUi1VU0VSU0BVU0EuTkVU JwALAEA6AQALMAMA/g8GAAAAAwAAOQAAAAADAP9fAAAAAAMA/V8BAAAAHg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WaWV3cwACAXEAAQAAABYAAAABvAoiNSDTxjdrdgYR0JtJ AKDJEhAuAAADAIAQ/////0AAOQCwa/PjIQq8AQMA8T8JBAAAHgAeDAEAAAADAAAARVgAAB4AHwwB AAAARAAAAC9PPVBIT1RPIE1BUktFVElORyBBU1NPQ0lBVElPTiBJTlRMLi9PVT1QTUEvQ049UkVD SVBJRU5UUy9DTj1CUkVOVFQAAgH5PwEAAABgAAAAAAAAANynQMjAQhAatLkIACsv4YIBAAAAAAAA AC9PPVBIT1RPIE1BUktFVElORyBBU1NPQ0lBVElPTiBJTlRMLi9PVT1QTUEvQ049UkVDSVBJRU5U Uy9DTj1CUkVOVFQAHgD4PwEAAAAQAAAAQnJlbnQgVGVtcGxldG9uAAIB+z8BAAAAYAAAAAAAAADc p0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1QSE9UTyBNQVJLRVRJTkcgQVNTT0NJQVRJT04gSU5U TC4vT1U9UE1BL0NOPVJFQ0lQSUVOVFMvQ049QlJFTlRUAB4A+j8BAAAAEAAAAEJyZW50IFRlbXBs ZXRvbgBAAAcwcBXh4yEKvAFAAAgw4PL04yEKvAEDAAYQw1987QMABxBdAwAAAwAQEAAAAAADABEQ AAAAAB4ACBABAAAAZQAAAFNIT1VMRFdPUkssWU9VTUlHSFRSRS1DSEVDS1BFUk1JU1NJT05TT05U SEVWSUVXVE9JTkNMVURFVEhFU1FSTE9HSU5VU0VSSUFNTk9URkFNSUxJQVJXSVRITUFYSU1PSE9X RVYAAAAAAwANNP0/AAACARQ0AQAAABAAAABUlKHAKX8QG6WHCAArKiUXHgA9AAEAAAAFAAAAUkU6 IAAAAADsng== ------ =_NextPart_000_01BC09F8.4D4024C0-- From owner-sqr-users@USA.NET Fri Jan 24 15:55:12 1997 Date: Fri, 24 Jan 1997 13:06:18 -0500 From: "Brent S. Templeton" Subject: Re: How can this be done?? ------ =_NextPart_000_01BC09F7.B5956450 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Pass in a comma seperated list eg: hr,eng,sales,etc. Write a routine = that puts quotes around the string and pass that into the in clause. Here is this exact procedure from one of my SQR programs. It was = written may years ago and much of the logic could be updated to use the = let statement and other new commands, but it works. Then use the variable in brackets [] for the in clause eg: where field = in [$ql_out_list] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D begin-procedure quote_list ! takes a comma seperated list and quotes each ql_item ! a,b,c =3D> 'a','b','c' ! ! input $ql_in_list ! output $ql_out_list ! destroys $ql_in_list ! move '' to $ql_out_list move ',' to $ql_dummy concat $ql_in_list with $ql_dummy move $ql_dummy to $ql_in_list concat ',' with $ql_in_list ! ,a,b,c, move 1 to #ql_start_loc move 1 to #ql_loc1 find ',' in $ql_in_list #ql_start_loc #ql_loc2 while #ql_loc2 !=3D -1 move #ql_loc2 to #ql_len subtract #ql_loc1 from #ql_len extract $ql_item from $ql_in_list #ql_loc1 #ql_len if #ql_num_flag !=3D 0 move $ql_item to #ql_tmp move #ql_tmp to $ql_item 099 else move $ql_item to $ql_tmp xxxxx move $ql_tmp to $ql_item end-if string '''' $ql_item '''' by '' into $q_ql_item move #ql_loc2 to #ql_start_loc concat $q_ql_item with $ql_out_list find ',' in $ql_in_list #ql_start_loc #ql_loc1 add 1 to #ql_loc1 find ',' in $ql_in_list #ql_loc1 #ql_loc2 if #ql_loc2 !=3D -1 concat ',' with $ql_out_list end-if end-while end-procedure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D -----Original Message----- From: Raja Rajaram [SMTP:raja@WISE.COM] Sent: Friday, January 24, 1997 8:52 AM To: Multiple recipients of list SQR-USERS Subject: How can this be done?? Hi All, I have this question. I have a select statement which has an IN clause, = for eg. select emp_iid from emp where dept in ('HR',ENG') This is the problem. I would like to have th IN clause parameters to be = a variable number. I have an upper limit though (say 10) I dont know how = many different Dept's i might have to include. I tried passing all the depts = as a comma seperated string. I UNSTRING them into 10 different variables and = them make them into a string like 'HR','ENG','SALES' (including the ' and , ) = say $Dept. so now the select clause could look like as select emp_iid where dept in ($Dept). This apparently does not work. Does anybody have any suggestion for this = kinda problem? Thanks Raja raja@wise.com ------ =_NextPart_000_01BC09F7.B5956450 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IiQSAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAANTJBMjUwOUVGMjc1RDAxMTkwMzQwMEEwQzkxMjEw QTYAzwYBBYADAA4AAADNBwEAGAANAAYAEgAFABcBASCAAwAOAAAAzQcBABgADQAGABIABQAXAQEE kAYAsAEAAAEAAAARAAAAAwAAMAAAAAALAA8OAAAAAAIB/w8BAAAAQwAAAAAAAACBKx+kvqMQGZ1u AN0BD1QCAAAAACdTUVItVVNFUlNAVVNBLk5FVCcAU01UUABTUVItVVNFUlNAVVNBLk5FVAAAHgAC MAEAAAAFAAAAU01UUAAAAAAeAAMwAQAAABIAAABTUVItVVNFUlNAVVNBLk5FVAAAAAIB9g8BAAAA BAAAAAAAAAADABUMAQAAAAIBCzABAAAAFwAAAFNNVFA6U1FSLVVTRVJTQFVTQS5ORVQAAB4AATAB AAAAFAAAACdTUVItVVNFUlNAVVNBLk5FVCcAHgAgOgEAAAAUA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MBCEBq0uQgAKy/hggEAAAAAAAAAL089UEhP VE8gTUFSS0VUSU5HIEFTU09DSUFUSU9OIElOVEwuL09VPVBNQS9DTj1SRUNJUElFTlRTL0NOPUJS RU5UVAAeAPg/AQAAABAAAABCcmVudCBUZW1wbGV0b24AAgH7PwEAAABgAAAAAAAAANynQMjAQhAa tLkIACsv4YIBAAAAAAAAAC9PPVBIT1RPIE1BUktFVElORyBBU1NPQ0lBVElPTiBJTlRMLi9PVT1Q TUEvQ049UkVDSVBJRU5UUy9DTj1CUkVOVFQAHgD6PwEAAAAQAAAAQnJlbnQgVGVtcGxldG9uAEAA BzCQ8cmUIAq8AUAACDAQxQNMIQq8AQMABhA6U4pVAwAHEHcHAAADABAQAAAAAAMAERAAAAAAHgAI EAEAAABlAAAAUEFTU0lOQUNPTU1BU0VQRVJBVEVETElTVEVHOkhSLEVORyxTQUxFUyxFVENXUklU RUFST1VUSU5FVEhBVFBVVFNRVU9URVNBUk9VTkRUSEVTVFJJTkdBTkRQQVNTVEhBVElOVAAAAAAD AA00/T8AAAIBFDQBAAAAEAAAAFSUocApfxAbpYcIACsqJRceAD0AAQAAAAUAAABSRTogAAAAAGTd ------ =_NextPart_000_01BC09F7.B5956450-- From owner-sqr-users@USA.NET Sat Jan 25 05:02:42 1997 Date: Sat, 25 Jan 1997 09:11:47 +0000 From: Harry Subject: Inout field limitation using SQR with MAXIMO 3.0A I have just started to code a set of reports for a client who is using MAXIMO 3.0A. I am using SQR 3.0.7.1 . The reports I am writing require a number of fields to be input by the user. MAXIMO appears to cater for a maximum of four fields, and after that the standard SQR prompt boxes are used. i) Is it possible to increase the number of prompts offered by Maximo ? ii) Is it possible to carry out any validation on the data input through these MAXIMO prompts - including if possible the ability to write error messages to the user ? iii)I would be interested to hear from anybody who has used SQR to code reports of any complexity for MAXIMO. Thanks Harry From owner-sqr-users@USA.NET Sun Jan 26 12:09:14 1997 Date: Sun, 26 Jan 1997 11:55:48 -0500 From: "\"Fernando Villaamil" Subject: Re: How can this be done?? In a message dated 97-01-23 22:19:33 EST, you write: << Hi All, I have this question. I have a select statement which has an IN clause, for eg. select emp_iid from emp where dept in ('HR',ENG') This is the problem. I would like to have th IN clause parameters to be a variable number. I have an upper limit though (say 10) I dont know how many different Dept's i might have to include. I tried passing all the depts as a comma seperated string. I UNSTRING them into 10 different variables and them make them into a string like 'HR','ENG','SALES' (including the ' and , ) say $Dept. so now the select clause could look like as select emp_iid where dept in ($Dept). This apparently does not work. Does anybody have any suggestion for this kinda problem? Thanks Raja raja@wise.com >> Raja, Why don't you load the departments into a lookup table and reference it every time you need it. Fernando Villaamil Miami Herald Publishing Co. From owner-sqr-users@USA.NET Sun Jan 26 15:29:44 1997 Date: Sun, 26 Jan 1997 15:16:03 -0500 From: Nathan Treadway Subject: Re: SQR3 on WIN-NT > We are going to migrate to WIN-NT this summer. > I currently use SQR3, will SQR work in NT? Yes, there is a 32-bit version of SQR3 for Win NT, at least for most databases. SQR4 for Win NT is also in production now, or at least will be soon. I just looked at the website but it seems they are not publishing actual availablity information there. Still, you might find what you need from http://www.sqribe.com/products/sqravail.htm . Nathan p.s. Note that MITI just changed its name to "SQRiBE Technologies". ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Jan 27 10:49:33 1997 Date: Mon, 27 Jan 1997 10:15:37 -0500 From: "Goodwin, Melissa" Subject: SQR To whom it may concern: I am a technical recruiter for the Maxim Group, an information technologies consulting firm. I have an opportunity in the Harrisburg, PA area for a programmer with experience in Sybase, Visual Basic, and SQR. I am having a difficult time trying to find anybody with experience in SQR. Therefore, I am hoping you will be able to assist me. If you know of anyone who would be interested in a position with these skills, I would appreciate any names. Also, if you know of any other terms I could use to look up people who would have SQR experience, I would appreciate those. Please feel free to forward this message to anyone you might know who could help. I really appreciate it. Thank you for your time and I look forward to hearing from you. Sincerely, Melissa Goodwin email: mgoodwin@maximgroup.com Technical Recruiter http://www.maximgroup.com 2605 Interstate Drive Ste 260 Phone: (800)206-2639 Harrisburg, PA 17110 Fax: (717)652-1394 From owner-sqr-users@USA.NET Mon Jan 27 11:55:15 1997 Date: Mon, 27 Jan 1997 11:14:19 -0500 From: DEPUY@SGENAA.CC.GENESEO.EDU Subject: SQR3 problem Good Morning, I have a report that was previously running ok on VAX/VMS with Oracle version 6 and SQR 2.5. We have recently moved to a Digital Alpha with Oracle version 7 and SQR V3.0.12.1. The problem with the report is it is creating an SPF output file instead of a .lis file. The program does this eventhough no KEEP or NOLIS flags have been used. It even overrides the -F flag where the name of the output file is specified as XXXXX.lis. It also overrides the new-report command. Any assistance you can provide will be greatly appreciated. Glenn DePuy SUNY Geneseo Depuy@sgenaa.cc.geneseo.edu From owner-sqr-users@USA.NET Mon Jan 27 17:55:56 1997 Date: Mon, 27 Jan 1997 14:38:57 -0800 From: "Jeffrey S. Buckley" Subject: Re: SQR3 on WIN-NT Yes... it works with NT. At 09:38 AM 1/23/97 -0800, you wrote: >We are going to migrate to WIN-NT this summer. >I currently use SQR3, will SQR work in NT? > > From owner-sqr-users@USA.NET Mon Jan 27 19:35:02 1997 Date: Mon, 27 Jan 1997 15:38:51 -0800 From: Raja Rajaram Subject: Hi.. Hi All, I am trying to generate reports with bitmaps in it. The bitmap files themselves are not static, so I use the print-image command. I am facing this problem the bitmap sometimes overruns the footer of my report. Is there anyway in which SQR can print the image on the top line of the next page is it cannot fit in the present page?? Thanks Raja raja@wise.com From owner-sqr-users@USA.NET Mon Jan 27 20:09:39 1997 Date: Mon, 27 Jan 1997 18:54:43 -0600 From: danian liu Subject: No enuf room for image printing ... Raja, You may want to try NEXT-LISTING command with NEED={int_var} option. You can refer to pg. 247 if you are using SQR3 Workbench User's Guide. Hope this helps, danian liu dliu@uhc.com -- There is no future in time travel. > Hi All, > I am trying to generate reports with bitmaps in it. The bitmap files themselves > are not static, so I use the print-image command. I am facing this problem the > bitmap sometimes overruns the footer of my report. Is there anyway in which SQR > can print the image on the top line of the next page is it cannot fit in the > present page?? > > > Thanks > Raja > raja@wise.com From owner-sqr-users@USA.NET Mon Jan 27 23:23:02 1997 Date: Mon, 27 Jan 1997 17:08:04 -0800 From: "J.J. Freitag" Subject: Re: 32-bit version of SQR Viewer ------------247F7A517D9A11 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Raymond, We have a 32 bit viewer in development. We will likely release it in March. J.J. Freitag Product Manager SQRIBE Technologies (formerly MITI) jfreitag@sqribe.com ------------247F7A517D9A11 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
Raymond,
 
We have a 32 bit viewer in development.  We will likely release it in March.
 
J.J. Freitag
Product Manager
SQRIBE Technologies (formerly MITI)
jfreitag@sqribe.com 
------------247F7A517D9A11-- From owner-sqr-users@USA.NET Tue Jan 28 11:51:57 1997 Date: Tue, 28 Jan 1997 08:21:45 -0800 From: Marcos Rodrigues Subject: Re: 32-bit version of SQR Viewer J.J. In the new development are we going to have a SQR Viewer 4.0 user object in 16-bit and 32-bit for the PowerBuilder extension? Regards, Marcos J.J. Freitag wrote: > > Raymond, > > We have a 32 bit viewer in development. We will likely release it in > March. > > J.J. Freitag > Product Manager > SQRIBE Technologies (formerly MITI) > jfreitag@sqribe.com From owner-sqr-users@USA.NET Tue Jan 28 14:38:16 1997 Date: Tue, 28 Jan 1997 13:00:00 -0500 From: Michael Docteroff Subject: Position available Any independent consultant/contractor with SQR, SQL*Forms 3.0 interested in a position in Central New Jersey please contact me at 609-716-3233 or fax a resume to 201-364-0411. Michael Docteroff M.A.D. Technologies, LLC From owner-sqr-users@USA.NET Wed Jan 29 04:22:28 1997 Date: Wed, 29 Jan 1997 09:14:40 PST From: Semech@POBOX.COM Subject: Re: SQR3 problem Hi, Do you know about convertor from RPT (old oracle report writer) to SQR ? And maybe about PL/1 to SQR ? Thanks in advance, Arnon Oppenheimer ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 29/1/97 Time: 09:14:40 AM ------------------------------------- From owner-sqr-users@USA.NET Wed Jan 29 07:37:38 1997 Date: Wed, 29 Jan 1997 13:24:31 +0100 From: "Stephane Rognon (ok)" Subject: Encode <0> My problem is about non-display character. When I try to encode '<1>' into a variable that works fine. But when I try to encode '<0>' my output file doesn't contain any value. My source code is : begin-report encode '<0>' into $pp print $pp (,) end-report Do I make a mistake ? Is there another way to put '<0>' into my output file ? Best regards Stephane Rognon FINACOR 52 champs elysees 75008 Paris Tel 33140741796 Fax 33142892549 Rognon@elysees.finacor.fr Rognon@city.finacor.co.uk Rognon@finacor.com www.finacor.fr www.finacor.co.uk www.finacor.com From owner-sqr-users@USA.NET Wed Jan 29 08:59:18 1997 Date: Wed, 29 Jan 1997 08:48:17 -0500 From: Nathan Treadway Subject: Re: Encode <0> > My source code is : > begin-report > encode '<0>' into $pp > print $pp (,) > end-report > > Do I make a mistake ? > Is there another way to put '<0>' into my output file ? > No, you are doing the right thing, but it won't work. The problem is that SQR uses 0-terminated strings internally. So, when you encode a 0, the string handling routines treat that as an end-of-string marker and truncate the string at that point. I know of two work-arounds for this problem. One is to write an external routine that does what you need and then link that into SQR. (See UCALL and UFUNC in the SQR manual for more information.) The other is to choose some other character to act as a placeholder and then run a filter on the output file after SQR writes it. For example, you could output a # where ever you needed a 0, and then run (on Unix) something like "tr '#' '\0'" on the output file. (Note that not all version of tr can handle 0s.) You can even fire off the tr command (or whatever) from within SQR with a "call system using" command. Hope this helps. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Jan 29 10:12:08 1997 Date: Wed, 29 Jan 1997 09:55:13 -0500 From: Larry Young Subject: decimal point Quick question. Is there a way, other than hard coding, to use the percent sign as an edit format character? In the print section of my book, it has 'Decimal point' in the description but does not show the character mask. I've tried using the decimal symbol in edit and it does not work. From owner-sqr-users@USA.NET Wed Jan 29 11:42:29 1997 Date: Wed, 29 Jan 1997 11:01:46 -0500 From: Brenda Sherwood Subject: WANT TO LEARN PEOPLESOFT? WANT TO LEARN PEOPLESOFT?????? We publish a weekly email report called "PeopleSoft Opportunities" that highlights current permanent and contract PeopleSoft positions in the marketplace. If you would like to subscribe to this report, send an email with the message "SUBSCRIBE PS_OPS " to brendas@mindspring.com and we will add you to our list. On occasion we have opportunities for SQR programmers in a PeopleSoft environment where PeopleSoft knowledge is not necessary. I currently have two positions for strong SQR programmers that will give you the opportunity to learn PeopleSoft and will significantly raise your marketability as a programmer. They are: GA - MB1002 - ATLANTA, GEORGIA Position: PeopleSoft Programmer (2) Type: Permanent Start Date: ASAP Duration: Permanent DESCRIPTION: 2 PeopleSoft Programmers needed with experience in PeopleSoft HR/Payroll or Financials with strong SQR experience. Will consider a strong SQR person w/o PeopleSoft as long as they have full life-cycle, client-server development experience. High base salary with great bonus structure. Wonderful benefits. Relocation package available. FL - RB1000 - GAINESVILLE, FLORIDA Position: PeopleSoft SQR Programmer Type: Consulting Start Date: ASAP Duration: 2 months DESCRIPTION: Strong SQR programmer required for PeopleSoft HR implementation. Does not require PeopleSoft experience. Local candidates preferred. Travel is not paid for. If you are interested in discussing either of these positions, please email or fax your resume to us along with the job code of the job(s) you are interested in, your desired salary or hourly rate, the date you are available, and your desired locations. Brenda S. Sherwood Magellan Consulting, Inc. 8046 Roswell Road Suite 101 Atlanta, GA 30350-3930 Phone/Fax: 770-998-2703 Alternate Phone/Fax: 770-993-5739 brendas@mindspring.com From owner-sqr-users@USA.NET Wed Jan 29 12:18:26 1997 Date: Wed, 29 Jan 1997 17:38:52 +0100 From: "Stephane Rognon (ok)" Subject: Re: Encode <0> Thanks for your help Nathan. Is there a easy way to do the replace job using Windows NT ? >-----Original Message----- >From: Nathan Treadway [SMTP:nathant@ONTKO.COM] >Sent: mercredi 29 janvier 1997 14:48 >To: Multiple recipients of list SQR-USERS >Subject: Re: Encode <0> > >> My source code is : >> begin-report >> encode '<0>' into $pp >> print $pp (,) >> end-report >> >> Do I make a mistake ? >> Is there another way to put '<0>' into my output file ? >> > >No, you are doing the right thing, but it won't work. > >The problem is that SQR uses 0-terminated strings internally. So, when you >encode a 0, the string handling routines treat that as an end-of-string >marker and truncate the string at that point. > >I know of two work-arounds for this problem. One is to write an external >routine that does what you need and then link that into SQR. (See UCALL and >UFUNC in the SQR manual for more information.) > >The other is to choose some other character to act as a placeholder and then >run a filter on the output file after SQR writes it. For example, you could >output a # where ever you needed a 0, and then run (on Unix) something like >"tr '#' '\0'" on the output file. (Note that not all version of tr can >handle 0s.) You can even fire off the tr command (or whatever) from within >SQR with a "call system using" command. > >Hope this helps. > > Nathan > > >---------------------------------------------------------------------------- >Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) >nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Jan 29 15:30:46 1997 Date: Wed, 29 Jan 1997 11:02:52 -0800 From: Angel Guzman Subject: faster select Which of these selects would be more efficient/faster in comparing data from two different databases? from tt_shop where department = $dept and shop in (select master-shop from ldsloc.dbo.tt_shop) ! and exists (select master-shop from ldsloc.dbo.tt_shop ! where master-shop = shop) order by department, division, branch, shop Angel From owner-sqr-users@USA.NET Wed Jan 29 15:35:43 1997 Date: Wed, 29 Jan 1997 14:52:43 -0500 From: Pat Cherundolo Subject: Re: WANT TO LEARN PEOPLESOFT? ------ =_NextPart_000_01BC0DF4.18B30CE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Brenda, Jim has me set up with a verbal interview in an hour. If it doesn't work out, keep me in mind for Gainesville. I'll let you know later. Thanks for everything. You PeopleSoft are very nice. ---------- From: Brenda Sherwood[SMTP:brendas@MINDSPRING.COM] Sent: Wednesday, January 29, 1997 11:01 AM To: Multiple recipients of list SQR-USERS Subject: WANT TO LEARN PEOPLESOFT? WANT TO LEARN PEOPLESOFT?????? We publish a weekly email report called "PeopleSoft Opportunities" that highlights current permanent and contract PeopleSoft positions in the marketplace. If you would like to subscribe to this report, send an email with the message "SUBSCRIBE PS_OPS " to brendas@mindspring.com and we will add you to our list. On occasion we have opportunities for SQR programmers in a PeopleSoft environment where PeopleSoft knowledge is not necessary. I currently have two positions for strong SQR programmers that will give you the opportunity to learn PeopleSoft and will significantly raise your marketability as a programmer. They are: GA - MB1002 - ATLANTA, GEORGIA Position: PeopleSoft Programmer (2) Type: Permanent Start Date: ASAP Duration: Permanent DESCRIPTION: 2 PeopleSoft Programmers needed with experience in PeopleSoft HR/Payroll or Financials with strong SQR experience. Will consider a strong SQR person w/o PeopleSoft as long as they have full life-cycle, client-server development experience. High base salary with great bonus structure. Wonderful benefits. Relocation package available. FL - RB1000 - GAINESVILLE, FLORIDA Position: PeopleSoft SQR Programmer Type: Consulting Start Date: ASAP Duration: 2 months DESCRIPTION: Strong SQR programmer required for PeopleSoft HR implementation. Does not require PeopleSoft experience. Local candidates preferred. Travel is not paid for. If you are interested in discussing either of these positions, please email or fax your resume to us along with the job code of the job(s) you are interested in, your desired salary or hourly rate, the date you are available, and your desired locations. Brenda S. Sherwood Magellan Consulting, Inc. 8046 Roswell Road Suite 101 Atlanta, GA 30350-3930 Phone/Fax: 770-998-2703 Alternate Phone/Fax: 770-993-5739 brendas@mindspring.com ------ =_NextPart_000_01BC0DF4.18B30CE0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IjETAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBJAG ABABAAABAAAADAAAAAMAADADAAAACwAPDgAAAAACAf8PAQAAAEEAAAAAAAAAgSsfpL6jEBmdbgDd AQ9UAgAAAABTUVItVVNFUlNAVVNBLk5FVABTTVRQAFNRUi1VU0VSU0BVU0EuTkVUAAAAAB4AAjAB AAAABQAAAFNNVFAAAAAAHgADMAEAAAASAAAAU1FSLVVTRVJTQFVTQS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IiAzHCA18DAtMznMwKAWIeAlMMwvRrlwqFE3N80APCDo OC0yzqAzy4ZBAASRh8GCzdnOlDMtNTfNIH9hX2JqSR9KL0s8CoUYEQAB11AAAwAQEAAAAAADABEQ AAAAAEAABzAAZi7cHQ68AUAACDAAZi7cHQ68AR4APQABAAAABQAAAFJFOiAAAAAARts= ------ =_NextPart_000_01BC0DF4.18B30CE0-- From owner-sqr-users@USA.NET Wed Jan 29 16:10:04 1997 Date: Wed, 29 Jan 1997 15:48:31 -0500 From: Scott McCann Subject: Getting current setting of columns per page Is there a reserved variable name, or any way to extract what the current number of columns are set to for a report? I want to develop a generic heading routine for all reports to look extactly the same and need to position some text X characters from the right side of the page. The declare-report in any of these reports could be using any number of pre-defined layouts. Thanks in advance, --_ Scott _-- From owner-sqr-users@USA.NET Wed Jan 29 17:37:39 1997 Date: Wed, 29 Jan 1997 07:24:36 -0800 From: John Kellogg Subject: Re: SQR3 problem A company called TUSC (The Ultimate Software Company) wrote an RPT to SQR conversion tool several years ago. Contact them at 708-960-2909 to see if it is still available. John L. Kellogg Semech@POBOX.COM wrote: > > Hi, > > Do you know about convertor from RPT (old oracle report writer) to SQR ? > And maybe about PL/1 to SQR ? > > Thanks in advance, > Arnon Oppenheimer > ------------------------------------- > Semech Software Marketing LTD. > > Phone : 972-3-5333144 > Fax : 972-3-5333132 > Email : semech@pobox.com > > Date: 29/1/97 > Time: 09:14:40 AM > ------------------------------------- From owner-sqr-users@USA.NET Wed Jan 29 18:03:18 1997 Date: Wed, 29 Jan 1997 16:27:44 -0500 From: Lynn Francis Subject: faster select -Reply Generally the "exists" format is preferable since the subquery simply needs to find on row to qualify the statement as 'TRUE' . Lynn Francis American Bankers Association >>> Angel Guzman 01/29/97 02:02pm >>> Which of these selects would be more efficient/faster in comparing data from two different databases? from tt_shop where department = $dept and shop in (select master-shop from ldsloc.dbo.tt_shop) ! and exists (select master-shop from ldsloc.dbo.tt_shop ! where master-shop = shop) order by department, division, branch, shop Angel From owner-sqr-users@USA.NET Wed Jan 29 19:12:54 1997 Date: Wed, 29 Jan 1997 15:46:00 -0700 From: "Butterfield, Bruce - Brmfld" Subject: Re: SQR3 problem Yes it is still available Bruce A. Butterfield TUSC consultant ---------- From: John Kellogg To: Multiple recipients of list SQR-USERS Subject: Re: SQR3 problem Date: Wednesday, January 29, 1997 8:24AM A company called TUSC (The Ultimate Software Company) wrote an RPT to SQR conversion tool several years ago. Contact them at 708-960-2909 to see if it is still available. John L. Kellogg Semech@POBOX.COM wrote: > > Hi, > > Do you know about convertor from RPT (old oracle report writer) to SQR ? > And maybe about PL/1 to SQR ? > > Thanks in advance, > Arnon Oppenheimer > ------------------------------------- > Semech Software Marketing LTD. > > Phone : 972-3-5333144 > Fax : 972-3-5333132 > Email : semech@pobox.com > > Date: 29/1/97 > Time: 09:14:40 AM > ------------------------------------- From owner-sqr-users@USA.NET Wed Jan 29 21:01:55 1997 Date: Wed, 29 Jan 1997 19:16:27 -0500 From: Louisa L Tripp Subject: Re: faster select the "in" statement as written is slower, but I'm not sure what happens if you add the "where master-shop = shop" to the "in" subquery. Louisa Tripp Norwich University SysMan/Prog/NWMan/DBA On Wed, 29 Jan 1997, Angel Guzman wrote: > Which of these selects would be more efficient/faster in comparing > data from two different databases? > > from tt_shop > where department = $dept > and shop in (select master-shop from ldsloc.dbo.tt_shop) > ! and exists (select master-shop from ldsloc.dbo.tt_shop > ! where master-shop = shop) > order by department, division, branch, shop > > Angel > From owner-sqr-users@USA.NET Thu Jan 30 00:01:31 1997 Date: Wed, 29 Jan 1997 21:36:10 -0600 From: wesb@HENDRIX.USA.NET Subject: Re: faster select Angel, The IN is definitely the slower of the 2 selects. Another solution to your problem which might be faster is to choose the sub-query as your driving select, and use an SQR procedure for the outer select, as illustrated below. -------------------------------------------------- begin-select DISTINCT master-shop move &master-shop to $master-shop do shop_stuff($master-shop) from ldsloc.dbo.tt_shop .... end-select begin-procedure shop_stuff($shop) begin-select shop ... from tt_shop where shop = $shop .... end-select end-procedure !shop_stuff -------------------------------------------------- I always thought 2 seperate selects done in this way is faster than using a subquery. Perhaps I am wrong? Anyone have any thoughts on this? Wes Bailey Associate Consultant Coopers & Lybrand Consulting 1100 Louisiana St., Suite 4100 Houston, TX 77002 From owner-sqr-users@USA.NET Thu Jan 30 05:44:36 1997 Date: Thu, 30 Jan 1997 11:22:37 +0100 From: "Mansfeld, Fredrik" Subject: Re: Getting current setting of columns per page Hi, I have solved that problem by using the #define statement. I have a couple of general files with such things as headers and footers and other things that the users feels must look the same on every report. I #include those files in all my reports, but before the #include statement I make sure to #define all constants needed, preferably in a file for it self. So the beginning of my reports could look something like this (very much lika a C-file, I know): #include 'MyDefine.dat' #include 'GenHead.dat' #include 'GenFoot.dat' #include 'GenProc.dat' In the MyDefine.dat I have a line that might look like this: #define Columns 120 And in GenHead.dat you find this: Page-Size {Lines} {Columns} This works fine with me. Regards, Fredrik > ---------- > From: Discussion of MITI's SQR database reporting > language[SMTP:SQR-USERS@USA.NET] on behalf of Scott > McCann[SMTP:smccann@IONLINE.NET] > Sent: den 29 januari 1997 21:48 > To: Multiple recipients of list SQR-USERS > Subject: Getting current setting of columns per page > > Is there a reserved variable name, or any way to extract what the > current > number of columns are set to for a report? > > I want to develop a generic heading routine for all reports to look > extactly the same and need to position some text X characters from the > right side of the page. The declare-report in any of these reports > could > be using any number of pre-defined layouts. > > Thanks in advance, > > --_ Scott _-- > From owner-sqr-users@USA.NET Thu Jan 30 11:12:02 1997 Date: Wed, 29 Jan 1997 15:00:11 -0800 From: John Kellogg Subject: Re: Getting current setting of columns per page Scott, You should probably by using a #define variable in each of the layouts so that you can refer to it when printing the text. For example: Include file layout1.inc ------------------------ #define maxcols 75 declare-layout default max-columns = {maxcols} SQR Program ----------- #include begin-setup include 'layout1.inc' end-setup begin-program let #print_position = {maxcols} - 10 print ... John L. Kellogg Scott McCann wrote: > > Is there a reserved variable name, or any way to extract what the current > number of columns are set to for a report? > > I want to develop a generic heading routine for all reports to look > extactly the same and need to position some text X characters from the > right side of the page. The declare-report in any of these reports could > be using any number of pre-defined layouts. > > Thanks in advance, > > --_ Scott _-- From owner-sqr-users@USA.NET Thu Jan 30 14:19:48 1997 Date: Thu, 30 Jan 1997 13:58:05 -0500 From: Toni Iacobo 617-441-2364 Subject: Converting to Local Date-Time Zones on VAX/OpenVMS Hello, I am writing Customer Usage reports for customers in the US, UK, Canada, and Australia. (This list could be expanded in the future.) Our accounting files record event data in the time of the US Eastern time zone. I would like to convert this time into the local time of the customer. We are using SQR on VMS and Sybase. Does anyone know of any resources or have suggestions for handling this? I've seen a set of "time zone" functions on HP-UNIX. They have all the time rules and zone definitions and a "zone" compiler. By setting the appropriate TZ environment variable, you can use the standard C time functions (gmtime, localtime, asctime, etc.) to convert the time. My plan is to try and write a UFUNC function using VAX system routines and logicals to do the same once I find VAX documentation on their time zone rules format and time system services. Does anyone have other suggestions or comments or have tackled this problem before with SQR on the VAX? or know of where this can be found? Thanks in advance for any help, Toni Toni Iacobo Information Access Co. toni_iacobo@iacnet.com From owner-sqr-users@USA.NET Thu Jan 30 17:22:51 1997 Date: Thu, 30 Jan 1997 13:48:49 -0500 From: Shawn Dunn Subject: Duplex printing From owner-sqr-users@USA.NET Fri Jan 31 01:04:02 1997 Date: Fri, 31 Jan 1997 12:07:44 +0800 From: Raymond Yip Subject: composite key in lookup How can I define a composite key in the load-lookup command? Raymond Yip MTRC Hong Kong From owner-sqr-users@USA.NET Fri Jan 31 04:23:01 1997 Date: Fri, 31 Jan 1997 00:18:37 -0600 From: hendrix!wesb@UUNET.UU.NET Subject: Re: composite key in lookup Raymond, Just string together the columns which makeup the composite key: -------------------------------------------------- load-lookup name=salary_lookup table=s_emp key=emp_id||project_id return_value=salary where=salary < 1000000 .... begin-select a.emp_id||b.project_id &key move &key to $key lookup salary_lookup $return_value $key from table1 a , table2 b .... end-select -------------------------------------------------- Wes Bailey Associate Consultant Coopers & Lybrand Consulting 1100 Louisiana St., Suite 4100 Houston, TX 77002 From owner-sqr-users@USA.NET Fri Jan 31 14:03:23 1997 Date: Fri, 31 Jan 1997 10:14:46 -0500 From: Shawn Dunn Subject: Duplex printing From owner-sqr-users@USA.NET Fri Jan 31 14:13:12 1997 Date: Fri, 31 Jan 1997 11:27:00 -0700 From: "Butterfield, Bruce - Brmfld" Subject: Sqr Help Hi Ya'all I have an issue I hope someone may have seen before. We are using SQR v 3.0.5 on a HP server with Oracle v 7. All the output documents are setup for postscript. my problem: at random times when printing out I get the following error : ERROR: undefined OFFENDING COMMAND: @PJL STACK: This error may or not appear when printing out several copies of the same report. We may get the error when printing out an invoice and when the same invoice is printed again it may print ok. We are requesting the latest version of SQR for UNIX but I was hoping for a work-around . bruce From owner-sqr-users@USA.NET Fri Jan 31 15:52:43 1997 Date: Fri, 31 Jan 1997 14:34:02 -0500 From: Shawn Dunn Subject: Duplex printing? Hi All, Sorry about the blank messages - the mail server choked on the text. Anyway, I'll try again - Has anyone had any luck printing duplex forms from within SQR? We're trying to print some loan notes and have the forms designed (both front and back), but can't seem to get the duplex unit to work correctly for this particular application. The printer is an HP 4si and the duplex unit IS working - if I manually change the duplex mode to ON through the control panel, but we don't want to have duplex on all the time. The post script command that I'm using is &l1S to print duplex. I've tried a couple of other things that haven't worked, also. Any ideas? TIA Shawn ------------------------------- Shawn Dunn - SDUNN@MIT.EDU Analyst/Programmer III - MIT Bursar's Office, Cambridge, MA http://web.mit.edu/sdunn/www/ From owner-sqr-users@USA.NET Fri Jan 31 19:11:01 1997 Date: Fri, 31 Jan 1997 18:52:27 -0500 From: Ray Ontko Subject: Re: Duplex printing? > Has anyone had any luck printing duplex forms from within SQR? > > We're trying to print some loan notes and have the forms designed (both > front and back), but can't seem to get the duplex unit to work correctly for > this particular application. > > The printer is an HP 4si and the duplex unit IS working - if I manually > change the duplex mode to ON through the control panel, but we don't want > to have duplex on all the time. > > The post script command that I'm using is &l1S to print duplex. I've tried a > couple of other things that haven't worked, also. > > Any ideas? Shawn, I'm not sure about this, but are you using PRINT-DIRECT to send the command to the printer? Is it preceded by an escape character? You may need to use the ENCODE command to get an escape character onto the front of the escape sequence. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Sun Feb 2 08:26:18 1997 Date: Sun, 2 Feb 1997 08:11:51 -0500 From: "Mark W. Salem" Subject: Numeric Money Conversion to Words Help! I am in desperate need of a solution to converting a numeric money field into its word equivilent; e.g., $1,652.97 --> One thousand - six hundred - fifty - two and 97/100 I am using Oracle on a Unix server with a Window's 95 client... Any suggestions? From owner-sqr-users@USA.NET Sun Feb 2 17:31:43 1997 Date: Mon, 3 Feb 1997 09:10:50 +1100 From: "Xavier K. Lau" Subject: Re: Sqr Help Hi Bruce, you message did not coome through at all ( or maybe my mail server is having some problem ) , do you mind sendind that out again please !! thanks !! -- Xavier K. Lau MITI Asia Pacific Technical Support Engineer E-Mail : xavier.lau@miti.com.au OR support@miti.com.au From owner-sqr-users@USA.NET Sun Feb 2 18:37:30 1997 Date: Sun, 2 Feb 1997 18:19:14 -0500 From: "Mark W. Salem" Subject: Re: Sqr Help Thanks for responding. Here is my question: Help! I am in desperate need of a solution to converting a numeric money field into its word equivilent; e.g., $1,652.97 --> One thousand - six hundred - fifty - two and 97/100 I am using Oracle on a Unix server with a Window's 95 client... Any suggestions? From owner-sqr-users@USA.NET Mon Feb 3 11:29:13 1997 Date: Mon, 3 Feb 1997 10:16:44 -0500 From: Lynn Francis Subject: Re: Sqr Help -Reply You can design two tables to designate first: the alpha equivalents of the digits and secondly the positional multipliers (million, thousand, hundred, etc.) Lynn Francis American Bankers Association >>> "Mark W. Salem" 02/02/97 06:19pm >>> Thanks for responding. Here is my question: Help! I am in desperate need of a solution to converting a numeric money field into its word equivilent; e.g., $1,652.97 --> One thousand - six hundred - fifty - two and 97/100 I am using Oracle on a Unix server with a Window's 95 client... Any suggestions? From owner-sqr-users@USA.NET Mon Feb 3 14:12:23 1997 Date: Mon, 3 Feb 1997 18:35:34 PST From: Semech@POBOX.COM Subject: Re: Numeric Money Conversion to Words Look on spell.inc and ex19a.sqr in the SQR 3 Tutorial ! (ex17a.sqr in SQR 4) Arnon ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 3/2/97 Time: 06:35:34 PM ------------------------------------- --- On Sun, 2 Feb 1997 08:11:51 -0500 "Mark W. Salem" wrote: >Help! I am in desperate need of a solution to converting a numeric money >field into its word equivilent; e.g., $1,652.97 --> One thousand - six >hundred - fifty - two and 97/100 > >I am using Oracle on a Unix server with a Window's 95 client... > >Any suggestions? > -----------------End of Original Message----------------- From owner-sqr-users@USA.NET Mon Feb 3 14:19:04 1997 Date: Mon, 3 Feb 1997 11:57:54 -0500 From: Shawn Dunn Subject: Re: Duplex printing? Ray, This is the code that I'm using: encode '<27>&l1S' into $duplex print $duplex (,+1) If I use the print command at the beginning of the program only, I get the output of page 2 written over page 1. If I use the print command at the beginning of the program and where the second page of output starts, I get 2 seperate pages of output. Any other ideas? TIA. Shawn >> Has anyone had any luck printing duplex forms from within SQR? > >I'm not sure about this, but are you using PRINT-DIRECT to send >the command to the printer? Is it preceded by an escape character? >You may need to use the ENCODE command to get an escape character >onto the front of the escape sequence. > >Ray ------------------------------- Shawn Dunn - SDUNN@MIT.EDU Analyst/Programmer III - MIT Bursar's Office, Cambridge, MA http://web.mit.edu/sdunn/www/ From owner-sqr-users@USA.NET Mon Feb 3 14:23:49 1997 Date: Mon, 3 Feb 1997 07:42:04 -0800 From: John Kellogg Subject: Re: Numeric Money Conversion to Words Mark, There is an example in chapter 19 of the SQR3 Language Tutorial. The sample program spell.inc is in the tutorial directory if you have it. If not, here it is: John L. Kellogg SQRiBE Technologies Support Manager ! SPELL.INC 10/23/95 ! ! Copyright (C) 1995, 1996 MITI All Worldwide Rights Reserved ! ! Disclaimer ! ! This program is provided as an example and, while it is thought to be free ! from defect, MITI makes no representations or warranties, either ! expressed or implied, with respect to the adequacy of the program in regard ! to merchantability or fitness for any particular result. The program is ! provided "as is" and the entire risk as to quality and performance is with ! the buyer. In no event shall MITI be liable for special, direct, ! indirect or consequential damages resulting from any defect in this program. ! Some states do not allow the exclusion or limitations of implied warranties ! or liability for incidental or consequential damages, in which case the ! above limitations and exclusions may not apply to you. ! !*************************************************************************** ! ! Modification History: ! ! Date Eng Description ! -------- --- ------------------------------------------------------------ ! (_V3.5.3_) ! 10-23-95 LHS (DEV-4039) ! o Incorporate into V3.5 codeline ! (_V3.5.4_) ! 04-03-96 PAB (DEV-4088) ! o Cleaned up the modification history. ! (_V4.0_) ! 06-04-96 AIK (1355) ! o Incorporate into V4.0 codeline. ! (_EOH_) !*************************************************************************** begin-procedure spell_number(#num,:$str) let $str = '' ! break the number to it's 3-digit parts let #trillions = floor(#num / 1000000000000) let #billions = mod(floor(#num / 1000000000),1000) let #millions = mod(floor(#num / 1000000),1000) let #thousands = mod(floor(#num / 1000),1000) let #ones = mod(floor(#num),1000) ! spell each 3-digit part do spell_3digit(#trillions,'trillion',$str) do spell_3digit(#billions,'billion',$str) do spell_3digit(#millions,'million',$str) do spell_3digit(#thousands,'thousand',$str) do spell_3digit(#ones,'',$str) end-procedure ! spell_number begin-procedure spell_3digit(#num,$part_name,:$str) let #hundreds = floor(#num / 100) let #rest = mod(#num,100) if #hundreds do spell_digit(#hundreds,$str) concat 'hundred ' with $str end-if if #rest do spell_2digit(#rest,$str) end-if if #hundreds or #rest if $part_name != '' concat $part_name with $str concat ' ' with $str end-if end-if end-procedure ! spell_3digit begin-procedure spell_2digit(#num,:$str) let #tens = floor(#num / 10) let #ones = mod(#num,10) if #num < 20 and #num > 9 evaluate #num when = 10 concat 'ten ' with $str break when = 11 concat 'eleven ' with $str break when = 12 concat 'twelve ' with $str break when = 13 concat 'thirteen ' with $str break when = 14 concat 'fourteen ' with $str break when = 15 concat 'fifteen ' with $str break when = 16 concat 'sixteen ' with $str break when = 17 concat 'seventeen ' with $str break when = 18 concat 'eighteen ' with $str break when = 19 concat 'nineteen ' with $str break end-evaluate else evaluate #tens when = 2 concat 'twenty' with $str break when = 3 concat 'thirty' with $str break when = 4 concat 'forty' with $str break when = 5 concat 'fifty' with $str break when = 6 concat 'sixty' with $str break when = 7 concat 'seventy' with $str break when = 8 concat 'eighty' with $str break when = 9 concat 'ninety' with $str break end-evaluate if #num > 20 if #ones concat '-' with $str else concat ' ' with $str end-if end-if if #ones do spell_digit(#ones,$str) end-if end-if end-procedure ! spell_2digit begin-procedure spell_digit(#num,:$str) evaluate #num when = 1 concat 'one ' with $str break when = 2 concat 'two ' with $str break when = 3 concat 'three ' with $str break when = 4 concat 'four ' with $str break when = 5 concat 'five ' with $str break when = 6 concat 'six ' with $str break when = 7 concat 'seven ' with $str break when = 8 concat 'eight ' with $str break when = 9 concat 'nine ' with $str break end-evaluate end-procedure ! spell_digit Mark W. Salem wrote: > > Help! I am in desperate need of a solution to converting a numeric money > field into its word equivilent; e.g., $1,652.97 --> One thousand - six > hundred - fifty - two and 97/100 > > I am using Oracle on a Unix server with a Window's 95 client... > > Any suggestions? From owner-sqr-users@USA.NET Mon Feb 3 16:06:06 1997 Date: Mon, 3 Feb 1997 11:33:26 -0600 From: TOM CHAPIN Subject: Re: Sqr Help (money to words) Cc: attmail!tjchapin (TOM CHAPIN) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii If you have access to the book "The AWK Programming Language" by Alfred V. Aho, Brian W. Kernighan, and Peter J. Weinberger [Addison- Wesley, 1988], section 3.1, page 75 contains an awk script to convert money to words for a check-writing application. I would expect the algorithm could be converted to other languages if desired. Tom Chapin On Feb 2, 6:19pm, Mark W. Salem wrote: > Subject: Re: Sqr Help > Thanks for responding. Here is my question: > > Help! I am in desperate need of a solution to converting a numeric > money field into its word equivilent; e.g., > $1,652.97 --> One thousand - six hundred - fifty - two and 97/100 > > I am using Oracle on a Unix server with a Window's 95 client... > > Any suggestions? > >-- End of excerpt from Mark W. Salem -- Tom Chapin - attmail!tjchapin = tjchapin@mail.att.net - 314-519-5576 From owner-sqr-users@USA.NET Mon Feb 3 18:06:42 1997 Date: Mon, 3 Feb 1997 14:44:31 -0500 From: Finbar Crean Subject: Training Dear SQR User, We are a SQRIBE certified training partne, and we will be running classes in the Boston area the week of March 17th. and April 21st, and we can also work to your schedule. We limit classes to four participants for greater effectivness. If you are interested in attending, please send an e-mail with contact information. Sincerely, Finbar Crean IDFM, Inc. 131 Middlesex Turnpike, Burlington, MA 01803 (617) 229-7771 x 312 From owner-sqr-users@USA.NET Mon Feb 3 18:11:19 1997 Date: Mon, 3 Feb 1997 10:29:08 -0800 From: Gadi Yedwab Subject: Re: Numeric Money Conversion to Words This is a multi-part message in MIME format. ------=_NextPart_000_01BC11BD.168A8840 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mark, The code to do exactly that is provided with the SQR3 Language Tutorial book from SQRIBE Technology (formerly MITI, the maker of SQR) see chapter 19. Same is also in the SQR Version 4 User's Guide. The code is also attached here. Gadi Yedwab Chief Technology Officer SQRIBE Technologies gadi@sqribe.com ------=_NextPart_000_01BC11BD.168A8840 Content-Type: application/octet-stream; name="Spell.inc" Content-Transfer-Encoding: quoted-printable Content-Description: Spell.inc (INC File) Content-Disposition: attachment; filename="Spell.inc" ! SPELL.INC 10/23/95 =20 ! ! Copyright (C) 1995, 1996 MITI All Worldwide Rights Reserved ! ! Disclaimer ! ! This program is provided as an example and, while it is thought to be = free ! from defect, MITI makes no representations or warranties, either ! expressed or implied, with respect to the adequacy of the program in = regard ! to merchantability or fitness for any particular result. The program = is ! provided "as is" and the entire risk as to quality and performance is = with ! the buyer. In no event shall MITI be liable for special, direct, ! indirect or consequential damages resulting from any defect in this = program. ! Some states do not allow the exclusion or limitations of implied = warranties ! or liability for incidental or consequential damages, in which case = the ! above limitations and exclusions may not apply to you. ! !************************************************************************= *** ! ! Modification History: ! ! Date Eng Description ! -------- --- = ------------------------------------------------------------ ! (_V3.5.3_) ! 10-23-95 LHS (DEV-4039) ! o Incorporate into V3.5 codeline ! (_V3.5.4_) ! 04-03-96 PAB (DEV-4088) ! o Cleaned up the modification history. ! (_V4.0_) =20 ! 06-04-96 AIK (1355) ! o Incorporate into V4.0 codeline. ! (_EOH_) !************************************************************************= *** begin-procedure spell_number(#num,:$str) let $str =3D '' ! break the number to it's 3-digit parts let #trillions =3D floor(#num / 1000000000000) let #billions =3D mod(floor(#num / 1000000000),1000) let #millions =3D mod(floor(#num / 1000000),1000) let #thousands =3D mod(floor(#num / 1000),1000) let #ones =3D mod(floor(#num),1000) ! spell each 3-digit part do spell_3digit(#trillions,'trillion',$str) do spell_3digit(#billions,'billion',$str) do spell_3digit(#millions,'million',$str) do spell_3digit(#thousands,'thousand',$str) do spell_3digit(#ones,'',$str) end-procedure ! spell_number begin-procedure spell_3digit(#num,$part_name,:$str) let #hundreds =3D floor(#num / 100) let #rest =3D mod(#num,100) if #hundreds do spell_digit(#hundreds,$str) concat 'hundred ' with $str end-if if #rest do spell_2digit(#rest,$str) end-if if #hundreds or #rest if $part_name !=3D '' concat $part_name with $str concat ' ' with $str end-if end-if end-procedure ! spell_3digit begin-procedure spell_2digit(#num,:$str) let #tens =3D floor(#num / 10) let #ones =3D mod(#num,10) if #num < 20 and #num > 9 evaluate #num when =3D 10 concat 'ten ' with $str break when =3D 11 concat 'eleven ' with $str break when =3D 12 concat 'twelve ' with $str break =20 when =3D 13 concat 'thirteen ' with $str break when =3D 14 concat 'fourteen ' with $str break when =3D 15 concat 'fifteen ' with $str break when =3D 16 concat 'sixteen ' with $str break when =3D 17 concat 'seventeen ' with $str break when =3D 18 concat 'eighteen ' with $str break when =3D 19 concat 'nineteen ' with $str break end-evaluate else evaluate #tens when =3D 2 concat 'twenty' with $str break when =3D 3 concat 'thirty' with $str break when =3D 4 concat 'forty' with $str break when =3D 5 concat 'fifty' with $str break when =3D 6 concat 'sixty' with $str break when =3D 7 concat 'seventy' with $str break when =3D 8 concat 'eighty' with $str break when =3D 9 concat 'ninety' with $str break end-evaluate if #num > 20 if #ones concat '-' with $str else concat ' ' with $str end-if end-if if #ones do spell_digit(#ones,$str) end-if end-if end-procedure ! spell_2digit begin-procedure spell_digit(#num,:$str) evaluate #num when =3D 1 concat 'one ' with $str break when =3D 2 concat 'two ' with $str break when =3D 3 concat 'three ' with $str break when =3D 4 concat 'four ' with $str break when =3D 5 concat 'five ' with $str break when =3D 6 concat 'six ' with $str break when =3D 7 concat 'seven ' with $str break when =3D 8 concat 'eight ' with $str break when =3D 9 concat 'nine ' with $str break end-evaluate end-procedure ! spell_digit ------=_NextPart_000_01BC11BD.168A8840-- From owner-sqr-users@USA.NET Mon Feb 3 21:24:31 1997 Date: Mon, 3 Feb 1997 15:15:00 -0800 From: Tai Luong Subject: Re Comparing array element Hi all, Would somebody tell me how to compare an array element with a variable. I have created and loaded the following array, but when I try to compare an array element with the following code SQR gives me an error. Any help will be greatly appreciated! Create-Array Name=camp_array Size=20 Field=camp_code:char:1 Field=camp_desc:char:20 Field=camp_cnt:number:3=0 move 0 to #j while camp_code(#j) not = $cmp_code and (#j < 19 ) add 1 to #arr_idx end-while if camp_code(#j) = $cmp_code array-add 1 2 3 to camp_array(#arr_idx) camp_cnt(0) camp_cnt(1) camp_cnt(2) end-if Tai Luong, Programmer/Analyst City College of San Francisco Voice: 415-452-5050 50 Phelan Avenue, room LB-2 Fax: 415-239-3919 San Francisco, CA 94112 E-mail: tluong@hills.ccsf.cc.ca.us From owner-sqr-users@USA.NET Tue Feb 4 03:02:04 1997 Date: Mon, 3 Feb 1997 19:26:23 -0600 From: Richard Watts Subject: faster select -Reply Hi Angel, I don't know what db your on, but if it is Oracle the answer is "it depends". Since the exists is a correlated sub-query it will be performed for every row of data returned in the main query, following a nested loop execution plan. This is similar to the solution offered earlier, using an SQR cursor based approach and looping through the main query and executing the secondary query, the only difference being where you spend your CPU. For large volume tables the looping approach will almost always be slower. If the list of master shops is shorter than the list of shops then I would implement the 'in' clause, which will cause a sort-join, retrieving a distinct list of master shops first then returning all shops that are master shops. If the second database is remote then there is only one call to it instead of many. >>> Angel Guzman 01/29/97 01:02pm >>> Which of these selects would be more efficient/faster in comparing data from two different databases? from tt_shop where department = $dept and shop in (select master-shop from ldsloc.dbo.tt_shop) ! and exists (select master-shop from ldsloc.dbo.tt_shop ! where master-shop = shop) order by department, division, branch, shop Angel From owner-sqr-users@USA.NET Tue Feb 4 11:31:07 1997 Date: Tue, 4 Feb 1997 14:06:04 +1100 From: "Xavier K. Lau" Subject: Re: Re Comparing array element Your problem lies in the way you have used "not" : > while camp_code(#j) not = $cmp_code and (#j < 19 ) > add 1 to #arr_idx > end-while This is an example that I have used : if not ( #true = #true ) print 'a' (2,1) end-if Also check the example at the bottom of p. 224 of user guide !! -- Xavier K. Lau SQRiBE Technologies Asia Pacific Technical Support Engineer E-Mail : xavier.lau@miti.com.au OR support@miti.com.au From owner-sqr-users@USA.NET Tue Feb 4 11:55:00 1997 Date: Mon, 3 Feb 1997 20:51:56 -0600 From: Richard Watts Subject: Re Comparing array element -Reply Hi Tai, I think your element variables are out of sync. You are incrementing a varaible (#arr_idx) that is not in your test for the while loop (#j). I know one of the ways we do this is the following: size={size} while #j < {size} if camp_code(#j) = $cmp_code array-add 1 2 3 to camp_array(#arr_idx) camp_cnt(0) camp_cnt(1) camp_cnt(2) let #j = {size} else add 1 to #j end-if end-while >>> Tai Luong 02/03/97 05:15pm >>> Hi all, Would somebody tell me how to compare an array element with a variable. I have created and loaded the following array, but when I try to compare an array element with the following code SQR gives me an error. Any help will be greatly appreciated! Create-Array Name=camp_array Size=20 Field=camp_code:char:1 Field=camp_desc:char:20 Field=camp_cnt:number:3=0 move 0 to #j while camp_code(#j) not = $cmp_code and (#j < 19 ) add 1 to #arr_idx end-while if camp_code(#j) = $cmp_code array-add 1 2 3 to camp_array(#arr_idx) camp_cnt(0) camp_cnt(1) camp_cnt(2) end-if Tai Luong, Programmer/Analyst City College of San Francisco Voice: 415-452-5050 50 Phelan Avenue, room LB-2 Fax: 415-239-3919 San Francisco, CA 94112 E-mail: tluong@hills.ccsf.cc.ca.us From owner-sqr-users@USA.NET Tue Feb 4 14:56:42 1997 Date: Tue, 4 Feb 1997 08:07:13 -0800 From: John Kellogg Subject: Re: Re Comparing array element Tai, You are only listing the array element and not the array name in the if statement. If should be like this: while camp_array.camp_code(#j) not = $cmp_code and (#j < 19 ) JLKellogg Tai Luong wrote: > > Hi all, > > Would somebody tell me how to compare an array element with a > variable. I have created and loaded the following array, but > when I try to compare an array element with the following code > SQR gives me an error. Any help will be greatly appreciated! > > Create-Array > Name=camp_array > Size=20 > Field=camp_code:char:1 > Field=camp_desc:char:20 > Field=camp_cnt:number:3=0 > > move 0 to #j > while camp_code(#j) not = $cmp_code and (#j < 19 ) > add 1 to #arr_idx > end-while > > if camp_code(#j) = $cmp_code > array-add 1 2 3 to camp_array(#arr_idx) > camp_cnt(0) camp_cnt(1) camp_cnt(2) > end-if > > Tai Luong, Programmer/Analyst > City College of San Francisco Voice: 415-452-5050 > 50 Phelan Avenue, room LB-2 Fax: 415-239-3919 > San Francisco, CA 94112 E-mail: tluong@hills.ccsf.cc.ca.us From owner-sqr-users@USA.NET Tue Feb 4 16:52:27 1997 Date: Tue, 4 Feb 1997 10:59:01 -0800 From: John Kellogg Subject: Re: Duplex printing? Have you tried the print-direct instead of print as Ray recommended in his reply. All of our HelpDesk cases mention that print-direct must be used. John L. Kellogg SQRiBE Technologies Support Manager Shawn Dunn wrote: > > Ray, > > This is the code that I'm using: > > encode '<27>&l1S' into $duplex > > print $duplex (,+1) > > If I use the print command at the beginning of the program only, I get the > output of page 2 written over page 1. > > If I use the print command at the beginning of the program and where the > second page of output starts, I get 2 seperate pages of output. > > Any other ideas? > > TIA. > > Shawn > > >> Has anyone had any luck printing duplex forms from within SQR? > > > >I'm not sure about this, but are you using PRINT-DIRECT to send > >the command to the printer? Is it preceded by an escape character? > >You may need to use the ENCODE command to get an escape character > >onto the front of the escape sequence. > > > >Ray > > ------------------------------- > Shawn Dunn - SDUNN@MIT.EDU > Analyst/Programmer III - MIT Bursar's Office, Cambridge, MA > http://web.mit.edu/sdunn/www/ From owner-sqr-users@USA.NET Tue Feb 4 17:01:41 1997 Date: Tue, 4 Feb 1997 14:48:37 -0500 From: Finbar Crean Subject: Boston Area Certified Training This is a multi-part message in MIME format. --------------380917866D1A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am enclosing the upcoming training schedule for the coming months for the Greater Boston Area from IDFM, Inc. Finbar Crean --------------380917866D1A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sqrtrain.txt" IDFM, Inc. Integrating Data For Management Our Vision - Delight Every Customer SQR Certified Training Schedule Held at our offices at 131 Middlesex Turnpike, Burlington, MA 01803 SQR For Programmers Part 1 Feb 17,18 Full March 17,18 April 21,22 May 19,20 SQR For Programmers Part 2 Feb 19,20 Full March 19,20 April 23,24 May 21,22 Pricing: $750 per student per class, includes materials. *Note: We will run a class to meet your schedule at our site for a minimum of 4 people or at your site for $1,500 per day for up to 6 people. Registration: e-mail your class dates and number of students to idfm@idfm.com or call us at (617) 229-7771x312 ask for Finbar Crean or fax us at (617) 229-8638. SQR Certified Training Course Outlines SQR For Programmers Part 1 I. Whirlwind Tour II. Piece-by-piece Building bloks of SQR Language III. More of the SQR Language IV. Topics in Reporting SQR For Programmers Part 2 I. In-memory Data Types (lookup/Array) II. Multiple Reporting III. Special Page Handling IV. Graphics and Charting v. Break Processing VI. Calling the Operating System VII. Writing to or Reading from Flat Lines VIII. Linking in (or with) 3GL's IX. Writing SQR from SQR X. The "-M" File and Default Program Limits XI. Specifying Compiler Directives XII. Special Purpose Commands XIII. Strategies --------------380917866D1A-- From owner-sqr-users@USA.NET Tue Feb 4 21:20:07 1997 Date: Tue, 4 Feb 1997 13:42:12 -0800 From: Tai Luong Subject: Re Comparing array element Thank you all for responding to may question about camparing array element. It turned out my real problem was array element indexing. All the responses gave me good example and John Kellog's is one I'm going to use. Thanks again! Tai. From owner-sqr-users@USA.NET Tue Feb 4 22:19:10 1997 Date: Tue, 4 Feb 1997 16:29:38 -0800 From: Tai Luong Subject: How to create a 3-dimensional array Hi, all I need your help to create a 3-demensional array with an example with appropriate element indexing. Any response will be greately appreciated! Tai Luong Programmer Analyst City College of San Francisco Voice: 415-452-5050 50 Phelan Avenue, room LB-2 Fax: 415-239-3919 San Francisco, CA 94112 E-mail: tluong@hills.ccsf.cc.ca.us From owner-sqr-users@USA.NET Tue Feb 4 23:21:05 1997 Date: Tue, 4 Feb 1997 20:18:09 -0500 From: Ed Crotty <73747.1247@COMPUSERVE.COM> Subject: Re: faster select Message text written by Louisa L Tripp >On Wed, 29 Jan 1997, Angel Guzman wrote: > Which of these selects would be more efficient/faster in comparing > data from two different databases? > > from tt_shop > where department = $dept > and shop in (select master-shop from ldsloc.dbo.tt_shop) > ! and exists (select master-shop from ldsloc.dbo.tt_shop > ! where master-shop = shop) > order by department, division, branch, shop > > Angel > < If the ldsloc.dbo.tt_shop table is indexed on master-shop the the exists wil be faster. A join between the two tables would likely be fastest. An exists clause is a "filter" which is the executed for each row of the "main" query. If this is an indexed query then it can be very efficient, especially if the number of rows in the "main" query is not enormous. If the number of rows in the main query is very large, then a join would be faster Ex: select a.* from table1 a , table2 b where a.key = b.key if the tables are not equivalent , say a.key is unique but b.key is not, in Oracle7 you can use an "inline view" in place of a table select a.* from table1 a, (select distinct key from table2) b where a.key = b.key Ed Crotty BALR Corporation Oak Brook IL (630)575-8200 From owner-sqr-users@USA.NET Wed Feb 5 00:55:55 1997 Date: Tue, 4 Feb 1997 22:11:01 -0500 From: "Mark W. Salem" Subject: Re: Numeric Money Conversion to Words Thank you very much!!! From owner-sqr-users@USA.NET Wed Feb 5 01:43:57 1997 Date: Tue, 4 Feb 1997 22:10:56 -0500 From: "Mark W. Salem" Subject: Re: Sqr Help -Reply thank you! From owner-sqr-users@USA.NET Wed Feb 5 01:50:49 1997 Date: Tue, 4 Feb 1997 23:05:56 -0500 From: "Mark W. Salem" Subject: Re: Numeric Money Conversion to Words Thank you very much! From owner-sqr-users@USA.NET Wed Feb 5 03:31:21 1997 Date: Wed, 5 Feb 1997 00:11:14 -0500 From: "Mark W. Salem" Subject: Re: Numeric Money Conversion to Words Thank you! From owner-sqr-users@USA.NET Wed Feb 5 08:36:38 1997 Date: Wed, 5 Feb 1997 08:08:00 -0500 From: Michael Docteroff Subject: Re: Boston Area Certified Training --Boundary (ID EEjplpHmpLz3gRZ2/3/9iw) Content-type: TEXT/PLAIN I am enclosing the upcoming training schedule for the coming months for the Greater Boston Area from IDFM, Inc. Finbar Crean --Boundary (ID EEjplpHmpLz3gRZ2/3/9iw) Content-type: TEXT/PLAIN Is anyone aware of any training for the SQR for PowerBuilder product. Michael A. Docteroff ______________________________ Reply Separator _________________________________ Subject: Boston Area Certified Training Author: idfm@IDFM.COM at GATEWAY Date: 2/4/97 2:48 PM IDFM, Inc. Integrating Data For Management Our Vision - Delight Every Customer SQR Certified Training Schedule Held at our offices at 131 Middlesex Turnpike, Burlington, MA 01803 SQR For Programmers Part 1 Feb 17,18 Full March 17,18 April 21,22 May 19,20 SQR For Programmers Part 2 Feb 19,20 Full March 19,20 April 23,24 May 21,22 Pricing: $750 per student per class, includes materials. *Note: We will run a class to meet your schedule at our site for a minimum of 4 people or at your site for $1,500 per day for up to 6 people. Registration: e-mail your class dates and number of students to idfm@idfm.com or call us at (617) 229-7771x312 ask for Finbar Crean or fax us at (617) 229-8638. SQR Certified Training Course Outlines SQR For Programmers Part 1 I. Whirlwind Tour II. Piece-by-piece Building bloks of SQR Language III. More of the SQR Language IV. Topics in Reporting SQR For Programmers Part 2 I. In-memory Data Types (lookup/Array) II. Multiple Reporting III. Special Page Handling IV. Graphics and Charting v. Break Processing VI. Calling the Operating System VII. Writing to or Reading from Flat Lines VIII. Linking in (or with) 3GL's IX. Writing SQR from SQR X. The "-M" File and Default Program Limits XI. Specifying Compiler Directives XII. Special Purpose Commands XIII. Strategies --Boundary (ID EEjplpHmpLz3gRZ2/3/9iw)-- From owner-sqr-users@USA.NET Wed Feb 5 11:48:40 1997 Date: Wed, 5 Feb 1997 10:38:24 -0500 From: Finbar Crean Subject: Consulting If you have any SQR consulting needs, please let us know. We have people who are skilled in client/server development in addition to SQR development. We are a certified training and consulting partner. Finbar Crean (617) 229-7771x312 From owner-sqr-users@USA.NET Wed Feb 5 21:45:10 1997 Date: Wed, 5 Feb 1997 16:48:00 -0500 From: Hall Jeri A Subject: Subtract Dates Hi! Trying to subtract two selected dates and display the result. Not having much luck. I tried using to_date and to_char. Any ideas are greatly appreciated. Jeri From owner-sqr-users@USA.NET Wed Feb 5 22:46:16 1997 Date: Wed, 5 Feb 1997 20:20:20 -0500 From: Shivakumar Rajagopal Subject: return status... I work on HP unix environment with Oracle7 and SQR 3.0. How do I check for the following statuses in SQR :- 1) record not found in SELECT 2) invalid write for INSERT (record already present) 3) invalid rewrite....for UPDATE (record does not exist) 4) invalid DELETE..... record does not exist I gather that #sql-status and ON-ERROR are for sql syntax only. So would appreciate how error handling can be achieved in SQR. my email is srajago774@aol.com Thanks shiv From owner-sqr-users@USA.NET Thu Feb 6 02:58:54 1997 Date: Wed, 5 Feb 1997 19:47:49 -0700 From: Surit Maharana Subject: Re: Subtract Dates You should be able to subtract in the select statement itself. The result comes in terms of days. Both the operands should be date-type, though. select to_date('06-feb-97') - to_date('05-feb-97') from dual; I suppose, you are using Oracle. Surit Maharana >---------- >From: Hall Jeri A[SMTP:HALLJA@SNYCOB.COBLESKILL.EDU] >Sent: Wednesday, February 05, 1997 2:48 PM >To: Multiple recipients of list SQR-USERS >Subject: Subtract Dates > >Hi! > >Trying to subtract two selected dates and display the result. Not >having >much luck. I tried using to_date and to_char. Any ideas are greatly >appreciated. > >Jeri > From owner-sqr-users@USA.NET Thu Feb 6 07:31:41 1997 Date: Thu, 6 Feb 1997 00:41:40 -0700 From: Surit Maharana Subject: Re: Numeric Money Conversion to Words (Oracle specific. Can be customized for others too) Hi Mark, Using Julian date format (J) and spell-out(SP) suffix of Oracle, any numeric money can be converted to words easily. You can play with 'j' and 'sp' to get required case also. Try the following in SQL*Plus. select decode(instr(amount,'.'),1,'ZERO',to_char(to_date(substr (amount,1,decode(instr(amount,'.'),0,length(amount), instr(amount,'.')-1)),'J'),'JSP'))||' AND '||decode(instr (amount,'.'),0,'00',substr(amount,instr(amount,'.')+1))||'/100' from dual / 150 one hundred fifty and 00/100 123001.25 One Hundred Twenty-Three Thousand One And 25/100 ..75 ZERO AND 75/100 Good Luck Surit Maharana surit@workmail.com PeopleSoft/Oracle DBA PS:- As it can be seen, the amount should be char-type. >---------- >From: Mark W. Salem[SMTP:MSALEM2306@AOL.COM] >Sent: Sunday, February 02, 1997 6:11 AM >To: Multiple recipients of list SQR-USERS >Subject: Numeric Money Conversion to Words > >Help! I am in desperate need of a solution to converting a numeric >money >field into its word equivilent; e.g., $1,652.97 --> One thousand - >six >hundred - fifty - two and 97/100 > >I am using Oracle on a Unix server with a Window's 95 client... > >Any suggestions? > From owner-sqr-users@USA.NET Thu Feb 6 08:20:36 1997 Date: Thu, 6 Feb 1997 07:16:32 -0500 From: Shivakumar Rajagopal Subject: Re: Subtract Dates If it is oracle7 then the following should work:- begin-select (date1 - date2) &datediff from dual end-select let me know what happened......shiv From owner-sqr-users@USA.NET Thu Feb 6 08:50:34 1997 Date: Thu, 6 Feb 1997 07:45:52 -0500 From: Ragunathan Sadasivam Subject: Re: return status... Hi Shiv, I am not sure if you are looking for Oracle Status. On SELECT the way we handle record not found is to set a variable $Found = 'N' before entering Begin-Select and set it to 'Y' within the SELECT and check if it 'Y' after end-select. If it is 'N' then it didn't find any record that matched the criteria. Ragu Sadasivam rsadasiv@mitre.org Example: begin-procedure get_Pct move 'N' to $Found begin-select maximum_pct_under/100 &maximum_pct_under move 'Y' to $Found from benefit_table a where emplid = $emplid end-select if $Found = 'N' move 0 to $maximum_pct_under else move &maximum_pct_under to $maximum_pct_under end-if end-procedure =================================================================== >I work on HP unix environment with Oracle7 and SQR 3.0. How do I check for >the following statuses in SQR :- > >1) record not found in SELECT >2) invalid write for INSERT (record already present) >3) invalid rewrite....for UPDATE (record does not exist) >4) invalid DELETE..... record does not exist > >I gather that #sql-status and ON-ERROR are for sql syntax only. So would >appreciate how error handling can be achieved in SQR. > >my email is srajago774@aol.com > >Thanks > >shiv > > From owner-sqr-users@USA.NET Thu Feb 6 23:46:51 1997 Date: Thu, 6 Feb 1997 21:01:39 -0500 From: "Eric A. Eastman" Subject: Re: return status... Shiv, 1) The easiest way of doing this is do it yourself in sqr: move 0 to #row_count begin-select some_column &some_variable add 1 to #row_count from some_table where some_other_column = $key end-select if #row_count < 1 Not Found end-if if #row_count > 1 Too many rows end-if 2) If there is a unique constraint on some column (or group of columns), an oracle error will occur if an insert or update violates it. See the begin-sql qualifier "on-error" and the special variables "#sql-status" and "$sql-error". 3 and 4) See the special variable #sql-count. Eric PS. Alternately some error handling can be done in oracle directly. Example begin-sql on-error=sql_error('update_link') DECLARE no_fish_to_fry EXCEPTION;; BEGIN update food set food_type = 'Fish' where food_type = 'Sushi' and $action = 'FRY';; EXCEPTION WHEN no_data_found raise no_fish_to_fry WHEN OTHERS THEN raise;; END;; end-sql ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered, act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com On Wed, 5 Feb 1997, Shivakumar Rajagopal wrote: > I work on HP unix environment with Oracle7 and SQR 3.0. How do I check for > the following statuses in SQR :- > > 1) record not found in SELECT > 2) invalid write for INSERT (record already present) > 3) invalid rewrite....for UPDATE (record does not exist) > 4) invalid DELETE..... record does not exist > > I gather that #sql-status and ON-ERROR are for sql syntax only. So would > appreciate how error handling can be achieved in SQR. > > my email is srajago774@aol.com > > Thanks > > shiv > From owner-sqr-users@USA.NET Fri Feb 7 13:16:38 1997 Date: Thu, 6 Feb 1997 14:08:42 -0800 From: John Kellogg Subject: Re: return status... 1. Another way to check for a record being selected is like this: begin-select 'true' &found col1 col2 from ... where ... end-select if &found <> 'true' display 'no records found' end-if 2. This should be handle in an On-Error procedure. 3. Whether any rows were updated can be found by checking #sql-count. 4. Whether any rows were deleted can be found by checking #sql-count. JLKellogg Shivakumar Rajagopal wrote: > > I work on HP unix environment with Oracle7 and SQR 3.0. How do I check for > the following statuses in SQR :- > > 1) record not found in SELECT > 2) invalid write for INSERT (record already present) > 3) invalid rewrite....for UPDATE (record does not exist) > 4) invalid DELETE..... record does not exist > > I gather that #sql-status and ON-ERROR are for sql syntax only. So would > appreciate how error handling can be achieved in SQR. > > my email is srajago774@aol.com > > Thanks > > shiv From owner-sqr-users@USA.NET Fri Feb 7 19:09:58 1997 Date: Fri, 7 Feb 1997 14:49:58 -0800 From: "James G. Flora" Subject: Access Does anyone know if it it possible to use sqr against an Access Database on a PC? any help would be appreciated. Jim jflora@earthlink.net From owner-sqr-users@USA.NET Sat Feb 8 22:53:59 1997 Date: Sun, 9 Feb 1997 09:07:49 +0500 From: "V.SHANKAR." Subject: SQR Porting from 2.26a to 4.0 We are looking at a project that refers to a simultaneous migration from Sybase 4.9 to 11, and SQR 2.26a to SQR 4.0. Our New Jersey location is running SQR reports under SQR 2.26a of a Sybase 4.9 database on a Solaris Server. We in India are specifically concerned with migrating a suite of SQR reports generated under SQR 2.26a with embedded Sybase 4.9 SQL to work under the new environment. (Sybase 11, SQR 4.0) Since this is a one time exercise, we do not wish to replicate the Solaris setup in India; instead, since we already have Sybase 11 running on Windows NT 4.0 on an Intel pentium platform, we wish to use SQR Workbench for Windows connected to SQR server 4.0 for Windows NT running on the same server as Sybase 11. 1. Are we correct in assuming that SQR source code transferred from New Jersey (SQRv2.26, Sybase 4.9) will run fully or partially on the NT setup (SQR 4.0, Sybase 11)? 2. I understand that the Sybase specific embedded SQL may have to be changed, and that is in fact the objective of the exercise; but will the SQR report code run unaltered (apart from version incompatibilities) on SQR Workbench? 3. Since there is hardly any mail on SQR 4.0 issues, is 4.0 a stable and tested version, and what are the migration issues between 2.26 and 4.0? 4. Finally, would SQR users recommend the approach being considered by us as reasonable to effect the migration? Are there any compatibility issues between SQR report code with embedded SQL generated using SQR Windows Workbench and SQR for Solaris? What about printer commands porting? Shankar From owner-sqr-users@USA.NET Sun Feb 9 17:57:42 1997 Date: Sun, 9 Feb 1997 17:31:54 -0500 From: Allen Wong Subject: Placing reports in a directory from within sqr code ... How can I place reports in directories from within sqr code, I have a table with a field specifying where the directory location is and I would like to grab the column with the specified output path and place the reports in the directory. For example I have report_location table id path --- ---- 1 $OUTPUT 2 $OUTPUT2 I would like sqr to do something like this .. NEW-REPORT &PATH/$REPORT_NAME Is this possible ? Any help is appreciated ... Thanks, allen From owner-sqr-users@USA.NET Mon Feb 10 04:23:17 1997 Date: Fri, 7 Feb 1997 18:07:38 +0000 From: Simone Curtis Subject: Using the substr command Hi, Can anyone help. Postcodes in the UK are 8 characters in length, although I have a site with some bad data and the lengths of some postcodes are 7. For those postcodes of a length of 8 of less, I am trying to force a space ie. MK411RJ should be MK41 1RJ The last 3 characters of the postcode are always fixed, so I know I have to put the space in before the final three characters. Originally I was using this : let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '||substr(&postcode, -3,3) SQR does not like this, the value $postcode appears as MK41 MK4, it appears it cannot cope with the '-3' bit. Has anyone go any other suggestions ??? Thanks Simone Curtis KPMG Health Systems Manchester, UK From owner-sqr-users@USA.NET Mon Feb 10 10:56:48 1997 Date: Mon, 10 Feb 1997 07:29:32 -0500 From: Shivakumar Rajagopal Subject: Re: Using the substr command I suppose you need this manipulation of strings only when the postcode is 7 characters long. If this is true, then why dont you use 5,3 instead of -3,3. shiv From owner-sqr-users@USA.NET Mon Feb 10 11:08:43 1997 Date: Mon, 10 Feb 1997 13:49:32 +0100 From: Francisco Rodriguez Subject: Re: Using the substr command Just try : let $postcode = cond(length(&postcode) = 8, &postcode, substr(&postcode,1,4)||' '||substr(&postcode,5,3)) ---------- De : Simone Curtis Date : vendredi 7 fevrier 1997 19:07 A : Multiple recipients of list SQR-USERS Objet : Using the substr command Hi, Can anyone help. Postcodes in the UK are 8 characters in length, although I have a site with some bad data and the lengths of some postcodes are 7. For those postcodes of a length of 8 of less, I am trying to force a space ie. MK411RJ should be MK41 1RJ The last 3 characters of the postcode are always fixed, so I know I have to put the space in before the final three characters. Originally I was using this : let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '||substr(&postcode, -3,3) SQR does not like this, the value $postcode appears as MK41 MK4, it appears it cannot cope with the '-3' bit. Has anyone go any other suggestions ??? Thanks Simone Curtis KPMG Health Systems Manchester, UK begin 600 WINMAIL.DAT M>)\^(B(,`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <` M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$ MD 8`$ $```$````,`````P``, (````+``\.``````(!_P\!````00`````` M``"!*Q^DOJ,0&9UN`-T!#U0"`````%-14BU54T524T!54T$N3D54`%--5% ` M4U%2+55315)30%5302Y.150`````'@`", $````%````4TU44 `````>``,P M`0```!(```!345(M55-%4E- 55-!+DY%5 ````,`%0P!`````P#^#P8````> M``$P`0```!0````G4U%2+55315)30%5302Y.150G``(!"S !````%P```%-- M5% Z4U%2+55315)30%5302Y.150```,``#D`````"P! .@$````"`?8/`0`` M``0````````"ER@!!( !`!T```!213H@57-I;F<@=&AE('-U8G-T/F@S<1T*C;`* D75("```>`!X,`0````,```!-4P``'@`?# $````6 M````24Y&15)%3D-%+T%54DE,3$%#+T92`````P`&$-]*']$#``<0$0,``!X` M"! !````90```$I54U144EDZ3$54)%!/4U1#3T1%/4-/3D0H3$5.1U1(*"90 M3U-40T]$12D]."PF4$]35$-/1$4L4U5"4U12*"903U-40T]$12PQ+#0I4U5" M4U12*"903U-40T]$12PU+#,I*2T``````@$)$ $```#"`P``O@,``$X'``!, M6D9U$8"2_?\`"@$/`A4"I /D!>L"@P!0$P-4`@!C: K FAE; ,@1&SJ9P*#-!,-?0J ",\)V>([%Y\R-34"@ J!#;&! M"V!N9S$P,S8*^PL2\@P!8P! ($IU<\$%0'1R>2 Z"H4*A<)L$@`@)'!O'* % MH!$-L" ]( 6@;F0H0QX`&J!T:"@F'E8I\1[1."P@'\<@H J%(=]1(LQS=6(< MH'(?N"P`,2PT*7Q\)R &)R4@(]\U+#,I*0<=+!TL"O1L:3$Y..$"T6DM,38, M`0S0*;-O"UDIL J@`V!T!9 %0"U?*]<*ARJ+## K5D0>P#I_+-XK5@R"!@`' M< (@'L!#70AP= 0`+'\MCF$K@%RL?CHNSR_9=@GP9!>A`&D@-R!F7"=EU#EV M"((@*3 Y-A I,-@Z,#$3FO+\I5`) :H!S %/#K M(\4>\6T#@60GWRCC&N"/*E<5PBI"*V5(:2P=+#9#`Y$`<'DPLA3Q<"X\(% > M900@"X!"0U5+_T>P%Z @@![P$<$`T"N $> _22(?5""@!T ?D A@9VBT($E( M(&$U@ J%82/ ^FDK@" #\!^0(\ #0P%=2 M-M!7H-4=+%1.XF$1!) @H'])H$-_1(X;U2M6 M"H46P0`!@= ```,`$! ``````P`1$ ````! ```#T``0````4```!213H@``````,`#33]-P``FXL7 ` end From owner-sqr-users@USA.NET Mon Feb 10 13:18:08 1997 Date: Mon, 10 Feb 1997 09:55:27 -0500 From: Ray Ontko Subject: Re: Access > Does anyone know if it it possible to use sqr against an > Access Database on a PC? Jim, I've never used it, but I think MITI has a version of SQR for ODBC. You might be able to use an Access ODBC driver to do what you're talking about. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Feb 10 13:18:19 1997 Date: Mon, 10 Feb 1997 11:19:25 -0500 From: Marlon Corrales Subject: Re: Using the substr command you can try the this code: let $postcode = substr(&postcode, 1, length(&postcode) - 3) || ' ' || substr(&postcode, length(&postcode) - 2, 3) marlon ;) Bell Communications Research, NJ ======================================================= Hi, Can anyone help. Postcodes in the UK are 8 characters in length, although I have a site with some bad data and the lengths of some postcodes are 7. For those postcodes of a length of 8 of less, I am trying to force a space ie. MK411RJ should be MK41 1RJ The last 3 characters of the postcode are always fixed, so I know I have to put the space in before the final three characters. Originally I was using this : let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '||substr(&postcode, -3,3) SQR does not like this, the value $postcode appears as MK41 MK4, it appears it cannot cope with the '-3' bit. Has anyone go any other suggestions ??? Thanks Simone Curtis KPMG Health Systems Manchester, UK From owner-sqr-users@USA.NET Mon Feb 10 15:01:26 1997 Date: Mon, 10 Feb 1997 09:13:05 -0500 From: Eric Hoffman Subject: Re: Using the substr command let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '|| substr(&postcode, length(&postcode) -2, length(&postcode)) Have you tried the above code? Hope it helps. Eric Hoffman ______________________________ Reply Separator _________________________________ Subject: Using the substr command Author: SQR-USERS@USA.NET at Internet Date: 2/7/97 6:07 PM Hi, Can anyone help. Postcodes in the UK are 8 characters in length, although I have a site with some bad data and the lengths of some postcodes are 7. For those postcodes of a length of 8 of less, I am trying to force a space ie. MK411RJ should be MK41 1RJ The last 3 characters of the postcode are always fixed, so I know I have to put the space in before the final three characters. Originally I was using this : let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '||substr(&postcode, -3,3) SQR does not like this, the value $postcode appears as MK41 MK4, it appears it cannot cope with the '-3' bit. Has anyone go any other suggestions ??? Thanks Simone Curtis KPMG Health Systems Manchester, UK From owner-sqr-users@USA.NET Mon Feb 10 15:03:43 1997 Date: Mon, 10 Feb 1997 09:28:20 -0500 From: Nathan Treadway Subject: Re: Using the substr command > let $postcode = substr(&postcode,1,length(&postcode) -3) > ||' '||substr(&postcode, -3,3) > > SQR does not like this, the value $postcode appears as MK41 MK4, it appears it > cannot cope with the '-3' bit. Has anyone go any other suggestions ??? It's true that SQR string functions are rather clumsy. In this case, you need to do the calculation yourself: ||' '||substr(&postcode,&length(&postcode)-3,3) Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Feb 10 16:22:16 1997 Date: Mon, 10 Feb 1997 09:52:20 -0500 From: Ray Ontko Subject: Re: Placing reports in a directory from within sqr code ... > How can I place reports in directories from within sqr code, I have a > table with a field specifying where the directory location is and I > would like to grab the column with the specified output path and place > the reports in the directory. > > For example I have > > report_location table > > id path > --- ---- > 1 $OUTPUT > 2 $OUTPUT2 > > I would like sqr to do something like this .. > > NEW-REPORT &PATH/$REPORT_NAME > > > Is this possible ? > > Any help is appreciated ... > > Thanks, > allen Allen, Try something like this: let $outfile = &path || '/' || $report_name new-report $outfile Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Feb 10 16:23:55 1997 Date: Mon, 10 Feb 1997 12:53:41 -0700 From: Surit Maharana Subject: Re: Using the substr command The '-3' bit is treated as 0 and you don't get the expected result. For a variable length postcode, you may try a more generic approach viz. let $postcode = cond(length($postcode) > 3, substr($postcode, 1, length($postcode)-3)||' '|| substr($postcode, length($postcode)-2, 3), $postcode) OR let $postcode = substr($postcode, 1, length($postcode)-3) ||cond(length($postcode) > 3, ' ', '') ||substr($postcode, length($postcode)-2, 3) '1RJ' ==> '1RJ' 'M1RJ' ==> 'M 1RJ' 'MK411RJ' ==> 'MK41 1RJ' If postcode needs to be of fixed length, you can pad spaces in the beginnig by doing a lpad or manipulate the no.s of spaces in between to give the necessary output. Hope, this helps. >---------- >From: Simone Curtis[SMTP:Simone.Curtis@KPMG.CO.UK] >Sent: Friday, February 07, 1997 11:07 AM >To: Multiple recipients of list SQR-USERS >Subject: Using the substr command > >Hi, > >Can anyone help. Postcodes in the UK are 8 characters in length, >although I have >a site with some bad data and the lengths of some postcodes are 7. For >those >postcodes of a length of 8 of less, I am trying to force a space ie. > > MK411RJ should be MK41 1RJ > >The last 3 characters of the postcode are always fixed, so I know I >have to put >the space in before the final three characters. Originally I was using >this : > > let $postcode = substr(&postcode,1,length(&postcode) -3) > ||' '||substr(&postcode, >-3,3) > >SQR does not like this, the value $postcode appears as MK41 MK4, it >appears it >cannot cope with the '-3' bit. Has anyone go any other suggestions ??? > >Thanks > >Simone Curtis >KPMG Health Systems >Manchester, UK > From owner-sqr-users@USA.NET Mon Feb 10 17:18:06 1997 Date: Mon, 10 Feb 1997 15:27:12 -0500 From: Eric Hoffman Subject: Re[2]: Using the substr command Correction: let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '|| substr(&postcode, length(&postcode) -2, length(&postcode)) Should be let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '|| substr(&postcode, length(&postcode) -2, 3) | Eric ______________________________ Reply Separator _________________________________ Subject: Re: Using the substr command Author: SQR-USERS@USA.NET at Internet Date: 2/10/97 9:13 AM let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '|| substr(&postcode, length(&postcode) -2, length(&postcode)) Have you tried the above code? Hope it helps. Eric Hoffman ______________________________ Reply Separator _________________________________ Subject: Using the substr command Author: SQR-USERS@USA.NET at Internet Date: 2/7/97 6:07 PM Hi, Can anyone help. Postcodes in the UK are 8 characters in length, although I have a site with some bad data and the lengths of some postcodes are 7. For those postcodes of a length of 8 of less, I am trying to force a space ie. MK411RJ should be MK41 1RJ The last 3 characters of the postcode are always fixed, so I know I have to put the space in before the final three characters. Originally I was using this : let $postcode = substr(&postcode,1,length(&postcode) -3) ||' '||substr(&postcode, -3,3) SQR does not like this, the value $postcode appears as MK41 MK4, it appears it cannot cope with the '-3' bit. Has anyone go any other suggestions ??? Thanks Simone Curtis KPMG Health Systems Manchester, UK From owner-sqr-users@USA.NET Mon Feb 10 18:53:25 1997 Date: Mon, 10 Feb 1997 09:59:19 -0500 From: Ray Ontko Subject: Re: Using the substr command > Hi, > > Can anyone help. Postcodes in the UK are 8 characters in length, although I have > a site with some bad data and the lengths of some postcodes are 7. For those > postcodes of a length of 8 of less, I am trying to force a space ie. > > MK411RJ should be MK41 1RJ > > The last 3 characters of the postcode are always fixed, so I know I have to put > the space in before the final three characters. Originally I was using this : > > let $postcode = substr(&postcode,1,length(&postcode) -3) > ||' '||substr(&postcode, -3,3) > > SQR does not like this, the value $postcode appears as MK41 MK4, it appears it > cannot cope with the '-3' bit. Has anyone go any other suggestions ??? > > Thanks > > Simone Curtis > KPMG Health Systems > Manchester, UK Is this what you're looking for? let $postcode = substr(&postcode,1,length(&postcode)-3) ||' '||substr(&postcode,length(&postcode)-3+1,3) SQR's substr function is slightly different from Oracle's in this regard. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Feb 10 20:19:27 1997 Date: Mon, 10 Feb 1997 19:40:27 -0500 From: Paul Baker Subject: conditional logic in the From and where clauses Recently I came across some code that used enviroment variables in a If statement to determine which table a from clause used. Does anyone know if a If statement can be used in the and statements in the where clause. Thanks Paul Baker BSC, Tulsa, Okla From owner-sqr-users@USA.NET Tue Feb 11 09:15:11 1997 Date: Tue, 11 Feb 1997 08:13:20 -0500 From: "\"Fernando Villaamil" Subject: Re: Placing reports in a directory from within sqr code ... As far as I know you cannot choose the path for the output directory withing SQR. I define the path in my unix shell and fire off the reports to that location. What you can do is use awk or unix commands to relocate the report to the target directories once SQR is finshed. From owner-sqr-users@USA.NET Tue Feb 11 09:38:52 1997 Date: Tue, 11 Feb 1997 09:27:39 -0500 From: "Eric A. Eastman" Subject: Out of memory. Hello all, I am getting an error when running a program that uses dynamic SQL heavily and repeatedly. The query is compiled and run 100,000+ times. There are no error codes or anything it just shows "Out of memory." and exits. Can anyone explain this? Thanks, Eric Version: sqr -id SQR/3.0.12.1/Sun/Solaris 2.4/Oracle 7.0.16/Dec 01 1995 Output: SQR: Structured Query Report Writer V3.0.12.1 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. 1997.02.10 15:40:55 Start scanning for duplicate records in ASSET_DOCS. 1997.02.10 16:27:58 Rocords marked = 500 selects = 22517 1997.02.10 17:05:27 Rocords marked = 1000 selects = 39034 1997.02.10 17:43:05 Rocords marked = 1500 selects = 57725 1997.02.10 18:35:37 Rocords marked = 2000 selects = 78679 1997.02.10 18:59:32 Rocords marked = 2500 selects = 95800 1997.02.10 19:22:43 Rocords marked = 3000 selects = 115971 1997.02.10 19:39:33 Rocords marked = 3500 selects = 131028 Out of memory. SQR: Program Aborting. ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered, act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Tue Feb 11 10:32:04 1997 Date: Tue, 11 Feb 1997 09:17:20 -0500 From: "Eric A. Eastman" Subject: Re: conditional logic in the From and where clauses Paul - The piece of functionality I think that you are looking for is dynamic SQL. here is a code sample from a program I just wrote to detect duplicate records in a group of columns that should be a key. Which table and which columns are read from a config file. Notice the square brackets. These tell sqr that you are changing the syntax of the select and not just inserting a value. SQR doesn't check dynamic selects at compile time for correctness. begin-selct [$g_column1] &column1=CHAR from fyiadm.fyi_[$g_table_name] [$g_where_clause] order by [$g_column_list], [$g_rkey_column] desc end-select Hope this helps, Eric ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered, act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com On Mon, 10 Feb 1997, Paul Baker wrote: > Recently I came across some code that used enviroment variables in a If > statement > to determine which table a from clause used. > > Does anyone know if a If statement can be used in the and statements in the > where clause. > > Thanks > > Paul Baker > BSC, > Tulsa, Okla > From owner-sqr-users@USA.NET Tue Feb 11 15:33:46 1997 Date: Tue, 11 Feb 1997 11:05:25 -0600 From: Richard Watts Subject: Out of memory. -Reply Eric, The SQR message "Out of Memory" does not have an error code. This error message often occurs when SQR is unable to malloc more memory from the UNIX box. Could the problem lie in your -Mfile? I have listed our -Mfile contents below, you might want to adjust the DYNAMICARGS value. For reference, I have an SQR that executes the same dynamic SQL statement well into the tens of millions of times and have never had this problem, so the dynamic SQL may be a red herring. This site is on similar software, a new rev of Oracle (7.2.3) and HP-UX 10. Also, I have since changed the dynamic SQL, which sends an OPARSE call every time and is thus quite expensive in Oracle, and instead use dynamic PL/SQL within a begin-sql clause. Our max file contains the following: DYNAMICARGS=300 EXPRESSIONSPACE=25000 FORWARDREFS=400 NUMVARIABLES=700 POSITIONS=3000 PROGLINEPARS=25000 PROGLINES=5500 QUERIES=300 QUERYARGS=1000 SQLSIZE=20000 STRINGSPACE=25000 SUBVARS=2000 VARIABLES=2500 WHENS=1000 Regards Rick Watts rwatts@imainc.com >>> Eric A. Eastman 02/11/97 08:27am >>> Hello all, I am getting an error when running a program that uses dynamic SQL heavily and repeatedly. The query is compiled and run 100,000+ times. There are no error codes or anything it just shows "Out of memory." and exits. Can anyone explain this? Thanks, Eric Version: sqr -id SQR/3.0.12.1/Sun/Solaris 2.4/Oracle 7.0.16/Dec 01 1995 Output: SQR: Structured Query Report Writer V3.0.12.1 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. 1997.02.10 15:40:55 Start scanning for duplicate records in ASSET_DOCS. 1997.02.10 16:27:58 Rocords marked = 500 selects = 22517 1997.02.10 17:05:27 Rocords marked = 1000 selects = 39034 1997.02.10 17:43:05 Rocords marked = 1500 selects = 57725 1997.02.10 18:35:37 Rocords marked = 2000 selects = 78679 1997.02.10 18:59:32 Rocords marked = 2500 selects = 95800 1997.02.10 19:22:43 Rocords marked = 3000 selects = 115971 1997.02.10 19:39:33 Rocords marked = 3500 selects = 131028 Out of memory. SQR: Program Aborting. ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered, act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Tue Feb 11 15:44:16 1997 Date: Tue, 11 Feb 1997 13:12:13 CST From: Peter Land Subject: Year 2000 dates We are using SQR with an Oracle database. Some reports we have require the input of first/last dates as selection criteria. We have just hit the problem whilst doing some long range planning of the first/last dates crossing the year 2000. Eg where clause has date > 01-JAN-1998 and date < 01-JAN-2002. We get these dates into the report using the INPUT statement. We want to ensure valid dates are entered, so we use INPUT $date TYPE=DATE However, with the Oracle version of SQR, this does a type check against the DD-MON-YY format, so our four digit year is not accepted. We can run the report by inputting the date as TYPE=CHAR with no date format check, and using begin-sql alter session set NLS_DATE_FORMAT='DD-MON-YYYY' end-sql to make sure that oracle accepts the four digit year in where clauses, but this will not stop people entering an invalid date as a report input (eg 21/12/2001 rather than 21-DEC-2001) Does anyone know of an easy way to check the format of a date that has been input with a 4 digit year???? From owner-sqr-users@USA.NET Thu Feb 13 11:16:35 1997 Date: Wed, 12 Feb 1997 21:50:13 -0500 From: Scott McCann Subject: Breaking 'like' text I am writing a SQR which reports employees by department and causes a page break when deptartment changes. This works fine, but the problem is that each employee has multiple lines and sometimes a page-break is caused when only a few of the employee's lines are printed. i.e. emplid01 xxxx xxxx xxx xxxx xxxx xxx xxx xxxx xxxx xxx xxx xxx xxx xxx xxx emplid02 xxx xxx xxx xxx --- page break --- xxx xxx xxx xxx emplid03 xx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx etc. Is there a simple way to keep these lines together so that emplid02 willstart on a new page? The number of lines of information for each employee may differ. Thanks in advance --_ Scott _-- From owner-sqr-users@USA.NET Thu Feb 13 16:21:20 1997 Date: Fri, 13 Dec 1996 13:17:50 -0500 From: "William G. Northen" Subject: Re: Breaking 'like' text I think you need to use the need command I havent used it but look on page 115 of the users guide at the next-listing command At 21:50 02/12/97 -0500, you wrote: >I am writing a SQR which reports employees by department and causes a page >break when deptartment changes. This works fine, but the problem is that >each employee has multiple lines and sometimes a page-break is caused when >only a few of the employee's lines are printed. > >i.e. > >emplid01 xxxx xxxx xxx > xxxx xxxx xxx xxx > xxxx xxxx xxx xxx > xxx xxx xxx xxx > >emplid02 xxx xxx xxx xxx >--- page break --- > xxx xxx xxx xxx > >emplid03 xx xxx xxx xxx > xxx xxx xxx xxx > xxx xxx xxx xxx > >etc. > > >Is there a simple way to keep these lines together so that emplid02 >willstart on a new page? The number of lines of information for each >employee may differ. > >Thanks in advance > > --_ Scott _-- > > Wm. G. Northen "Founded by Thomas Jefferson, 1819" Programmer/Analyst Unix, SQL, SQR, Sybase, Windows, ECT, Development Group Internet wgn3c@phil.dev.virginia.edu University of Virginia Tel (804) 924-3949 From owner-sqr-users@USA.NET Thu Feb 13 19:01:45 1997 Date: Thu, 13 Feb 1997 17:18:20 -0500 From: Marlon Corrales Subject: Duplex Printing II Hi! I have the same dilemma as Shawn for printing in duplex form. I am using SQR v. 3.0.12.2 on ORACLE-VAX platform. The printer is capable of printing in duplex form and the SQR output is a postscript file. The requirement for the output report is: Page 1 Page 2 --> should be printed on the back of page 1 Page 3 --> separate paper Page 4 --> separate paper ... to Page N --> separate paper Only the first paper has page 1 and page 2 on the front and back respectively. What print commands will I use to print the first and second page on the same paper? What print commands can I then use to print normally (for the rest of the pages) ? Thanks ! marlon ;) From owner-sqr-users@USA.NET Thu Feb 13 19:03:33 1997 Date: Thu, 13 Feb 1997 17:39:53 -0800 From: Juan Manuel Alvarado Ortiz Subject: SQR-USERS: call a SQR with VB Does anyone can suggest me the faster way for call a sqr with aplication in VB??? Thank you in advance Eng. Juan Alvarado From owner-sqr-users@USA.NET Thu Feb 13 19:04:29 1997 Date: Thu, 13 Feb 1997 17:39:40 -0800 From: Juan Manuel Alvarado Ortiz Subject: How can I compress a printer in SQR When we put printer-init <15> in sqr and print in DOS this work's fine, but if we look the SPF in the viewer the report dont compress the printer. How can i compress easely in SQR for windows. From owner-sqr-users@USA.NET Thu Feb 13 19:58:23 1997 Date: Thu, 13 Feb 1997 19:15:05 -0400 From: Bob Harvey Subject: Breaking 'like' text >>I am writing a SQR which reports employees by department and causes a page >>break when deptartment changes. This works fine, but the problem is that >>each employee has multiple lines and sometimes a page-break is caused when >>only a few of the employee's lines are printed. >> >>i.e. >> >>emplid01 xxxx xxxx xxx >> xxxx xxxx xxx xxx >> xxxx xxxx xxx xxx >> xxx xxx xxx xxx >> >>emplid02 xxx xxx xxx xxx >>--- page break --- >> xxx xxx xxx xxx >> >>emplid03 xx xxx xxx xxx >> xxx xxx xxx xxx >> xxx xxx xxx xxx >> >>etc. >> >> >>Is there a simple way to keep these lines together so that emplid02 >>willstart on a new page? The number of lines of information for each >>employee may differ. >> >>Thanks in advance >> >> --_ Scott _-- >> >> Have you considered breaking up the procedure so that the department and employee is selected, then call a procedure to retrieve the count of the of records for the employee? select distinct department, empno DO count_emp_records let #avail_lines = #current-line - {page_depth} if #avail_lines < &emp_records new-page end-if It would then be possible to check the number of available lines e.g. {page_depth} -#current-line to prevent splitting the employee detail. Once satisfied select and print the employee detail records. Bob Harvey Bertnor Consulting Services From owner-sqr-users@USA.NET Thu Feb 13 20:24:22 1997 Date: Thu, 13 Feb 1997 17:06:53 -0800 From: Raja Rajaram Subject: Re: SQR-USERS: call a SQR with VB Hi Juan, I have been using the sqrwin.dll for a long time and the performance has been pretty good. If there is any other way u have been using other that this kindly let me know. I may as well use it!! Raja rrajaram@wise.com ____________________Reply Separator____________________ Subject: SQR-USERS: call a SQR with VB Author: SQR-USERS@USA.NET Date: 2/13/97 5:39 PM Does anyone can suggest me the faster way for call a sqr with aplication in VB??? Thank you in advance Eng. Juan Alvarado From owner-sqr-users@USA.NET Thu Feb 13 20:26:15 1997 Date: Thu, 13 Feb 1997 17:07:43 -0800 From: Raja Rajaram Subject: Re: Breaking 'like' text Hi, Have you tried using the next-listing with the need parameter? Raja ____________________Reply Separator____________________ Subject: Breaking 'like' text Author: SQR-USERS@USA.NET Date: 2/12/97 9:50 PM I am writing a SQR which reports employees by department and causes a page break when deptartment changes. This works fine, but the problem is that each employee has multiple lines and sometimes a page-break is caused when only a few of the employee's lines are printed. i.e. emplid01 xxxx xxxx xxx xxxx xxxx xxx xxx xxxx xxxx xxx xxx xxx xxx xxx xxx emplid02 xxx xxx xxx xxx --- page break --- xxx xxx xxx xxx emplid03 xx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx etc. Is there a simple way to keep these lines together so that emplid02 willstart on a new page? The number of lines of information for each employee may differ. Thanks in advance --_ Scott _-- From owner-sqr-users@USA.NET Fri Feb 14 02:55:05 1997 Date: Thu, 13 Feb 1997 23:27:47 -0800 From: Mark Johnson Subject: Re: Breaking 'like' text Scott, Next-listing is the command you will use to accomplish this, but you will also need to use arrays. Because you don't know at the time of issuing the next-listing command how many lines there will be, you will need to put them in an array as you retrieve them, and then print them with the array index in the need= parameter of next-listing. You may be able to accomplish this by breaking apart the query and doing counts before selecting the records instead, but this would not perform as well. Happy coding. Mark Johnson Context Integration At 09:50 PM 2/12/97 -0500, you wrote: >I am writing a SQR which reports employees by department and causes a page >break when deptartment changes. This works fine, but the problem is that >each employee has multiple lines and sometimes a page-break is caused when >only a few of the employee's lines are printed. > >i.e. > >emplid01 xxxx xxxx xxx > xxxx xxxx xxx xxx > xxxx xxxx xxx xxx > xxx xxx xxx xxx > >emplid02 xxx xxx xxx xxx >--- page break --- > xxx xxx xxx xxx > >emplid03 xx xxx xxx xxx > xxx xxx xxx xxx > xxx xxx xxx xxx > >etc. > > >Is there a simple way to keep these lines together so that emplid02 >willstart on a new page? The number of lines of information for each >employee may differ. > >Thanks in advance > > --_ Scott _-- > > From owner-sqr-users@USA.NET Fri Feb 14 08:52:01 1997 Date: Fri, 14 Feb 1997 13:16:17 +0000 From: "Harry @ WebFarm" Subject: Drawing Graphs - 3 questions I would be grateful if anybody could help me out with the following queries re. graphs in SQR3. i) Is it possible to control the font size of the text within the graph area ? ii) Is it possible to pitch the x-axis scale text horizontally ? iii) How can I control the colours that the graph uses ? Thanks in anticipation Harry From owner-sqr-users@USA.NET Fri Feb 14 09:34:22 1997 Date: Fri, 14 Feb 1997 09:21:35 -0500 From: Ray Ontko Subject: Re: Drawing Graphs - 3 questions > I would be grateful if anybody could help me out with the following > queries re. graphs in SQR3. > > i) Is it possible to control the font size of the text within the > graph area ? No, not directly. > ii) Is it possible to pitch the x-axis scale text horizontally ? No. > iii) How can I control the colours that the graph uses ? I don't think you can. > Thanks in anticipation Harry, Sorry to be the bearer of bad news, but I spent a fair amount of time fighting with the graphics myself to see if I could get things just the way I wanted on the page and found that even with all the different options, I still lacked the control I felt I needed to make good or frequent use of the graphing functionality of SQR. Unfortunately, the situation isn't changed in SQR 4.0. Usually I have to adjust user expectations about the graphics capability, and usually I come up with something that meets their needs, but often I'm tempted to resort to some other solution. (like providing a file that can be uploaded into Excel, for example). I'm not sure which direction to push MITI (ahem, SQRiBE) on this one. Do we want more functionality in the graphing options, or an easy link to an external product that might give us more control (possibly packaged as an add-on product) or what? This is additionally complicated by the need to be able to embed the graphics in SCP files. Anyone else care to comment? Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB" rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Feb 14 10:35:57 1997 Date: Fri, 14 Feb 1997 10:11:51 -0500 From: Shawn Dunn Subject: Re: Duplex Printing II Marlon, I think I may actually be able to help here - Here are the commands that I used to finally get my duplex output correct: (thanks to help from the list) -In the declare layout section, make sure you have: formfeed=yes -Then use the following commands to set up duplex printing: encode '<27>&l1S' into $duplex print-direct printer=hplaserjet $duplex -Use the 'new-page' command to page break (if you're not already breaking with some other method). -Then, when you want to switch back to simplex printing, use: encode '<27>&l0S' into $simplex (that's a small L and a zero) print-direct printer=hplaserjet $simplex Hope this helps! Shawn >Hi! > >I have the same dilemma as Shawn for printing in duplex form. >I am using SQR v. 3.0.12.2 on ORACLE-VAX platform. >The printer is capable of printing in duplex form and >the SQR output is a postscript file. > >The requirement for the output report is: > > Page 1 > Page 2 --> should be printed on the back of page 1 > > Page 3 --> separate paper > Page 4 --> separate paper > ... > to Page N --> separate paper > > Only the first paper has page 1 and page 2 on the front and back > respectively. > > What print commands will I use to print the first and second page > on the same paper? > What print commands can I then use to print normally (for the rest > of the pages) ? > > Thanks ! > >marlon ;) ------------------------------- Shawn Dunn - SDUNN@MIT.EDU Analyst/Programmer III - MIT Bursar's Office, Cambridge, MA http://web.mit.edu/sdunn/www/ From owner-sqr-users@USA.NET Fri Feb 14 10:50:32 1997 Date: Fri, 14 Feb 1997 10:25:01 -0500 From: Felix Rodriguez Subject: Re: Drawing Graphs - 3 questions At 09:21 AM 2/14/97 -0500, you wrote: >Harry, > >Sorry to be the bearer of bad news, but I spent a fair amount of >time fighting with the graphics myself to see if I could get things >just the way I wanted on the page and found that even with all the >different options, I still lacked the control I felt I needed to >make good or frequent use of the graphing functionality of SQR. >Unfortunately, the situation isn't changed in SQR 4.0. > >Usually I have to adjust user expectations about the graphics >capability, and usually I come up with something that meets their >needs, but often I'm tempted to resort to some other solution. >(like providing a file that can be uploaded into Excel, for example). > >I'm not sure which direction to push MITI (ahem, SQRiBE) on this >one. Do we want more functionality in the graphing options, or >an easy link to an external product that might give us more control >(possibly packaged as an add-on product) or what? This is additionally >complicated by the need to be able to embed the graphics in SCP files. > >Anyone else care to comment? > >Ray >---------------------------------------------------------------------- >Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB" >rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ > > Ray, There is always the option of learning Postscript and directly embedding the Postscript commands in the print file using the Print-direct command. It sounds like a pain but this is the best way to get ultimate control of your graphs. Felix Rodriguez Senior Systems Analyst University of Hartford rodriguez@uhavax.hartford.edu http://uhavax.hartford.edu/~rodriguez From owner-sqr-users@USA.NET Fri Feb 14 10:59:58 1997 Date: Fri, 14 Feb 1997 10:35:35 -0500 From: Shankar Subject: SQR Version 2.5: How to print a logo from EPS file on each page header? I am new to this group. We currently use SQR version 2.5 (it will be few months before we upgrade to 3.0). For one of the reports, I need to add a logo from an EPS file as a header. I have managed to add the EPS file using Print-Direct (followed sample from the SQRUG library). But it prints only on the first page? I tried Before-Page, After-Page. None of them seem to work. I appreciate if any of you have any solution. Thanks, Shankar From owner-sqr-users@USA.NET Fri Feb 14 11:32:35 1997 Date: Fri, 14 Feb 1997 11:15:00 -0500 From: Ray Ontko Subject: Re: Drawing Graphs - 3 questions [snip] > >I'm not sure which direction to push MITI (ahem, SQRiBE) on this > >one. Do we want more functionality in the graphing options, or > >an easy link to an external product that might give us more control > >(possibly packaged as an add-on product) or what? This is additionally > >complicated by the need to be able to embed the graphics in SCP files. > > > >Anyone else care to comment? > > > >Ray > > Ray, > There is always the option of learning Postscript and directly > embedding the Postscript commands in the print file using the Print-direct > command. It sounds like a pain but this is the best way to get ultimate > control of your graphs. > > Felix Rodriguez Been there. I didn't say it couldn't be done. I can write postscript with the best of them (or PDF or HPGL for that matter), but I'm hoping that I don't have to reinvent the wheel. It seems like it would be a lot easier for SQR to give us a little more control over their graphics package, or for us in the user group to provide our own collection of routines/hooks to gnu plot, or whatever. Besides, not all of my printers support Postscript. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Feb 14 12:18:26 1997 Date: Fri, 14 Feb 1997 08:51:02 -0700 From: David Tucker Subject: Batch Reporting on Oracle for NetWare We need to run batch reports for a billing system running on Oracle for Netware. I would like to run the reports on the server instead of the clients. We also need to schedule the reports for automatic processing. We are using PowerBuilder 5 on a Windows 3.1 client and Oracle 7.3 on NetWare. I have done some protyping with the PB extensions and noticed that I cannot run more than one report at a time on the Windows client. Also, when you call a stored procedure, SQR will not allow you to move around in Windows like it normally does for non stored procedure logic. Also, I have looked at using the SQR remote option, but currently it won't work on NetWare. We are looking at moving to UNIX though. The cost of SQR remote is a bit high for what we want to spend. I have used SQR for UNIX before in a previous life, and that's why we are considering it for this project. I am trying to push them to UNIX, but it seems to be more politics than cost. Here are my questions: When will a Windows NT version of SQR3 be out (and offer 32-bit Oracle support)? Will the Win NT version allow me to run multiple SQR sessions at once? Is there any way to run more than one report at a time in Windows? Thanks for any input! David Tucker From owner-sqr-users@USA.NET Fri Feb 14 14:29:31 1997 Date: Fri, 14 Feb 1997 14:15:42 -0500 From: Ray Ontko Subject: Re: Batch Reporting on Oracle for NetWare > We need to run batch reports for a billing system running on Oracle for > Netware. I would like to run the reports on the server instead of the > clients. We also need to schedule the reports for automatic > processing. > > We are using PowerBuilder 5 on a Windows 3.1 client and Oracle 7.3 on > NetWare. I have done some protyping with the PB extensions and noticed > that I cannot run more than one report at a time on the Windows client. > Also, when you call a stored procedure, SQR will not allow you to move > around in Windows like it normally does for non stored procedure logic. > > Also, I have looked at using the SQR remote option, but currently it > won't work on NetWare. We are looking at moving to UNIX though. The > cost of SQR remote is a bit high for what we want to spend. > > I have used SQR for UNIX before in a previous life, and that's why we > are considering it for this project. I am trying to push them to UNIX, > but it seems to be more politics than cost. > > Here are my questions: > When will a Windows NT version of SQR3 be out (and offer 32-bit Oracle > support)? > Will the Win NT version allow me to run multiple SQR sessions at once? > Is there any way to run more than one report at a time in Windows? > > > Thanks for any input! > > David Tucker > David, There is currently a Windows NT version of SQR3 for Oracle, and as far as I know uses 32-bit SQL*Net drivers. I don't know enough about NT to answer your second question. For what it's worth, we've had good luck running the SCO/Oracle version of SQR under Linux. This isn't supported by SQRiBE, of course, but it does take a little of the bite out of the license fees and hardware requirements for running SQR on a real operating system. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Feb 14 14:52:07 1997 Date: Fri, 14 Feb 1997 11:25:57 -0800 From: Raja Rajaram Subject: Re: SQR Version 2.5: How to print a logo from EPS file on ea Hi Shankar, Use the Print-image option in the header or your report. Here are a couple of ways. You can use the -KEEP or -NOLIS option to get an spf file. Then use the SQR Print to convert it into a post script file which can be printed. Other way is to directly using the -PRINTER:PS option in your report to get a postscript file which you can print. If you are running SQR in Windows, you can use the logo to be a bitmap and print it directly with the -PRINTER:WP. This works fine. Hope this helps, Raja ____________________Reply Separator____________________ Subject: SQR Version 2.5: How to print a logo from EPS file on each Author: SQR-USERS@USA.NET Date: 2/14/97 10:35 AM I am new to this group. We currently use SQR version 2.5 (it will be few months before we upgrade to 3.0). For one of the reports, I need to add a logo from an EPS file as a header. I have managed to add the EPS file using Print-Direct (followed sample from the SQRUG library). But it prints only on the first page? I tried Before-Page, After-Page. None of them seem to work. I appreciate if any of you have any solution. Thanks, Shankar From owner-sqr-users@USA.NET Fri Feb 14 16:05:56 1997 Date: Fri, 14 Feb 1997 15:40:54 -0500 From: Shankar Subject: SQR Version 2.5: How to print a logo from EPS file on each page Hi Raja, Thanks for replying. SQR version 2.5 unfortunately does not support any of the features. We run SQR on Unix to support our reporting needs for another application called 'Clarify'. I have the manuals for version 3.0 and am aware of these features, but, it will not be until five to six months that we can upgrade. I hope there is an interim solution. Shankar > Hi Shankar, > Use the Print-image option in the header or your report. > Here are a couple of ways. You can use the -KEEP or -NOLIS option to get an > spf file. Then use the SQR Print to convert it into a post script file which c an > be printed. > Other way is to directly using the -PRINTER:PS option in your report to get a > postscript file which you can print. > If you are running SQR in Windows, you can use the logo to be a bitmap and > print it directly with the -PRINTER:WP. This works fine. > > Hope this helps, > Raja > From owner-sqr-users@USA.NET Fri Feb 14 17:56:30 1997 Date: Fri, 14 Feb 1997 17:37:21 -0500 From: Jim Wolfe Subject: System Variable $username Returns Database Name Howdy All, I'm using SQR 3.0.7.1 and want to use the system variable $username to print the user's userid on the report. However, it returns the database name instead! Is this a bug in SQR or am I not holding my mouth right? Ideally, I'd like to have a "$database" system variable, too, to be able to print on the report which database the report reflects. Thanks. Jim Wolfe From owner-sqr-users@USA.NET Sun Feb 16 09:00:53 1997 Date: Sun, 16 Feb 1997 15:37:51 +0200 From: SHILUV Svetlana Lasker 5324 Subject: Send output report file as a mail from SQR. I need to send (by mail) the report output file from SQR program itself. Unfortunately it seems that this file has been created only after the program was finished. How can I enforce SQR to close the report file before the End-Program command has been reached ? Thanks in advance, Svetlana ******************************************************* Svetlana Lasker, Software Designer, Telrad Telecommunication and Electronic Industries Ltd. Phone: 972-8-9774484 Fax: 972-8-9273264 Email: lasker@sysdep.elex.co.il ******************************************************* From owner-sqr-users@USA.NET Sun Feb 16 17:07:19 1997 Date: Sun, 16 Feb 1997 13:46:58 -0800 From: Mark Johnson Subject: Re: Send output report file as a mail from SQR. new-report should work for you. new-report {report_filename _var,_lit} If you don't print anything to the new-report, a new report will not actually be created, but it will close your old report. At 03:37 PM 2/16/97 +0200, you wrote: >I need to send (by mail) the report output file from SQR >program itself. Unfortunately it seems that this file >has been created only after the program was finished. >How can I enforce SQR to close the report file before >the End-Program command has been reached ? > >Thanks in advance, Svetlana > >******************************************************* >Svetlana Lasker, >Software Designer, >Telrad Telecommunication and Electronic Industries Ltd. > >Phone: 972-8-9774484 Fax: 972-8-9273264 > Email: lasker@sysdep.elex.co.il >******************************************************* > > From owner-sqr-users@USA.NET Sun Feb 16 20:56:51 1997 Date: Sun, 16 Feb 1997 20:32:21 -0500 From: Terri Jenkins Subject: Re: Sqr Help (money to words) If you are on a PeopleSoft implementation, there is a delivered SQC that does this. Let me know if you need help finding it. From owner-sqr-users@USA.NET Mon Feb 17 12:32:58 1997 Date: Mon, 17 Feb 1997 12:01:04 -0500 From: "Eric A. Eastman" Subject: Re: System Variable $username Returns Database Name On Fri, 14 Feb 1997, Jim Wolfe wrote: > Howdy All, > > I'm using SQR 3.0.7.1 and want to use the system variable $username > to print the user's userid on the report. However, it returns the > database name instead! Is this a bug in SQR or am I not holding my > mouth right? > > Ideally, I'd like to have a "$database" system variable, too, to be > able to print on the report which database the report reflects. > > Thanks. > > Jim Wolfe > Jim, $username refers to the database user. See the getenv function under the let command page 228 in the manual. For looking at environment variables. The example given is let $myuser = getenv('USER') Eric ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered; act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Mon Feb 17 12:40:30 1997 Date: Mon, 17 Feb 1997 10:44:17 -0500 From: Zutshi Ayush Subject: Re: Sqr Help (money to words) Look at PAY003.SQR and DDP001.SQR They have Money in Words as a procedure in one of their included SQC's. Take it easy now Ayush Zutshi Litton-PRC Inc. (703) 556-1415 >---------- >From: Terri Jenkins[SMTP:LDYGLFR@AOL.COM] >Sent: Sunday, February 16, 1997 8:32 PM >To: Multiple recipients of list SQR-USERS >Subject: Re: Sqr Help (money to words) > >If you are on a PeopleSoft implementation, there is a delivered SQC that does >this. Let me know if you need help finding it. > From owner-sqr-users@USA.NET Mon Feb 17 13:09:39 1997 Date: Mon, 17 Feb 1997 14:51:55 -0000 From: "Ward, Martin" Subject: Mailing SQR reports Hi, Can anybody help me with the following? I need to automatically email reports to various clients from within a SQR report (Run from Windows). Ideally I would like to use a data or text field in the report to determine the email address. Can this be done using SQR? , if not does anyone know of a 3rd party bolt-on which will achieve this. I'm new to this group so any help would be appreciated. Regards M.J.Ward MAXIMO Analyst Systems Development News International Newspapers Ltd. email : martin.ward@it.newsint.co Tel: 0171-782-6389 fax: 0171-782-6416 From owner-sqr-users@USA.NET Mon Feb 17 14:36:55 1997 Date: Mon, 17 Feb 1997 13:09:04 -0600 From: danian liu Subject: Re: Send output report file as a mail from SQR. Svetlana: You might want to try the sequence of new-report, open 1 for-writing , close 1 Hope this helps, danian liu dliu@uhc.com > I need to send (by mail) the report output file from SQR > program itself. Unfortunately it seems that this file > has been created only after the program was finished. > How can I enforce SQR to close the report file before > the End-Program command has been reached ? -- _________@^__ | _______ | | | | | ~~~~~~~ | ~~~~~~~~ ~~~~~ | ~~~~ & <>< ><> From owner-sqr-users@USA.NET Mon Feb 17 17:12:40 1997 Date: Mon, 17 Feb 1997 14:59:00 -0700 From: "Butterfield, Bruce - Brmfld" Subject: hpgl graphics This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_000_01BC1CE0.E2B695C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit can anyone convert an postscript graphic to hpgl. I have tried HiJack pro and SQR did bot like the converted file ? I have attached the file I need to have converted if you have a means to do this I would appreciate it ------ =_NextPart_000_01BC1CE0.E2B695C0 Content-Type: application/octet-stream; name="LOGO.PS" Content-Transfer-Encoding: base64 xdDTxt4BAAAKLAAAAAAAAAAAAAAeAAAAwAEAAP//SUkqAAgAAAAN/gAEAAEAAAAAAAAAAAEDAAEA AABIAAAAAQEDAAEAAAAdAAAAAgEDAAEAAAABAAAAAwEDAAEAAAABAAAABgEDAAEAAAAAAAAAEQEE AAEAAAC6AAAAFQEDAAEAAAABAAAAFgEDAAEAAAAdAAAAFwEEAAEAAAAFAQAAGgEFAAEAAACqAAAA GwEFAAEAAACyAAAAKAEDAAEAAAACAAAAAAAAAGP8CgAQJwAAY/wKABAnAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAH3/f//+/3fwAf/////////wAf/////////gAf/////////gA//////// //gA//////////AA//1f//////gA//O///////AB//f1imsqbXAB//fts1m3a2AB/+fMt112SfAD //rvddd7/uAD////9////8AD/////////8AG//3/77//v8AAD4AAAAAAAAAD5wfH8f49j4AH4h/v +/z/P8AHgDzvO8TgcAAPoH7vc/n+PwAP8P/e9/n/f4APoH6e86j/P4AeADge94APB4Afxjgcd/n+ fwAfjxg8f/v8/AAAAAAAAAAAAAAAJSFQUy1BZG9iZS0zLjAgRVBTRi0zLjAKJSVDcmVhdG9yOiBB ZG9iZSBQaG90b3Nob3AgVmVyc2lvbiAzLjAuNQolJVRpdGxlOiBjZWktbG9nby5FUFMKJSVDcmVh dGlvbkRhdGU6IEZyaSBKdW4gMjEgMTk5NiAxMDoxODozNQolJUJvdW5kaW5nQm94OiAwIDAgNzIg MjkKJSVIaVJlc0JvdW5kaW5nQm94OiAwIDAgNzIgMjkuMjgKJSVTdXBwcmVzc0RvdEdhaW5Db21w ZW5zYXRpb24KJSVEb2N1bWVudFByb2Nlc3NDb2xvcnM6IEJsYWNrCiUlRW5kQ29tbWVudHMKJSVC ZW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JlIGVuZApncmVzdG9yZQo= ------ =_NextPart_000_01BC1CE0.E2B695C0-- From owner-sqr-users@USA.NET Mon Feb 17 18:00:42 1997 Date: Mon, 17 Feb 1997 17:48:22 -0500 From: Nathan Treadway Subject: Re: System Variable $username Returns Database Name > Ideally, I'd like to have a "$database" system variable, too, to be > able to print on the report which database the report reflects. What database server are you using? If oracle, I believe there's a public-access table named GLOBAL_NAME from which you can get the SQL*Net database name. I forget the details about which INIT.ORA setting that table contains, but it will probably give you what you want. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Feb 18 11:49:17 1997 Date: Tue, 18 Feb 1997 11:24:42 EST From: Jill Parr <72604.3113@COMPUSERVE.COM> Subject: Oracle7 Hints I am just beginning to use oracle7 hints for some reports. Could someone please tell me if it is possible to use hints with SQR 3.0.8. i.e. regular SQL: select --+ index(city1) emp, name from employee where emp = 234 and city = 'NEW YORK' How would you structure this in SQR? Thanks, Jill Parr From owner-sqr-users@USA.NET Tue Feb 18 14:52:08 1997 Date: Tue, 18 Feb 1997 14:18:07 -0800 From: Ken Gartman Subject: Re: Oracle7 Hints Hi, Jill! 1. That double hyphen-style comment probably just won't do -- I think you'll need the slash-asterisk, asterisk-slash style comment. 2. As far as SQR versions are concerned, it shouldn't matter at all -- the hints are read by the optimizer of your RDBMS, so all that you need do is make sure that SQR passes the hint (which is a comment) on to the database. By the example you've given, I'd guess that ORACLE is your database -- am I correct? 3. For ease of reading and understanding, I prefer a style in which SQR commands are in ALL CAPS, and variables are in lowercase. BEGIN-SELECT ! For added speed, pass a hint to the ORACLE optimizer to use the "CITY1" index on the CITY column. /*+ INDEX ( CITY1 ) */ EMP NAME FROM EMPLOYEE WHERE EMP = 234 AND CITY = 'NEW YORK' END-SELECT Jill Parr wrote: > > I am just beginning to use oracle7 hints for some reports. Could someone please > tell me if it is possible to use hints with SQR 3.0.8. > > i.e. regular SQL: > > select --+ index(city1) > emp, name > from employee > where emp = 234 > and city = 'NEW YORK' > > How would you structure this in SQR? > > Thanks, > Jill Parr From owner-sqr-users@USA.NET Tue Feb 18 22:00:54 1997 Date: Tue, 18 Feb 1997 20:54:44 -0500 From: Jim Wolfe Subject: Extraneous Formfeeds in Complied Flat File SQR Hi Gang, I discovered another interesting anomaly today using SQR Workbench 3.0.7.1 from Windows 3.1 against a Gupta SQLBase. I created the following SQR to make a "flat file" having one record per line and no formatting: BEGIN-SETUP NO-FORMFEED PAGE-SIZE 1 900 END-SETUP BEGIN-REPORT DO main END-REPORT BEGIN-PROCEDURE main BEGIN-SELECT laborcode (0,0,8) name (0,0,25) NEW-PAGE FROM labor END-SELECT END-PROCEDURE This works well and creates the expected LIS "flat file" when executed from WITHIN "Easy SQR." However, when I compile in Easy SQR (with the -rs option) and then run the resulting SQT file with SQRT, the ouput LIS file contains the expected info but also has a formfeed character as the first character in every line from the second line onward. Has anyone else encountered this? Any known workarounds/patches. Thanks. From owner-sqr-users@USA.NET Wed Feb 19 08:11:14 1997 Date: Wed, 19 Feb 1997 07:58:23 -0500 From: Nathan Treadway Subject: Re: Extraneous Formfeeds in Complied Flat File SQR > I discovered another interesting anomaly today using > SQR Workbench 3.0.7.1 from Windows 3.1 against > a Gupta SQLBase. I created the following SQR to make > a "flat file" having one record per line and no formatting: > > BEGIN-SETUP > NO-FORMFEED > PAGE-SIZE 1 900 > END-SETUP [...] > > Has anyone else encountered this? Any known workarounds/patches. > Thanks. I'm curious to know if this is a known bug for your version of SQR. I haven't heard of this particular bug but I have heard of similar ones for other platforms. If you have some idea of how many lines will be in your generated file, you may be able to say "page-size 9999 900" (or whatever size is big enough for your output file), forcing everything onto one logical page and avoiding the formfeeds. You may run into memory-size problems under windows, though. Alternatively, if you are really just doing simple, line-by-line output, you can use OPEN and WRITE instead of PRINT. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Feb 19 13:28:31 1997 Date: Wed, 19 Feb 1997 12:38:01 -0500 From: Larry Young Subject: Re: Extraneous Formfeeds in Complied Flat File SQR I have had problems with formfeed. The best way around it is to use no-formfeed in the setup section and then use the write command to create extracts. ______________________________________________ Larry Young Work.... 508-459-4700 Continental Cablevision Fax...... 508-453-4760 900 Chelmsford Street Tower Two, Fifth Floor Lowell, Ma. 01851 Work ................. mailto:lyoung@continental.com Personal............. mailto:lyoung@world.std.com > >Hi Gang, > >I discovered another interesting anomaly today using >SQR Workbench 3.0.7.1 from Windows 3.1 against >a Gupta SQLBase. I created the following SQR to make >a "flat file" having one record per line and no formatting: > >BEGIN-SETUP > NO-FORMFEED > PAGE-SIZE 1 900 >END-SETUP > >BEGIN-REPORT > DO main >END-REPORT > >BEGIN-PROCEDURE main >BEGIN-SELECT >laborcode (0,0,8) >name (0,0,25) > NEW-PAGE > FROM labor >END-SELECT >END-PROCEDURE > >This works well and creates the expected LIS "flat file" when >executed from >WITHIN "Easy SQR." > >However, when I compile in Easy SQR (with the -rs option) and then >run >the resulting SQT file with SQRT, the ouput LIS file contains the >expected info >but also has a formfeed character as the first character in every >line from the second >line onward. > >Has anyone else encountered this? Any known workarounds/patches. >Thanks. > From owner-sqr-users@USA.NET Wed Feb 19 17:11:33 1997 Date: Wed, 19 Feb 1997 16:42:25 -0500 From: Scott McCann Subject: SQR 6003 error Using SQR v 3.0.6-1 I am receiving "SQR 6003 - Unexpected end-of-file while processing the printer file" error messages. The only thing out of the ordindary the SQR is using; 1. declare-layout default_portrait orientation=portrait end-declare 2 declare-report edc020 layout=default_portrait printer-type=hplaserjet end-declare 3 last-page () Removing the declare-report and last-page will allow the program to run without error. Has anyone encountered the SQR 6003 error message under these conditions? Thanks in advance, --_ Scott _-- From owner-sqr-users@USA.NET Wed Feb 19 21:07:08 1997 Date: Wed, 19 Feb 1997 20:37:59 -0500 From: Allen Wong Subject: SQR unions ? Can SQR handle unions, if yes how can I use it ? thanks From owner-sqr-users@USA.NET Wed Feb 19 22:35:40 1997 Date: Thu, 20 Feb 1997 14:10:59 +1100 From: "Xavier K. Lau" Subject: Re: SQR unions ? This is a multi-part message in MIME format. --------------16D83C805699 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Allen Wong wrote: > > Can SQR handle unions, if yes how can I use it ? > > thanks Hi Allan, Yes, SQR can definitely handle SQL UNION. Try this one case053.sqr. -- Xavier K. Lau SQRIBE Technologies Asia Pacific Technical Support Engineer E-Mail : xavier.lau@miti.com.au OR support@miti.com.au --------------16D83C805699 Content-Type: text/plain; charset=us-ascii; name="case053.sqr" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="case053.sqr" ! ! union.sqr ! begin-program do proc1 end-program begin-setup declare-layout default max-lines=25 end-declare end-setup begin-procedure proc1 begin-select ! 'A' &dum (,1) appt_date &ad (,5) appt_time (,25) appointment (,40) WRAP 35 5 position (+1) ! add 1 to #appt_count ! if #current_line > {mypagemax} ! new-page ! end-if from appts union select ! 'B' &dum , appt_date &ad , appt_time , appointment from appts order by 1 , 2 end-select !let $sumline = 'Total Appts. ' || to_char(#appt_count) || - !'. Final date = ' || &ad !print $sumline (+2,1) !date-time end-procedure ! proc1 --------------16D83C805699-- From owner-sqr-users@USA.NET Thu Feb 20 00:26:38 1997 Date: Thu, 20 Feb 1997 00:02:59 -0500 From: Brenda Sherwood Subject: PeopleSoft Opportunities List Server ANNOUNCEMENT: LIST SERVER FOR PEOPLESOFT PROFESSIONALS PeopleSoft-Ops is a weekly email newsletter which highlights current, real opportunities in the PeopleSoft contract and permanent arena. PeopleSoft-Ops is published by Brenda Sherwood at Magellan Consulting, Inc. Magellan Consulting represents the BEST opportunities in the PeopleSoft marketplace through our network of top-notch permanent placement and contract firms. To be added to our email distribution list for the PeopleSoft Opportunities report: Send an message from your email address to: majordomo@majordomo.pobox.com With the message: subscribe peoplesoft-ops NOTE: If you were previously subscribed to PS_OPS, you have already been moved to PeopleSoft-Ops and should be receiving reports. Brenda S. Sherwood Magellan Consulting, Inc. 8046 Roswell Road Suite 101 Atlanta, GA 30350-3930 Phone/Fax: 770-998-2703 Alternate Phone/Fax: 770-993-5739 brendas@mindspring.com From owner-sqr-users@USA.NET Thu Feb 20 11:36:26 1997 Date: Thu, 20 Feb 1997 07:58:44 -0800 From: Mario Insigne Subject: Re: SQR unions ? Allen, Yes, SQR can handle union. How you use it is: The same usage as you use it in SQL. Mario On Wed, 19 Feb 1997, Allen Wong wrote: > Can SQR handle unions, if yes how can I use it ? > > thanks > From owner-sqr-users@USA.NET Thu Feb 20 21:17:48 1997 Date: Thu, 20 Feb 1997 20:54:54 -0500 From: "Mark W. Salem" Subject: Spell.sqc --- Oops! --PART.BOUNDARY.0.25493.emout03.mail.aol.com.856490092 Content-ID: <0_25493_856490092@emout03.mail.aol.com.130384> Content-type: text/plain Ok, I'm forgetfull. You found me out. I said I would attach my version of Spell.sqc, and here it is.... --PART.BOUNDARY.0.25493.emout03.mail.aol.com.856490092 Content-ID: <0_25493_856490092@emout03.mail.aol.com.130385> Content-type: text/plain; name="SPELL.SQC" Content-Transfer-Encoding: quoted-printable ! SPELL.INC 10/23/95 ! ! Copyright (C) 1995, 1996 MITI All Worldwide Rights Reserved ! ! Disclaimer ! ! This program is provided as an example and, while it is thought to be ! free ! from defect, MITI makes no representations or warranties, either ! expressed or implied, with respect to the adequacy of the program in ! regard ! to merchantability or fitness for any particular result. The program ! is ! provided "as is" and the entire risk as to quality and performance is ! with ! the buyer. In no event shall MITI be liable for special, direct, ! indirect or consequential damages resulting from any defect in this ! program. ! Some states do not allow the exclusion or limitations of implied ! warranties ! or liability for incidental or consequential damages, in which case ! the ! above limitations and exclusions may not apply to you. ! !************************************************************************= *** ! ! Modification History: ! ! Date Eng Description ! -------- --- !------------------------------------------------------------ ! (_V3.5.3_) ! 10-23-95 LHS (DEV-4039) ! o Incorporate into V3.5 codeline ! (_V3.5.4_) ! 04-03-96 PAB (DEV-4088) ! o Cleaned up the modification history. ! (_V4.0_) ! 06-04-96 AIK (1355) ! o Incorporate into V4.0 codeline. ! (_EOH_) !************************************************************************= *** begin-procedure spell_number(#num,:$str) let $str =3D '' ! break the number to it's 3-digit parts let #trillions =3D floor(#num / 1000000000000) let #billions =3D mod(floor(#num / 1000000000),1000) let #millions =3D mod(floor(#num / 1000000),1000) let #thousands =3D mod(floor(#num / 1000),1000) let #ones =3D mod(floor(#num),1000) ! spell each 3-digit part do spell_3digit(#trillions,'trillion',$str) do spell_3digit(#billions,'billion',$str) do spell_3digit(#millions,'million',$str) do spell_3digit(#thousands,'thousand',$str) do spell_3digit(#ones,'',$str) =0D !------------------------------------------------------------------------= ! ! The following was added by Mark W. Salem, City of Pittsburgh to extend= ! this call program's formatting of numbers into a string. = ! Modified on February 10, 1997 ! !------------------------------------------------------------------------= - let $str_num =3D to_char(#num) unstring $str_num by '.' into $dummy $remain =0D if $remain >=3D '09' let #remain =3D to_number($remain) =0D if #remain > 9 let #remainder =3D #remain else evaluate #remain when =3D 0 let #remainder =3D 00 break when =3D 1 let #remainder =3D 10 break when =3D 2 let #remainder =3D 20 break when =3D 3 let #remainder =3D 30 break when =3D 4 let #remainder =3D 40 break when =3D 5 let #remainder =3D 50 break when =3D 6 let #remainder =3D 60 break when =3D 7 let #remainder =3D 70 break when =3D 8 let #remainder =3D 80 break when =3D 9 let #remainder =3D 90 break end-evaluate end-if =0D let $remain =3D to_char(#remainder) end-if =0D if $remain =3D '' or $remain =3D '0' or $remain =3D '00' let $remain =3D 'XX' end-if let $leading_stars =3D '****' concat $str with $leading_stars let $str2 =3D upper($leading_stars) let $str =3D translate($str2,' ','-') let $str2 =3D rtrim($str,'-') concat ' and ' with $str2 concat $remain with $str2 concat '/100 Dollars****' with $str2 let $str =3D $str2 =0D end-procedure ! spell_number =0D begin-procedure spell_3digit(#num,$part_name,:$str) let #hundreds =3D floor(#num / 100) let #rest =3D mod(#num,100) if #hundreds do spell_digit(#hundreds,$str) concat 'hundred ' with $str end-if if #rest do spell_2digit(#rest,$str) end-if if #hundreds or #rest if $part_name !=3D '' concat $part_name with $str concat ' ' with $str end-if end-if end-procedure ! spell_3digit =0D begin-procedure spell_2digit(#num,:$str) let #tens =3D floor(#num / 10) let #ones =3D mod(#num,10) if #num < 20 and #num > 9 evaluate #num when =3D 10 concat 'ten ' with $str break when =3D 11 concat 'eleven ' with $str break when =3D 12 concat 'twelve ' with $str break when =3D 13 concat 'thirteen ' with $str break when =3D 14 concat 'fourteen ' with $str break when =3D 15 concat 'fifteen ' with $str break when =3D 16 concat 'sixteen ' with $str break when =3D 17 concat 'seventeen ' with $str break when =3D 18 concat 'eighteen ' with $str break when =3D 19 concat 'nineteen ' with $str break end-evaluate else evaluate #tens when =3D 2 concat 'twenty' with $str break when =3D 3 concat 'thirty' with $str break when =3D 4 concat 'forty' with $str break when =3D 5 concat 'fifty' with $str break when =3D 6 concat 'sixty' with $str break when =3D 7 concat 'seventy' with $str break when =3D 8 concat 'eighty' with $str break when =3D 9 concat 'ninety' with $str break end-evaluate if #num > 20 if #ones concat '-' with $str else concat ' ' with $str end-if end-if if #ones do spell_digit(#ones,$str) end-if end-if end-procedure ! spell_2digit =0D begin-procedure spell_digit(#num,:$str) evaluate #num when =3D 1 concat 'one ' with $str break when =3D 2 concat 'two ' with $str break when =3D 3 concat 'three ' with $str break when =3D 4 concat 'four ' with $str break when =3D 5 concat 'five ' with $str break when =3D 6 concat 'six ' with $str break when =3D 7 concat 'seven ' with $str break when =3D 8 concat 'eight ' with $str break when =3D 9 concat 'nine ' with $str break end-evaluate end-procedure ! spell_digit =0D --PART.BOUNDARY.0.25493.emout03.mail.aol.com.856490092-- From owner-sqr-users@USA.NET Thu Feb 20 22:02:33 1997 Date: Thu, 20 Feb 1997 20:52:02 -0500 From: "Mark W. Salem" Subject: Converting Money to Words Thanks to everyone who responded to my question about converting money to words; e.g., $53.62 --> * * * *FIFTY-THREE and 62/100 DOLLARS**** I used the Spell.sqc as a model and added additional code to create the leading asterisks, the embedded dashes, the 'and', the pennies preceding the '/100 Dollars and the closing asterisks. Prior to this, the above example would have looked like the following: Fifty Three As you can see there were no leading or closing asterisks (no biggie) but the exclusion of the pennies wasn't acceptable to the client. I have attached my version of Spell.sqc for your perusal and use. Thanks again. From owner-sqr-users@USA.NET Fri Feb 21 09:42:07 1997 Date: Fri, 21 Feb 1997 08:38:36 -0800 From: Allan Geetter Subject: Re: Converting Money to Words Mark W. Salem wrote: > > Thanks to everyone who responded to my question about converting money > to words; e.g., $53.62 --> * * * *FIFTY-THREE and 62/100 DOLLARS**** > > I used the Spell.sqc as a model and added additional code to create the > leading asterisks, the embedded dashes, the 'and', the pennies preceding the > '/100 Dollars and the closing asterisks. Prior to this, the above example > would have looked like the following: Fifty Three As you can see > there were no leading or closing asterisks (no biggie) but the exclusion of > the pennies wasn't acceptable to the client. > > I have attached my version of Spell.sqc for your perusal and use. > > Thanks again. Thanks for the information Mark but the "attached" seems not to be attached. If you would, could you please send again? Thanks, Allan Geetter University of Hartford From owner-sqr-users@USA.NET Fri Feb 21 11:44:36 1997 Date: Fri, 21 Feb 1997 09:57:38 CST From: Elizabeth Donahue Subject: SQR3 font Bold We are in the process of converting from SQR 2.27 to SQR 3.0.5. When testing our existing files, I found that numeric variables with an edit pattern will not print after using a graphic font command if the font is bold. In the code below, the words 'Customer Total:' print bolded. The numeric values do not print at all. If I move the numeric values to a text variable (edited), they will print as bold text. Does anyone know how to get this to work without rewriting all of the reports? #DEFINE COURIER 3 #DEFINE COURIER_BOLD 300 Begin-Procedure Cust-Tot Next-Listing No-Advance Need=3 Print '------------ ------------ ------------ ------------ ' (,73) Print '------------ ------------' () graphic () font {COURIER_BOLD} Print 'Customer Total: ' (,56) Print #SUM_CUST_BAL () Edit 99,999,999.99 Print #SUM_CUST_BAL () Edit 99,999,999.99 Print #SUM_CUST_BAL_C (,86) Edit 99,999,999.99 Print #SUM_CUST_BAL_30 (,100) Edit 99,999,999.99 Print #SUM_CUST_BAL_60 (,114) Edit 99,999,999.99 Print #SUM_CUST_BAL_90 (,128) Edit 99,999,999.99 Print #SUM_CUST_BAL_120 (,142) Edit 99,999,999.99 graphic () font {COURIER} Print '------------ ------------ ------------ ------------ ' (+1,73) Print '------------ ------------' () TIA, Elizabeth /*********************************************************************** | Elizabeth Donahue - Puffer-Sweiven, Inc. | | P.O. Box 2000 voice: (281) 274-6430 | | Stafford, Tx. 77477 fax: (281) 274-6485 | | exd@puffer.com | ***********************************************************************/ From owner-sqr-users@USA.NET Fri Feb 21 14:36:02 1997 Date: Fri, 21 Feb 1997 14:21:26 -0500 From: Ray Ontko Subject: Re: SQR3 font Bold > We are in the process of converting from SQR 2.27 to SQR 3.0.5. When > testing our existing files, I found that numeric variables with an edit > pattern will not print after using a graphic font command if the font > is bold. In the code below, the words 'Customer Total:' print bolded. > The numeric values do not print at all. If I move the numeric values > to a text variable (edited), they will print as bold text. Does anyone > know how to get this to work without rewriting all of the reports? > > > #DEFINE COURIER 3 > #DEFINE COURIER_BOLD 300 > > Begin-Procedure Cust-Tot > Next-Listing No-Advance Need=3 > Print '------------ ------------ ------------ ------------ ' (,73) > Print '------------ ------------' () > graphic () font {COURIER_BOLD} > Print 'Customer Total: ' (,56) > Print #SUM_CUST_BAL () Edit 99,999,999.99 > Print #SUM_CUST_BAL () Edit 99,999,999.99 > Print #SUM_CUST_BAL_C (,86) Edit 99,999,999.99 > Print #SUM_CUST_BAL_30 (,100) Edit 99,999,999.99 > Print #SUM_CUST_BAL_60 (,114) Edit 99,999,999.99 > Print #SUM_CUST_BAL_90 (,128) Edit 99,999,999.99 > Print #SUM_CUST_BAL_120 (,142) Edit 99,999,999.99 > graphic () font {COURIER} > Print '------------ ------------ ------------ ------------ ' (+1,73) > Print '------------ ------------' () Elizabeth, I think GRAPHIC FONT is a declining feature of SQR. You might use ALTER-PRINTER instead. This might solve your problem. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Feb 21 15:02:31 1997 Date: Fri, 21 Feb 1997 11:36:59 -0800 From: "John W. Reynolds" Subject: User written functions Is it possible to develop user-written functions for SQR in any other language besides C, specifically PL/SQL? How would someone go about making these functions available to SQR? Thanks in advance for any assistance. From owner-sqr-users@USA.NET Fri Feb 21 15:55:03 1997 Date: Fri, 21 Feb 1997 15:18:01 -0500 From: Marlon Corrales Subject: Re: User written functions A workaround solution for this one is to call a PRO*C program which calls the PL/SQL procedure. For Ingres and Sybase, you can use the SQR EXECUTE command to execute a stored procedure. ============================================================ >Is it possible to develop user-written functions for SQR in any other >language besides C, specifically PL/SQL? How would someone go about >making these functions available to SQR? Thanks in advance for any >assistance. From owner-sqr-users@USA.NET Fri Feb 21 17:11:52 1997 Date: Fri, 21 Feb 1997 16:41:03 -0500 From: "William G. Northen" Subject: Re: User written functions I have several stored SQL procedures which return information to the SQR program through a Begin-SQL Procedure paragraph where it sends certain @variables to the stored procedure. These can be nested and I guess can call other language modules as well I think. See the users manual. You can issue commands to the shell also. At 11:36 02/21/97 -0800, you wrote: >Is it possible to develop user-written functions for SQR in any other >language besides C, specifically PL/SQL? How would someone go about >making these functions available to SQR? Thanks in advance for any >assistance. > > Wm. G. Northen "Founded by Thomas Jefferson, 1819" Programmer/Analyst Unix, SQL, SQR, Sybase, Windows, ECT, Development Group Internet wgn3c@phil.dev.virginia.edu University of Virginia Tel (804) 924-3949 From owner-sqr-users@USA.NET Fri Feb 21 17:25:35 1997 Date: Fri, 21 Feb 1997 17:11:54 -0500 From: Nathan Treadway Subject: Re: User written functions > Is it possible to develop user-written functions for SQR in any other > language besides C, specifically PL/SQL? How would someone go about > making these functions available to SQR? Thanks in advance for any > assistance. You can't use PL/SQL to write functions "SQR" functions (for example, ones that can be used in a LET statement). However, you can call PL/SQL functions from within a begin-sql or begin-select paragraph. You can also write anonymous PL/SQL in a begin-sql paragraph; just double any semicolons you find in the program text. (See http://www.sqrug.com/~faqs/ora_faq/plsqlcal.htm for more detailed info on this.) Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Sat Feb 22 10:27:08 1997 Date: Sat, 22 Feb 1997 10:02:18 -0500 From: Shivakumar Rajagopal Subject: SQR Position Wanted I am on H1 Visa and have been working on an (HP Unix / Oracle7 / SQR3) project since Oct 1995 at chicago. My project is likely to get over by April/May 1997. I would like to be based in Chicago. If there are any positions please contact me on srajago774@aol.com. shiv From owner-sqr-users@USA.NET Mon Feb 24 10:39:37 1997 Date: Mon, 24 Feb 1997 09:53:00 EST From: David Colangelo Subject: Resetting Page Counts We're using SQR 3.0.13.xx to go against Oracle and Sybase databases and are running into the following situation. We have several reports which produce bills, customer statements,etc. In the header of each page we include the page number as page x of xx using page-number and last-page. Since these are bills, we'd like to reset the values after each customer. Is there a way to do this? Has anyone run into this situation? Also, does anyone know how to set up the declarations and function calls correctly to kick off SQR from within Visual Basic 4.0? Thank you in advance, David Colangelo American Management Systems From owner-sqr-users@USA.NET Mon Feb 24 11:45:28 1997 Date: Mon, 24 Feb 1997 08:13:25 -0700 From: David Tucker Subject: Re: Resetting Page Counts SQR has some great extensions for PowerBuilder that allow the user to run SQR reports from within a PowerBuilder application. We are test driving them right now to test the ability to run reports remotely on a UNIX box. I don't think they have anything for VB though. I assume you should be able to run the sqr.exe and pass it the correct parameters (report name, etc). This will allow you to run SQR on the client PC only which I don't know if that is what you want since you are producing bills. I am currently working on a project that produces bills and we are going to use the SQR version for UNIX. David From owner-sqr-users@USA.NET Mon Feb 24 13:19:37 1997 Date: Mon, 24 Feb 1997 11:31:09 EST From: Brian McGraw Subject: Re[2]: Resetting Page Counts I am testing this right now, and it looks like the only thing that the Powerbuilder extensions do is call a DLL that handles all of the SQR processing. Theoretically, this would mean that you could do the same thing through Visual Basic. Brian ______________________________ Reply Separator _________________________________ Subject: Re: Resetting Page Counts Author: SQR-USERS@USA.NET at Internet Date: 2/24/97 11:19 AM SQR has some great extensions for PowerBuilder that allow the user to run SQR reports from within a PowerBuilder application. We are test driving them right now to test the ability to run reports remotely on a UNIX box. I don't think they have anything for VB though. I assume you should be able to run the sqr.exe and pass it the correct parameters (report name, etc). This will allow you to run SQR on the client PC only which I don't know if that is what you want since you are producing bills. I am currently working on a project that produces bills and we are going to use the SQR version for UNIX. David From owner-sqr-users@USA.NET Mon Feb 24 15:16:43 1997 Date: Mon, 24 Feb 1997 14:43:37 -0500 From: Marlon Corrales Subject: Storing Total Number of Pages Hi! Is there a way to store in a variable the total number of pages in a report. Some of the pages in the report being produced are "dummy" pages which doesn't count as a page. I need to output: Page 1 of N where N = ceiling (#real_total_number_of_pages / 2) Can I use last-page to get the total number of pages and store this in a variable? Thanks. From owner-sqr-users@USA.NET Mon Feb 24 15:23:33 1997 Date: Mon, 24 Feb 1997 09:44:50 -0800 From: Raja Rajaram Subject: Re: Resetting Page Counts Hi David, I have tried resetting the page numbers after each customer. I actually have posted it before. You could go to the archive and look at the posting with the subject Page Numbering. I have gotten many responses. The best way I have found is to create new reports for each customer for e.g.: let #repcount = 1 let $Enc_Rep = to_char(#repcount) new-report $Enc_Rep begin-select distinct Customer_iid ... add 1 to #repcount let $Enc_Rep = to_char(#repcount) new-report $Enc_Rep from ... It produces many files. There are many ways to get around it I guess. If you get to know please let me know. My trouble is that I need it in spf format. Regarding VB 4.0, I have been calling SQR from VB 3.0 and I don't think it should be any big difference through 4.0. The declaration is: Declare Function sqrw Lib "sqrwin.dll" Alias "sqr" (ByVal C$, ByVal h%) As Integer and call it like this: status% = sqrw(CommandLine, 0) If status% = 0 Then // report is good Else // Error End If Hope this helps!! Raja rrajaram@wise.com ____________________Reply Separator____________________ Subject: Resetting Page Counts Author: SQR-USERS@USA.NET Date: 2/24/97 9:53 AM We're using SQR 3.0.13.xx to go against Oracle and Sybase databases and are running into the following situation. We have several reports which produce bills, customer statements,etc. In the header of each page we include the page number as page x of xx using page-number and last-page. Since these are bills, we'd like to reset the values after each customer. Is there a way to do this? Has anyone run into this situation? Also, does anyone know how to set up the declarations and function calls correctly to kick off SQR from within Visual Basic 4.0? Thank you in advance, David Colangelo American Management Systems From owner-sqr-users@USA.NET Wed Feb 26 15:02:13 1997 Date: Wed, 26 Feb 1997 08:01:22 -0500 From: Andrew Blakeslee Subject: Printing from SQR Viewer Whenever I attempt to print from the SQR viewer utility, the resulting printout only seems to print the left half (approximately) of the report. If I print (copy) the .lis file that is generated at the same time (using the -keep option), It prints fine. I have noticed this problem at several different clients, using various versions of SQR. Has anyone else encountered this problem and found a fix or workaround? I hesitate to change any of the page setup or printer information, as there is no problem with printing reports directly, only from SQR Viewer. Thanks, Andy From owner-sqr-users@USA.NET Wed Feb 26 18:43:03 1997 Date: Wed, 26 Feb 1997 18:10:37 +0000 From: Charlie Yao Subject: How to calculate date ? Hi, =20 I am writing a SQR report to show the average number of days of the= reps=20 we hired. We have a date column in the informix online database. Since= =20 there is no date type in SQR3, how can I calculate the days ? =20 Can anybody help ? =20 Thank you in Advance.=20 =20 =20 Charlie From owner-sqr-users@USA.NET Thu Feb 27 08:41:27 1997 Date: Thu, 27 Feb 1997 07:36:13 -0500 From: Shivakumar Rajagopal Subject: Re: How to calculate date ? hi there..... you can use SQL to calculate the date difference between the date column and the sysdate and then print the difference in SQR. Eg.. begin-select (date_column - sysdate) &diff from table_name where ...... end-select hope it is useful shiv From owner-sqr-users@USA.NET Thu Feb 27 12:12:49 1997 Date: Thu, 27 Feb 1997 08:29:14 -0700 From: David Pelinka Subject: adding a function to ufunc.c I'm having trouble with getting a function I added to ufunc.c to work. I'm getting a bus error (coredump) when I call the function. The function is trivial, takes no arguments and returns a number. The steps I performed were 1)compile the function 2) relink SQR with makefile.715. Can anyone who has added functions to ufunc see what I may be doing wrong? Here is the output of the function: SQR: Structured Query Report Writer V3.0.5 Copyright (C) MITI, 1994. All Worldwide Rights Reserved. testing max function... 3.000000 testing seed1 function... Bus error(coredump) Here are my additions to ufunc.c DECLARATION static void seed1 CC_ARGS((double *)); USERFUNCS ARRAY "seed1", 'n', 0, "", PVR seed1, FUNCTION /* seed1 - Return a number */ static void seed1 CC_ARGL((result)) CC_LARG(double *, result) { double t = 12; *result = t; return; } Thank you. From owner-sqr-users@USA.NET Thu Feb 27 12:55:40 1997 Date: Thu, 27 Feb 1997 19:06:07 PST From: semech Subject: FW: RE: Printing from SQR Viewer Andy, I think I've saw this in the past. Try to look on the setup of your printer driver (in the "control panel" of Windows). If you have control on "buffer size" or "memory size" and it set to 1MB try to change it to 4MB or more. Arnon ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 27/2/97 Time: 06:50:19 PM ------------------------------------- --- On Wed, 26 Feb 1997 08:01:22 -0500 Andrew Blakeslee wrote: > Whenever I attempt to print from the SQR viewer utility, the resulting > printout only seems to print the left half (approximately) of the report. > If I print (copy) the .lis file that is generated at the same time (using > the -keep option), It prints fine. I have noticed this problem at >several > different clients, using various versions of SQR. Has anyone else > encountered this problem and found a fix or workaround? I hesitate to > change any of the page setup or printer information, as there is no >problem > with printing reports directly, only from SQR Viewer. > > Thanks, > Andy > From owner-sqr-users@USA.NET Thu Feb 27 13:08:25 1997 Date: Thu, 27 Feb 1997 09:22:59 -0800 From: Albert howard Subject: Cobol style signed fields Is there a way in SQR to generate COBOL style signed fields? I am referring to the type where the last digit is turned to a character that identifies the sign. From owner-sqr-users@USA.NET Thu Feb 27 14:19:33 1997 Date: Thu, 27 Feb 1997 13:27:00 -0500 From: Jim Hardesty Subject: Cobol style signed fields -Reply Albert, We had the same need and created a set of routines to accomplish this. Sort of a brute force conversion from a numeric field to a character field with zoned decimal characteristics. I will send a copy of them to you directly. If anyone else is interested, let me know. jim jim hardesty jhardest@lmberry.com The Berry Company Dayton, OH >>> Albert howard 02/27/97 12:22pm >>> Is there a way in SQR to generate COBOL style signed fields? I am referring to the type where the last digit is turned to a character that identifies the sign. From owner-sqr-users@USA.NET Thu Feb 27 15:38:56 1997 Date: Thu, 27 Feb 1997 14:30:15 -0500 From: Felix Rodriguez Subject: PostScript Virtual Memory Error Hi Everyone, I am having a problem printing a report in SQR. I am printing to a postscript printer and I am getting the following error message: VMerror: PostScript virtual memory exhausted - offending command is moveto Does anyone know what would cause this error. This error only occurs when there are a large number of pages to print on the report. Currently its Dying at page 633. Any help from anyone will be appreciated. Felix Rodriguez Senior Systems Analyst University of Hartford rodriguez@uhavax.hartford.edu http://uhavax.hartford.edu/~rodriguez From owner-sqr-users@USA.NET Thu Feb 27 19:37:10 1997 Date: Thu, 27 Feb 1997 19:13:14 -0500 From: Zutshi Ayush Subject: Re: How to calculate date ? Hey Charlie One easy way to calculate dates is to use the database engine to do it for you. You can look up all date functions in you Informix SQL manual: e.g. a Sybase example: begin-SQL datediff( $date1,$Date2,1) &DateDifference end-SQL >---------- >From: Charlie Yao[SMTP:charlie@FRX.COM] >Sent: Wednesday, February 26, 1997 1:10 PM >To: Multiple recipients of list SQR-USERS >Subject: How to calculate date ? > > Hi, > > I am writing a SQR report to show the average number of days of the >reps > we hired. We have a date column in the informix online database. Since > there is no date type in SQR3, how can I calculate the days ? > > Can anybody help ? > > Thank you in Advance. > > > Charlie > From owner-sqr-users@USA.NET Fri Feb 28 16:18:39 1997 Date: Fri, 28 Feb 1997 15:52:26 -0500 From: Felix Rodriguez Subject: Error Printing Postscript Report from SQR Hi Everyone, I was finally able to figure out the solution to my error. The error I was getting: VMerror: Postscript virtual memory exhausted Was being caused by stuff getting accumulated in Virtual Memory. The Adobe Postscript Reference Manual suggests that a save be done before each page and a restore command be done before showpage is executed. This cleans up virtual memory between each page. I now have no problem printing more than 633 pages. Hope this helps anyone out there that was as frustrated as I was. I would also like to thank God without him I can do nothing. Felix Rodriguez Senior Systems Analyst University of Hartford rodriguez@uhavax.hartford.edu http://uhavax.hartford.edu/~rodriguez From owner-sqr-users@USA.NET Fri Feb 28 16:33:36 1997 Date: Thu, 27 Feb 1997 08:58:00 -0700 From: Robert Goshko Subject: Re: How to calculate date ?... New Text Item: How to calculate date ? >> Hi, >> I am writing a SQR report to show the average number of days of the reps >> we hired. We have a date column in the informix online database. Since >> there is no date type in SQR3, how can I calculate the days ? I have a set of functions for calculating dates, and that sort of thing... please see the attached text file... Enjoy Later... Rob begin 600 datefunc.sqc M(2HJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ#0HA(" @(" @(" @(" @(" @ M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @ M(" @(" @(" @("H-"B$@(" @(" @(" @("!#;W!Y2!I;F-L M=61E65A7EY>2UM;2UD9"D@;V8@=&AE("H-"B$@(" @(" @(" @(" @(" @ M(" @("!F:7)S="!A;F0@;&%S="!D87ES(&]F('1H92!M;VYT:"X@(" @(" @ M(" @(" @(" @*@T*(2 @(" @(" @(" @(" @("!'970M36]N=&@M3F%M92@@ M(TUO;G1H+" Z)$UO;G1H3F%M92 I(" @(" @(" @(" @(" @(" J#0HA(" @ M(" @(" @(" @(" @(" @("H@5VEL;"!R971U2U/9BU7965K*" D1&%T92P@.B-$3U<@*2 @(" @(" @(" @(" @(" @ M(" @(" @*@T*(2 @(" @(" @(" @(" @(" @(" J(%=I;&P@2!O9B!T:&4@=V5E:R @(" J#0HA(" @(" @ M(" @(" @(" @(" @(" @=&AA="!T:&4@9&%T92!F86QL2P@2D@=VET:&EN(&$@7,M0F5T=V5E;B@@)%-T87)T+" D16YD+" Z(U=O2D@8F5T=V5E;B!A;GD@=&\@ M9&%T97,N(" @(" @(" @(" @(" @(" J#0HA(" @(" @(" @(" @(" @(%-U M8G1R86-T+49R;VTM1&%T92@@)$1A=&4L("-686QU92P@)%1Y<&4L(#HD3F5W M1&%T92 I("H-"B$@(" @(" @(" @(" @(" @(" @*B!7:6QL('-U8G1R86-T M('1H92!N=6UB97(@;V8@9&%Y7EY>2UM;2UD9"D@=&\@(" @*@T*(2 @(" @(" @ M(" @(" @(" @(" @(&$@2G5L:6%N(&1A=&4@*&YU;6)E7DM M;6TM9&0I+B @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @("H- M"B$@(" @(" @(" @(" @(" @061D+51O+41A=&4H("1$871E+" C5F%L=64L M("14>7!E+" Z)$YE=T1A=&4@*2 @(" @(" @*@T*(2 @(" @(" @(" @(" @ M(" @(" J(%=I;&P@861D('1H92!S<&5C:69I960@;G5M8F5R(&]F(&1A>7,L M(&UO;G1H65A7!E+" Z(U9A;'5E("D@*@T*(2 @(" @(" @(" @(" @(" @ M(" J(%=I;&P@7DM;6TM9&0@*#0@9&EG M:70@>65AF5R;W,N(" @(" @(" @(" @(" @ M(" @(" @(" @(" @(" @(" @(" @(" @("H-"B$@(" @(" @(" @(" @(" @ M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @ M(" @(" @(" @*@T*(2 @(" @("!*=6QI86X@.B!7:&5N('5S:6YG('1H92!* M=6QI86X@9&%T92!F=6YC=&EO;G,L('1H92!A8V-U2!I2!D871E2!D971E65A M2!O9B Q.3DV*0T* M(0T*(2 @+2!687)I86)L97,@+0T*(0T*(2 @(" @(" @26YP=70@.B C665A M65A<@T*(2 @ M(" @36]D:69I960@.B!N+V$-"B$@57-E9"]#65A<@T*(2 @(" @(" @ M(" @(" @(" @(" @(" @(&-A;&-U;&%T:6]N#0HA(" @(" @(" @(" @(" @ M("-"87-E("T@57-E9"!I;B!C86QC=6QA=&EN9R!T:&4@8F%S92!N=6UB97(@ M;V8-"B$@(" @(" @(" @(" @(" @(" @(" @("!D87ES(&EN('1H92!Y96%R M#0HA#0HA(" @(" M(%1A8FQE2!C86QC=6QA M=&EO;G,@65A65A65A M65A7EY>2UM;2UD9" I#0HA(" @(" @(" @(" @ M(" @("1,87-T1&%T92 M(%1H92!L87-T(&1A=&4@;V8@=&AE(&UO;G1H#0HA M(" @(" @(" @(" @(" @(" @(" @(" @(" @("@@1F]R;6%T.B!Y>7EY+6UM M+61D("D-"B$@(" @($UO9&EF:65D(#H@;B]A#0HA(%5S960O0W)E871E9" Z M("1996%R("T@5&AE("-996%R('9A'0-"B$@(" @(" @(" @(" @(" @(" @(" @ M(" @<&%D9&5D('=I=&@@82!L96%D:6YG(# @9F]R('-I;F=L90T*(2 @(" @ M(" @(" @(" @(" @(" @(" @("!D:6=I=',-"B$@(" @(" @(" @(" @(" @ M(U-T87)T("T@5&AE(&YU;6)E7,@:6X@=&AI7,@*'1O=&%L*2!I;B!T:&ES('EE M87(-"B$@(" @(" @(" @(" @(" @(" @(" @(" @('=H96X@=&AE(&-A;&-U M;&%T:6YG(&9O2!O M9B!T:&4@;6]N=&@-"B$@(" @(" @(" @(" @(" @)$1A>7,@+2!4:&4@(T1A M>7,@=F%R:6%B;&4@8V]N=F5R=&5D('1O(&$@7,@/2 C16YD M("T@(U-T87)T#0H-"B @($Q%5" D1&%Y2<-"B @(" @(" @ M($)214%+#0H@(" @("!72$5.(#T@,PT*(" @(" @(" @3$54("1-;VYT:$YA M;64@/2 G36%R8V@G#0H@(" @(" @("!"4D5!2PT*(" @(" @5TA%3B ](#0- M"B @(" @(" @($Q%5" D36]N=&A.86UE(#T@)T%P2U/9BU7965K#0HA#0HA(" @(" @($%U=&AO2!O9B!T:&4@=V5E:R!T:&%T('1H M90T*(2 @(" @(" @(" @(" @("!D871E(&9A;&QS(&]N#0HA#0HA(" @(" @ M(" @(" @(" @(" @(" @3G5M8F5R(" @1&%Y($]F(%=E96L-"B$@(" @(" @ M(" @(" @(" @(" @(" M+2TM+2T@(" M+2TM+2TM+2TM+0T*(2 @(" @(" @ M(" @(" @(" @(" @(" @(#$@(" @(%-U;F1A>0T*(2 @(" @(" @(" @(" @ M(" @(" @(" @(#(@(" @($UO;F1A>0T*(2 @(" @(" @(" @(" @(" @(" @ M(" @(#,@(" @(%1U97-D87D-"B$@(" @(" @(" @(" @(" @(" @(" @(" T M(" @("!7961N97-D87D-"B$@(" @(" @(" @(" @(" @(" @(" @(" U(" @ M("!4:'5R0T*(2 @(" @(" @(" @(" @(" @(" @(" @(#8@(" @($9R M:61A>0T*(2 @(" @(" @(" @(" @(" @(" @(" @(#<@(" @(%-A='5R9&%Y M#0HA#0HA(" M(%9A2!O M9@T*(2 @(" @(" @(" @(" @(" @(" @(" @('=E96L@9F]R("A&;W)M870Z M('EY>7DM;6TM9&0I#0HA(" @("!2971U2!O9B!T:&4@=V5E:RX-"B$-"B$@("T@5F%R:6%B;&5S("T-"B$- M"B$@(" @(" @($EN<'5T(#H@(T1/5R M(%1H92!D87D@;V8@=&AE('=E96L@ M*#$M-RD-"B$@(" @(%)E='5R;F5D(#H@(T1A>4]F5V5E:R M(%1H92!3=')I M;F<@;F%M92!F;W(@=&AE(&1A>2!O9B!T:&4-"B$@(" @(" @(" @(" @(" @ M(" @(" @(" @(" @('=E96L-"B$@(" @($UO9&EF:65D(#H@;B]A#0HA(%5S M960O0W)E871E9" Z(&XO80T*(0T*(2 @(" @+2!486)L97,@+0T*(0T*(2 @ M(" @("!396QE8W0@.B!N+V$-"B$@(" @(" @26YS97)T(#H@;B]A#0HA(" @ M(" @(%5P9&%T92 Z(&XO80T*(2 @(" @("!$96QE=&4@.B!N+V$-"B$-"B$J M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*@T*#0I"14=)3BU04D]#14154D4@0V]N=F5R M="U$3U2<-"B @(" @(" @($)214%+#0H@(" @("!72$5. M(#T@,@T*(" @(" @(" @3$54("1$87E/9E=E96L@/2 G36]N9&%Y)PT*(" @ M(" @(" @0E)%04L-"B @(" @(%=(14X@/2 S#0H@(" @(" @("!,150@)$1A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TM9&0I#0HA(" @(" @(" @(" @(" @("1%;F0@+2!4:&4@ M96YD(&1A=&4@*$9O7EY>2UM;2UD9"D-"B$@(" @(%)E='5R;F5D M(#H@(U=O2U/9BU7965K*" D4W1A7EY>2UM;2UD9"D-"B$@(" @(" @(" @(" @(" @ M(U9A;'5E("T@5&AE(&YU;6)E2D-"B$@(" @(" @(" @(" @(" @)%1Y M<&4@+2!4:&4@='EP92!O9B!T:&4@=F%L=64Z#0HA(" @(" @(" @(" @(" @ M(" @(" @(" @(" @("!$(#T@1&%Y2!F7,I#0HA(" @(" @(" @(" @(" @("-*1" M M(%1H92!*=6QI86X@9&%T92!O9B!T:&4@)$1A=&4-"B$@(" @(" @(" @(" @ M(" @(T-O=6YT("T@57-E9"!I;B!T:&4@;&]O<',@9F]R('-U8G1R86-T:6YG M(&UO;G1H65A7!E+" Z)$YE=T1A=&4@*0T*#0H@("!,150@(UEE87(@ M(" @(" ]("@@5$]?3E5-0D52*"!354)35%(H("1$871E+" Q+" T("D@*2 I M#0H@("!,150@(TUO;G1H(" @(" ]("@@5$]?3E5-0D52*"!354)35%(H("1$ M871E+" V+" R("D@*2 I#0H@("!,150@(T1A>2 @(" @(" ]("@@5$]?3E5- M0D52*"!354)35%(H("1$871E+" Y+" R("D@*2 I#0H@("!,150@(U-H;W)T M665A7!E(#T@55!015(H("14>7!E("D-"@T*(" @159!3%5!5$4@ M)%1Y<&4-"B @(" @(%=(14X@/2 G1"<-"@T*(" @(" @(" @3$54("-*1" ] M("-*1" M("-686QU90T*(" @(" @(" @1$\@0V]N=F5R="U&2 ](#(Y#0H@(" @(" @(" @("!%3%-%#0H@(" @(" @(" @(" @ M("!,150@(T1A>2 ](#(X#0H@(" @(" @(" @("!%3D0M248-"@T*(" @(" @ M(" @14Q310T*#0H@(" @(" @(" @("!)1B H("@@(TUO;G1H(#T@,2 I($]2 M#0H@(" @(" @(" @(" @(" @("@@(TUO;G1H(#T@,R I($]2#0H@(" @(" @ M(" @(" @(" @("@@(TUO;G1H(#T@-2 I($]2#0H@(" @(" @(" @(" @(" @ M("@@(TUO;G1H(#T@-R I($]2#0H@(" @(" @(" @(" @(" @("@@(TUO;G1H M(#T@." I($]2#0H@(" @(" @(" @(" @(" @("@@(TUO;G1H(#T@,3 @*2!/ M4@T*(" @(" @(" @(" @(" @(" H("--;VYT:" ](#$R("D@*0T*#0H@(" @ M(" @(" @(" @("!)1B H("-$87D@/2 S," I#0H@(" @(" @(" @(" @(" @ M("!,150@(T1A>2 ](#,Q#0H@(" @(" @(" @(" @("!%3D0M248-"B @(" @ M(" @(" @($5,4T4-"B @(" @(" @(" @(" @($E&("@@(T1A>2 ](#,Q("D- M"B @(" @(" @(" @(" @(" @($Q%5" C1&%Y(#T@,S -"B @(" @(" @(" @ M(" @($5.1"U)1@T*(" @(" @(" @(" @14Y$+4E�H-"B @(" @(" @($5. M1"U)1@T*#0H@(" @(" @("!,150@)%EE87(@(#T@141)5"@@(UEE87(L("

2 ](#,P M#0H@(" @(" @(" @(" @("!%3D0M248-"B @(" @(" @(" @($5.1"U)1@T* M#0H@(" @(" @("!%3D0M248-"@T*(" @(" @(" @3$54("1996%R(" ]($5$ M250H("-996%R+" G,# P,"<@*0T*(" @(" @(" @3$54("1-;VYT:" ]($5$ M250H("--;VYT:"P@)S P)R I#0H@(" @(" @("!,150@)$1A>2 @(#T@141) M5"@@(T1A>2P@)S P)R I#0H-"B @(" @(" @(%-44DE.1R D665A2!"62 G+2<@24Y43R D3F5W1&%T90T*#0H@(" @(" @("!"4D5! M2PT*#0H@("!%3D0M159!3%5!5$4-"@T*14Y$+5!23T-%1%5210T*#0H-"B$J M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*@T*(0T*(2 @("!07DM;6TM9&0I#0HA(" @("!2971U65A65A<@T*(0T*(2 @(" @+2!4 M86)L97,@+0T*(0T*(2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!S=')I;F<-"B$@(" @ M(" @(" @(" @(" @)$UO;G1H("T@5&AE(&YE=R!M;VYT:"!V86QU92!F;W)M M871T960@86YD('-T;W)E9 T*(2 @(" @(" @(" @(" @(" @(" @(" @("!A M65A2 @(#T@(TP@+2 H(%1254Y#*" H("@@ M,C0T-R J("-*("D@+R X," I+" P("D@*0T*(" @3$54("-,(" @(" ](%12 M54Y#*" H("-*("\@,3$@*2P@," I#0H@("!,150@(TUO;G1H(#T@(TH@*R R M("T@,3(@*B C3 T*(" @3$54("-996%R(" ](#$P," J("@@(TX@+2 T.2 I M("L@(TD@*R C3 T*#0H@("!,150@)$1A>2 @(#T@141)5"@@(T1A>2P@)S P M)R I#0H@("!,150@)$UO;G1H(#T@141)5"@@(TUO;G1H+" G,# G("D-"B @ M($Q%5" D665A7EY>2UM;2UD9"D-"B$@(" @(" @(" @(" @ M(" @(U9A;'5E("T@5&AE(&YU;6)E7!E("T@5&AE M('1Y<&4@;V8@=&AE('9A;'5E.@T*(2 @(" @(" @(" @(" @(" @(" @(" @ M(" @(" @1" ]($1A>7,-"B$@(" @(" @(" @(" @(" @(" @(" @(" @(" @ M($T@/2!-;VYT:',-"B$@(" @(" @(" @(" @(" @(" @(" @(" @(" @(%D@ M/2!996%R65A2 M(%1H92!D87D@ M9G)O;2!T:&4@)$1A=&4-"B$@(" @(" @(" @(" @(" @(U-H;W)T665A65A7!E#0H@(" @("!72$5.(#T@ M)T0G#0H-"B @(" @(" @($Q%5" C2D0@/2 C2D0@*R C5F%L=64-"B @(" @ M(" @($1/($-O;G9E2 ^ M(#(X("D@04Y$("@@(TUO;G1H(#T@,B I("D-"@T*(" @(" @(" @(" @248@ M*" H("@@(U-H;W)T665A2 ](#,P("D-"B @(" @ M(" @(" @(" @(" @($Q%5" C1&%Y(#T@,S$-"B @(" @(" @(" @(" @($5. M1"U)1@T*(" @(" @(" @(" @14Q310T*(" @(" @(" @(" @(" @248@*" C M1&%Y(#T@,S$@*0T*(" @(" @(" @(" @(" @(" @3$54("-$87D@/2 S, T* M(" @(" @(" @(" @(" @14Y$+4E�H@(" @(" @(" @("!%3D0M248-"@T* M(" @(" @(" @14Y$+4E�H-"B @(" @(" @($Q%5" D665A2 ](#,P("D- M"B @(" @(" @(" @(" @(" @($Q%5" C1&%Y(#T@,S$-"B @(" @(" @(" @ M(" @($5.1"U)1@T*(" @(" @(" @(" @14Q310T*(" @(" @(" @(" @(" @ M248@*" C1&%Y(#T@,S$@*0T*(" @(" @(" @(" @(" @(" @3$54("-$87D@ M/2 S, T*(" @(" @(" @(" @(" @14Y$+4E�H@(" @(" @(" @("!%3D0M M248-"@T*(" @(" @(" @14Y$+4E�H-"B @(" @(" @($Q%5" D665A7,L(&UO;G1H65A7EY+6UM+61D*0T*(2 @(" @(" @(" @(" @(" D M5&]$871E("T@5&AE(&5N9"!D871E("AM=7-T(&)E(&=R96%T97(@=&AA;B!T M:&4-"B$@(" @(" @(" @(" @(" @(" @(" @(" @('-T87)T(&1A=&4@+2!& M;W)M870Z('EY>7DM;6TM9&0I#0HA(" @(" @(" @(" @(" @("14>7!E("T@ M5&AE('1Y<&4@;V8@=&AE('9A;'5E('1H870@>6]U('=A;G1E9"X-"B$@(" @ M(" @(" @(" @(" @(" @(" @(" @(" @1" ]($1A>7,-"B$@(" @(" @(" @ M(" @(" @(" @(" @(" @(" @32 ]($UO;G1H6]U('=A;G0-"B$@(" @($UO9&EF:65D M(#H@;B]A#0HA(%5S960O0W)E871E9" Z("-&2P@97AC97!T(&EN(&-A Subject: Calling SQR/NT from VB4.0/32 Could someone provide an example of how they declared the SQR function in Visual Basic 4.0/32 and how they called that function within the program? When I do it I get a 'Runtime Error 49,' Bad DLL calling convention Thanks in Advance, David Colangelo American Management Systems From owner-sqr-users@USA.NET Fri Feb 28 17:27:00 1997 Date: Fri, 28 Feb 1997 14:03:55 -0700 From: David Tucker Subject: Re: Calling SQR/NT from VB4.0/32 I don't think the .DLLs are 32 bit. When I try to do it I get "DLL is not a valid NT image". SQR is supposed to be coming out with 32 bit ..DLLs soon David From owner-sqr-users@USA.NET Fri Feb 28 20:36:51 1997 Date: Fri, 28 Feb 1997 17:06:27 -0800 From: "John Berggren (MS-Mail)" Subject: SQR Runs, SQT Does Not I've been unable to determine why I can run an SQR report without problems and then receive a GPF when the same report is compiled in SQT format. The report has a simple SQL update statement as follows: Begin-Procedure Update_Calcs Begin-SQL update TRAKDATA set difference = &difference, avguse = #avguse where transnum = &transnum End-SQL End-Procedure ! Update_Calcs When running the report as an SQT, I receive the following message: This program has performed an illegal operation and will be shut down. SQRWT caused a general protection fault in module SQLAPIW.DLL at 0004:00004dd9. If I remark out the second column (avguse) and recompile the report it will run without error. Any guesses? John Berggren Database Developer Santa Clara Valley Water District San Jose, Ca. From owner-sqr-users@USA.NET Tue Mar 4 21:34:42 1997 Date: Tue, 4 Mar 1997 20:17:35 -0500 From: Jim Wolfe Subject: Communications Box Malfunction I'm using SQR Workbench 3.0.7.1 on SQLBase under Windows 3.1. I'm developing reports in Easy SQR and use the SHOW command to display user prompts and use the NOPROMPT parameter on INPUT statements to supress the default prompting. This has worked very well on several on several routines. Now I find that the same routines, having NOT been modified in any way, do not invoke the communications box when the source code is executed from within the Easy SQR environment. Instead, I get a dialog box with the message "NOPROMPT used - Enter value below". If I compile and run the resulting *.SQT file with SQRT, the communications box appears and everything works normally. I can force a communications box to appear when running within Easy SQR by including the "-cb" parameter, but I still get the extraneous "NOPROMPT used - Enter value below" displayed within the comm box. I have not loaded any other software nor made any Windows changes and cannot find any setting in Easy SQR that would cause this. I have reloaded the SQR Workbench from the distribution diskettes and restored Windows from a tape made before this strangeness started; all to no avail. Developing reports without being able to run them within the Easy SQR environment would be a pain. Does anyone have any ideas on what could have triggered this behavior and what might be done to fix it? Thanks. Jim Wolfe From owner-sqr-users@USA.NET Tue Mar 4 22:34:49 1997 Date: Tue, 4 Mar 1997 08:49:14 -0800 From: "John Berggren (MS-Mail)" Subject: Re: SQR Runs, SQT Does Not Ian: Thanks for your reply. We're running SQR ver. 3.0.7.1 for Windows/SQLBase. According to a reply from John L. Kellog, SQRibe's Technical Support Manager, this is a known bug with SQR for our version. John says that version 3.0.13.3 corrects the problem. Apparently, when a report is compiled in SQT format it will not allow the use of numeric variables within a SQL statement. Any numeric variables must be moved to a string variable before being referenced in a SQL procedure as follows: begin-procedure sample move #var to $var begin-sql update table_X set column1 = $var end-sql end-procedure I've updated my reports and recompiled to SQT format and that has corrected the problem. The life of a programmer... work-arounds! Regards, John Berggren Database Developer Santa Clara Valley Water District San Jose, Ca. 95118 berggren@scvwd.dst.ca.us ---------- From: IT Kilpatrick[SMTP:itkilpatrick@nbtel.nb.ca] Sent: Tuesday, March 04, 1997 2:13 AM To: John Berggren (MS-Mail) Subject: re: SQR Runs, SQT Does Not John: I'm not sure from your message what platform that you're running on, but we have encountered some interesting problems in moving reports between sqr and sqrt. It seems that there is a bug in the ct-lib cursor handling code (and as you are probably well aware, sqr uses cursors to do nearly everything). We still haven't quite managed to determine the exact details of the bug. Scribe technologies (formerly MITI) points the finger at Sybase. The Sybase tech support rep initially acknowledged the bug, and claimed that there is no patch for it as of yet, but then called me back later saying that the bug report I was referencing was describing normal Sybase behavior. I haven't spoken to him since. Anyway, the same bug does not exist in the DB-lib version, so we are using that for the time being as a work-around. I don't know if this is your problem or not, but it may help out. Good Luck, Ian Kilpatrick Technical Specialist DMR Consulting Group, Inc. Saint John, NB (506) 658-7429 From owner-sqr-users@USA.NET Wed Mar 5 11:21:10 1997 Date: Wed, 5 Mar 1997 10:56:38 -0500 From: Nathan Treadway Subject: Re: Communications Box Malfunction > This has worked very well on several on several routines. Now I find > that the same routines, having NOT been modified in any way, do not > invoke the communications box when the source code is executed from > within the Easy SQR environment. Instead, I get a dialog box with > the message "NOPROMPT used - Enter value below". When you say "worked very well", have you actually gotten this to work running Easy SQR/Report Mate? My experience has been that Report Mate simply does not use the communications box for INPUT prompting. We have simply used SQRW or SQRWT in those situations where we really needed that functionality. It is my understanding that this bug was fixed in SQR Workbench for Windows (the new name for what used to be Report Mate) version 4. I haven't tried it yet, though. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Thu Mar 6 01:12:48 1997 Date: Thu, 6 Mar 1997 01:01:31 -0500 From: Nathan Treadway Subject: Re: Encode <0> > Thanks for your help Nathan. > Is there a easy way to do the replace job using Windows NT ? I'm sorry it took me so long to reply; I've been on the road a lot recently and haven't been able to keep up with my e-mail. I'm afraid I don't know much about Windows NT, so I'm not sure how to get 00's into your file. You may be able to use a copy of Qbasic that came with Dos 6 to write a quick program to do the substition. Also, the GNU archives at prep.cs.mit.edu may contain a version of "tr" that you can run under NT. Other than writing a C program, I don't know of anything else off the top of my head. Good luck. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Mar 11 19:47:29 1997 Date: Tue, 11 Mar 1997 18:33:00 PST From: Jay Cleghorn Subject: Sorting by Non-DataBase Fields I've got a question that I can't seem to find an answer to in any book. Hopefully someone here has run across something like this or will at least have some suggestions for me. I'm writing a report that shows the number of vendors that we have on direct deposit and whether they've ever had a payment issued to them. Here's what I'd like it to look like: Name Payment Method Payments Made or Not ABC Comp Check N Zebras'R'Us Check N Boy Corp Check Y Live Group Check Y City Council EFT N Dirt Cheap EFT Y Anyway, you get the idea. I'd like to sort this by payment method, then by whether payments have been made and then the vendor name. The problem is that the Payments Made or Not is not a database column. I'm setting that value based on the following decode statement: decode(nvl(max(E.invoice_id), 0), '0', 'N', 'Y'). Is there a way to include the 'Payments Made or Not' in the order by? Here's the way the program currently flows: Procedure-Main Begin-Select A.Name B.Payment_Method B.Vendor_ID Do Check-For-Payments Print $pay_flag From per_people_f A, po_vendors B Where... Order By B.Payment_Method, $pay_flag, A.Name End-Select End-Procedure Begin-Procedure Check-For-Payments Begin-Select decode(nvl(max(E.Invoice_id), 0), '0', 'N', 'Y') &pay_flag let $pay_flag = &pay_flag from ap_invoices D where D.Vendor_id = &B.Vendor_id End-Select End-Procedure The problem is that the report isn't ordering by $pay_flag. I'm not getting an error. Is it possible to include this in the sort? Thanks in advance to anyone who can help! -Jay cleghorn.jay@bsc.bls.com jcleghorn@aol.com From owner-sqr-users@USA.NET Tue Mar 11 22:27:05 1997 Date: Tue, 11 Mar 1997 21:50:10 -0500 From: Shivakumar Rajagopal Subject: Re: Sorting by Non-DataBase Fields hi there Include the ap_invoices table in the main select and join it with the other tables appropriately. Use decode in the same way you are doing and then order by 1,2,3 and it should work for you... keep me posted shiv From owner-sqr-users@USA.NET Tue Mar 11 22:53:13 1997 Date: Tue, 11 Mar 1997 22:34:07 -0500 From: Nathan Treadway Subject: Re: Sorting by Non-DataBase Fields > The problem is that the Payments Made or Not is not a database column. > Procedure-Main > Begin-Select [...] > B.Vendor_ID > Do Check-For-Payments > Print $pay_flag > From per_people_f A, > po_vendors B > Where... > Order By B.Payment_Method, $pay_flag, A.Name > End-Select > End-Procedure > > Begin-Procedure Check-For-Payments > Begin-Select > decode(nvl(max(E.Invoice_id), 0), '0', 'N', 'Y') &pay_flag > let $pay_flag = &pay_flag > from ap_invoices D > where D.Vendor_id = &B.Vendor_id > End-Select > End-Procedure > > The problem is that the report isn't ordering by $pay_flag. I'm not > getting an error. Is it possible to include this in the sort? The problem you are having here is that the the check-fo-payments procedure and the decode statement inside it are being executed after the order of the rows in the first select is already determined. (The $pay_flag variable is substituted into the sql statement when you first enter that begin-select paragraph; since it's probalby empty at that time, you are essentially saying order by B.Payment_Method, '', A.Name .. This is legal SQL so you don't get an error.) In order to have the first select sort by your expression, you'll have to combine the two selects. I think something like this will do what you want: Begin-Select A.Name B.Payment_Method B.Vendor_ID decode(nvl(max(C.Invoice_id), 0), '0', 'N', 'Y') &pay_flag Print &pay_flag (+1,1) From per_people_f A, po_vendors B, ap_invoices C where C.Vendor_id = B.Vendor_id and ... Group By A.Name, B.Payment_Method, B.Vendor_ID Order By B.Payment_Method, 4, A.Name End-Select End-Procedure Note the "4" in the order by refers to the 4th expression in the select list. You could also just repeat the expression itself in the order by line. Hope this helps. Nathan --------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Mar 12 08:24:34 1997 Date: Wed, 12 Mar 1997 07:52:33 -0500 From: Noel Macara Subject: Print-Direct in SPF files Can anybody help me please? I am a skilled user of SQR, but not skilled enough to solve the following problem. Over the past few years at the software house where I work, we have produced some 200 SQR reports that are packaged with our products. These reports are designed to appear the same on DOS, UNIX, or VMS when output to an HPLaserjet, a PostScript printer, or to the screen. The appearance of the reports is important to us, and we do a lot of framing of the data with pairs of lines that are spaced very close together, looking exactly as they would if drawn with the double-lines from the MSLinedraw character set. In order to draw the lines closely together, we were forced to resort to the print-direct command, since the graphic() commands can place lines only at integer line or column positions. The reports receive the output device as a parameter and in response they first declare-printer appropriately, and subsequently format the appropriate commands for PostScript or HPCL if either of these is required, or actually print the appropriate linedraw characters if output is to the screen. No problem! But now we have gone client-server, and we want to use the Windows Viewer, and the Windows Printer for these reports. I cannot find any way to accomplish this. The print-direct commands appear to get lost ... and so am I! Actually, the commands are not really lost, they are embedded in the .SPF file, and they work properly when SQRPrint is used to send the .SPF file to the printer for which the report was originally formatted. But SQRViewer ignores them, and so does the Windows printer. In order of priority, I want 1: To be able to see the results of the print-direct in the viewer 2: To have the Windows printer recognize those results too. I suspect that if I can accomplish one the other will follow automatically. This is such an irritating problem, because there does not seem to be any good reason why SQR could not simply allow real line and column positions in the graphic() commands, rather than integers only. Actually, even the documentation seems confused about this. Under the Description paragraph of the entry on the graphic() commands it says "GRAPHIC commands reference numbers that can be whole or floating point literals or numeric variables", but the Syntax paragraph clearly shows "_int_lit|_var" everywhere; and attempting to use a Real results in an error. Anybody, please? TIA Noel Macara From owner-sqr-users@USA.NET Wed Mar 12 08:55:19 1997 Date: Wed, 12 Mar 1997 08:26:52 -0400 From: Nick Moscaritolo Subject: Re: Sorting by Non-DataBase Fields I believe that you must first put all the columns that you want to sort in the same SELECT statement and then put the FULL DECODE STATEMENT in the order by. You will probably need to use a GROUP BY as well. Good Luck From owner-sqr-users@USA.NET Wed Mar 12 10:25:41 1997 Date: Wed, 12 Mar 1997 10:08:15 -0500 From: Nathan Treadway Subject: Re: Print-Direct in SPF files > Actually, the commands are not really lost, they are embedded in the .SPF > file, and they work properly when SQRPrint is used to send the .SPF file to > the printer for which the report was originally formatted. But SQRViewer > ignores them, and so does the Windows printer. > > In order of priority, I want 1: To be able to see the results of the > print-direct in the viewer I'm afraid you're not going to be able to do this. Since you are able to send anything you would like in a print-direct, the viewer would basically have to be a complete printer emulator (for all printers anyone might use) in order to show that output. Print-direct is specifically designed to let you do things supported by some particular printer but not the viewer. > This is such an irritating problem, because there does not seem to be any > good reason why SQR could not simply allow real line and column positions > in the graphic() commands, rather than integers only. Actually, even the I'm not sure why SQR doesn't allow fractional positions in graphic commands. As a work-around, it is possible to use declare-layout to change the size of the row/column grid to be very small. I haven't done this myself, but some people have had success making the grid one-tenth (for example) the usual size. You have to multiply all of your position specifications by 10, but you have lots of control over where things land. For example, print 'hello' (+1,15) would become print 'hello' (+10,150) but then you could have a graphic at (+3) and (+6) (or whatever). I'm afraid this would require a lot of changes in your applications but it might let you do what you want. Another solution would be to use a Postscript viewer on your client. (There is a freely-distributable version of GhostScript available from ftp://prep.ai.mit.edu/pub/gnu/; I think it runs on Windows but I'm not sure.) You would have your reports print directly to a .ps file, and then view and print that file using the viewer. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Mar 12 13:41:30 1997 Date: Wed, 12 Mar 1997 11:11:11 +1700 From: Michael Ness Subject: Re: Sorting by Non-DataBase Fields One thing that SRajago774 @ AOL.COM and nathant @ ONTKO.COM left out is that the subquery/join to ap_invoices may not have corresponding rows. The join to ap_invoices should be an OUTER-JOIN, and then everything should work as you want: Procedure-Main Begin-Select A.Name B.Payment_Method B.Vendor_ID decode(nvl(max(E.Invoice_id), 0), '0', 'N', 'Y') &pay_flag Do Check-For-Payments Print $pay_flag From per_people_f A, po_vendors B, ap_invoices D Where... and D.vendor_id (+) = B.Vendor_id group by A.Name, B.Payment_Method, B.Vendor_ID Order By B.Payment_Method, decode(nvl(max(E.Invoice_id), 0), '0', 'N', 'Y'), A.Name End-Select End-Procedure To: SQR-USERS @ USA.NET (Multiple recipients of list SQR-USERS) @ INTERNET cc: From: cleghorn.jay @ BSC.BLS.COM (Jay Cleghorn) @ INTERNET Date: 03/11/97 06:33:00 PM Subject: Sorting by Non-DataBase Fields I've got a question that I can't seem to find an answer to in any book. Hopefully someone here has run across something like this or will at least have some suggestions for me. I'm writing a report that shows the number of vendors that we have on direct deposit and whether they've ever had a payment issued to them. Here's what I'd like it to look like: Name Payment Method Payments Made or Not ABC Comp Check N Zebras'R'Us Check N Boy Corp Check Y Live Group Check Y City Council EFT N Dirt Cheap EFT Y Anyway, you get the idea. I'd like to sort this by payment method, then by whether payments have been made and then the vendor name. The problem is that the Payments Made or Not is not a database column. I'm setting that value based on the following decode statement: decode(nvl(max(E.invoice_id), 0), '0', 'N', 'Y'). Is there a way to include the 'Payments Made or Not' in the order by? Here's the way the program currently flows: Procedure-Main Begin-Select A.Name B.Payment_Method B.Vendor_ID Do Check-For-Payments Print $pay_flag From per_people_f A, po_vendors B Where... Order By B.Payment_Method, $pay_flag, A.Name End-Select End-Procedure Begin-Procedure Check-For-Payments Begin-Select decode(nvl(max(E.Invoice_id), 0), '0', 'N', 'Y') &pay_flag let $pay_flag = &pay_flag from ap_invoices D where D.Vendor_id = &B.Vendor_id End-Select End-Procedure The problem is that the report isn't ordering by $pay_flag. I'm not getting an error. Is it possible to include this in the sort? Thanks in advance to anyone who can help! -Jay cleghorn.jay@bsc.bls.com jcleghorn@aol.com From owner-sqr-users@USA.NET Wed Mar 12 17:57:35 1997 Date: Wed, 12 Mar 1997 15:28:30 +1700 From: Steve Hall Subject: Sorting by Non Database Fields How about this for a different (and simple) take on the problem? ---------------------- Forwarded by Steve Hall on 03/12/97 04:45 PM --------------------------- Steve Hall 03/12/97 06:01 AM To: cleghorn.jay @ BSC.BLS.COM @ INTERNET @ WORLDCOM @ PSEXTERNAL cc: Subject: Re: Sorting by Non-DataBase Fields Jay: You can output to a temp table, then use the temp table as a base for your report. You can sort it any way you want. From owner-sqr-users@USA.NET Wed Mar 12 21:14:44 1997 Date: Wed, 12 Mar 1997 16:22:08 -0700 From: David Pelinka Subject: Questions about SQR 3.0.5 We recently installed SQR 3.0.5 and are migrating from 2.4.5. Have there been any problems with 3.0.5 that we should know about? Are there any patches that we should install? Thank you. From owner-sqr-users@USA.NET Thu Mar 13 06:32:02 1997 Date: Thu, 13 Mar 1997 03:01:51 -0500 From: Noel Macara Subject: Re: Print-Direct in SPF files Ray, Thank you for your suggestions. I had considered and rejected the first idea as being too much of a hack; and one that is almost certain to come back and haunt me in the future. As for the PostScript viewer, I have looked at something called Ghostview on our Unix box, but was disappointed with the results - I was not able to get it to behave properly, and it was VERY slow. But now that you have forever dashed my hopes of using the SQR Viewer, I think I shall go back and take a closer look at this solution. In the meantime, is there anybody out there who is using a PostScript viewer that they would recommend for SQR files? What about Acrobat, for instance? Noel Macara From owner-sqr-users@USA.NET Thu Mar 13 08:52:25 1997 Date: Thu, 13 Mar 1997 08:11:07 -0500 From: Ray Ontko Subject: Re: Questions about SQR 3.0.5 > We recently installed SQR 3.0.5 and are migrating from 2.4.5. > > Have there been any problems with 3.0.5 that we should know about? Are > there any patches that we should install? > > Thank you. I believe 3.0.12 or 3.0.15 would be the most recent release, but contact your friendly technical support person at MITI for the latest on your platform, or check www.sqribe.com, I think they have a list of what versions run on which platforms. I can't comment about 3.0.5, but we used 3.0.8 for a long time without issue. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Thu Mar 13 09:04:31 1997 Date: Thu, 13 Mar 1997 08:28:57 -0500 From: Marlon Corrales Subject: Re: Print-Direct in SPF files we're using gsview to view our postscript files. our system is oracle/vax/vms and we're using windows eXcursion to connect to our system. the postscript file generated by SQR is copied to our internal web site and we use Netscape (with gsview as the viewer) to view the reports. ================================================= Ray, Thank you for your suggestions. I had considered and rejected the first idea as being too much of a hack; and one that is almost certain to come back and haunt me in the future. As for the PostScript viewer, I have looked at something called Ghostview on our Unix box, but was disappointed with the results - I was not able to get it to behave properly, and it was VERY slow. But now that you have forever dashed my hopes of using the SQR Viewer, I think I shall go back and take a closer look at this solution. In the meantime, is there anybody out there who is using a PostScript viewer that they would recommend for SQR files? What about Acrobat, for instance? Noel Macara From owner-sqr-users@USA.NET Thu Mar 20 16:44:29 1997 Date: Tue, 18 Mar 1997 16:05:56 -0700 From: "Lie, Ove - Broomfield" Subject: Problems when using distinct and hints in a SQR select statement I am currently running a large query against an Oracle database that is using cost based optimization. For some strange reason the optimizer is not using one of the indexes on a table (> 120,000 rows, where 65% of the fields are unique for the field used to identify the rows in the table). Using sqlplus and a rule base hint makes the query 20 times faster. But the problem is to force SQR to use the hint. It work well as long as I am not using a "distinct" after the begin-select. But I need the distinct. Any suggestions....? Here is an example just to illustrate the problem: begin-select distinct --+RULE ! DOES NOT WORK unless the distinct is removed. b.col1 (+1,1) from batch_param b where b.id = 15178 end-select Thanks. From owner-sqr-users@USA.NET Fri Mar 21 09:02:05 1997 Date: Fri, 21 Mar 1997 08:22:16 -0400 From: Steve Hall Subject: Re: Problems when using distinct and hints in a SQR select statement --0__=pkxsSSR6Q7wjFqXFQSH6sfBqvrcBU2oWM3iT56VULiwBN9mRLX3lwVAe Content-type: text/plain; charset=us-ascii Try putting the indexed row first in the query, even if you are not using it. b.id b.col1 (+1,1) from batch_param b where b.id = 15178 This can 'trick' oracle into using the index (Embedded image moved Ove.Lie @ CEXP.COM ("Lie Ove - Broomfield") to file: 03/18/97 02:05 PM PIC32653.PCX) To: SQR-USERS @ USA.NET (Multiple recipients of list SQR-USERS) @ internet cc: (bcc: Steve Hall) Subject: Problems when using distinct and hints in a SQR select statement I am currently running a large query against an Oracle database that is using cost based optimization. For some strange reason the optimizer is not using one of the indexes on a table (> 120,000 rows, where 65% of the fields are unique for the field used to identify the rows in the table). Using sqlplus and a rule base hint makes the query 20 times faster. But the problem is to force SQR to use the hint. It work well as long as I am not using a "distinct" after the begin-select. But I need the distinct. Any suggestions....? Here is an example just to illustrate the problem: begin-select distinct --+RULE ! DOES NOT WORK unless the distinct is removed. b.col1 (+1,1) from batch_param b where b.id = 15178 end-select Thanks. --0__=pkxsSSR6Q7wjFqXFQSH6sfBqvrcBU2oWM3iT56VULiwBN9mRLX3lwVAe Content-type: application/octet-stream; name="PIC32653.PCX" Content-transfer-encoding: base64 CgUBCAAAAABoACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABaQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAD1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPH E8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sT zRPHE8MTwhPwEwzIBgzYE8wTxhPDE8IT7hPOBtcTzBPGE8MTE+wTwgbCBwbCEgbCEgbCEsUG1hPL E8YTwxMT6hMMwgYHwgLCAwISwgfEEsMCwwbVE8sTxRPDExPpE8MGAwcCBwMCwhLDB8ISwgISwgLD BtUTyhPFE8MTE+g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AAAACAgACAAICAwMDAwNzApsrw//vwoKCk gICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vw oKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw //vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzA psrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDA wNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICA wMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACA AICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACA gACA//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP////// --0__=pkxsSSR6Q7wjFqXFQSH6sfBqvrcBU2oWM3iT56VULiwBN9mRLX3lwVAe-- From owner-sqr-users@USA.NET Fri Mar 21 09:36:21 1997 Date: Fri, 21 Mar 1997 09:03:29 -0800 From: Ken Gartman Subject: Re: Problems when using distinct and hints in a SQR select statement Lie, Ove - Broomfield wrote: > > I am currently running a large query against an Oracle database that is > using cost based optimization. For some strange reason the optimizer is > not using one of the indexes on a table (> 120,000 rows, where 65% of > the fields are unique for the field used to identify the rows in the > table). Using sqlplus and a rule base hint makes the query 20 times > faster. > > But the problem is to force SQR to use the hint. It work well as long as > I am not using a "distinct" after the begin-select. But I need the > distinct. Any suggestions....? > > Here is an example just to illustrate the problem: > > begin-select distinct > --+RULE ! DOES NOT WORK unless the distinct is removed. > b.col1 (+1,1) > from batch_param b > where b.id = 15178 > end-select > > Thanks. Hi, Ove! 1. Your should use the "-S" qualifier when executing your SQR report to see exactly what SQL statement SQR is generating, e. i. : UNIX > sqr ove-report scott/tiger -S 15178 2. The ORACLE hint must come immediately after the "SELECT" keyword, and before the "DISTINCT" keyword. 3. SQR is probably generating a SQL statement such as: select distinct /*+ RULE */ b.coll from batch_param b where b.id = 15178 4. Try removing the DISTINCT qualifier from your BEGIN-SELECT command. Instead, put in DISTINCT as another part of your regular SQL code: begin-select /*+ RULE */ distinct b.col1 (+1,1) from batch_param b where b.id = 15178 end-select 5. Try to use the "slash-star ... star-slash" (/* ... */) comment form, rather than the "dash" or "minus-minus" (--) form. Best of luck, Ken Gartman e-mail: Ken.Gartman WWW: http://www.erols.com/osmium From owner-sqr-users@USA.NET Fri Mar 21 12:15:43 1997 Date: Thu, 20 Mar 1997 15:01:03 -0700 From: "Jensen, Ray - Broomfield" Subject: Re: Problems when using distinct and hints in a SQR select statement Can you remove the DISTINCT, use an order by and handle the processing through an on-break? Ray Jensen 303.664.2821 ray.jensen@cexp.com jensenr@tusc.com >---------- >From: Lie, Ove - Broomfield >Sent: Tuesday, March 18, 1997 4:05 PM >To: Multiple recipients of list SQR-USERS >Subject: Problems when using distinct and hints in a SQR select statement > >I am currently running a large query against an Oracle database that is >using cost based optimization. For some strange reason the optimizer is >not using one of the indexes on a table (> 120,000 rows, where 65% of >the fields are unique for the field used to identify the rows in the >table). Using sqlplus and a rule base hint makes the query 20 times >faster. > >But the problem is to force SQR to use the hint. It work well as long as >I am not using a "distinct" after the begin-select. But I need the >distinct. Any suggestions....? > >Here is an example just to illustrate the problem: > >begin-select distinct >--+RULE ! DOES NOT WORK unless the distinct is removed. >b.col1 (+1,1) >from batch_param b >where b.id = 15178 >end-select > >Thanks. > From owner-sqr-users@USA.NET Fri Mar 21 13:06:10 1997 Date: Fri, 21 Mar 1997 11:35:51 -0600 From: Richard Watts Subject: Re: Problems when using distinct and hints in a SQR select statement -Reply One of two ways I have handled this is to create a view with the hint and, in SQR, select distinct on the view, or create a distinct view and hint the SQR. I prefer a hinted view with distinct SQR, that way the sort(distinct) is performed on the result of the query rather than on the entire table. If you distinct an unqualified view it will most often select all rows in the table. Regards Rick Watts rwatts@imainc.com Information Management Associates, Inc. >From: Lie, Ove - Broomfield >Sent: Tuesday, March 18, 1997 4:05 PM >To: Multiple recipients of list SQR-USERS >Subject: Problems when using distinct and hints in a SQR select statement > >I am currently running a large query against an Oracle database that is >using cost based optimization. For some strange reason the optimizer is >not using one of the indexes on a table (> 120,000 rows, where 65% of >the fields are unique for the field used to identify the rows in the >table). Using sqlplus and a rule base hint makes the query 20 times >faster. > >But the problem is to force SQR to use the hint. It work well as long as >I am not using a "distinct" after the begin-select. But I need the >distinct. Any suggestions....? > >Here is an example just to illustrate the problem: > >begin-select distinct >--+RULE ! DOES NOT WORK unless the distinct is removed. >b.col1 (+1,1) >from batch_param b >where b.id = 15178 >end-select > >Thanks. > From owner-sqr-users@USA.NET Fri Mar 21 14:26:44 1997 Date: Fri, 21 Mar 1997 14:13:20 -0500 From: "Eric A. Eastman" Subject: Re: Problems when using distinct and hints in a SQR select statement -Reply A solution that is a little simpler than the others I have heard is to use "group by" (and list all columns in the select) instead of distinct. Hope this helps, Eric ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered; act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Fri Mar 21 14:55:11 1997 Date: Fri, 21 Mar 1997 11:27:36 -0700 From: Ben Le Subject: SQR3 vs SQR2 problem. I need to find out if any one is having this problem. We just upgraded SQR3.05 from SQR2.4.5. Here is the problem: BEGIN-PROCEDURE sel-deductions BEGIN-SELECT pdrbded_bdca_code (,) on-break print=never before=report-heading after=next-page spriden_id (+1,1) spriden_last_name (,13) pdrbded_begin_date (,35) pdrbded_end_date (,46) pdrbded_bdca_code &ded_code ptrbdca_long_desc &ded_description From...... ORDER BY pdrbded_bdca_code,spriden_last_name,spriden_id END-SELECT END-PROCEDURE The above query works well with SQR2.4.5 BUT NOT with SQR3.05. Here is the error message when run with SQR3.05: (SQR 5528) ORACLE OPARSE error -960 in cursor 12: ORA-00960: ambiguous column naming in select list SQL: select pdrbded_bdca_code, spriden_id, .... Error at: pdrbded_bdca_code Error on line 296: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. If you've noticed, the select clause has two same fields (pdrbded_bdca_code). And 'ORDER BY' by that field. This works fine under SQR2 but not SQR3.05. If I remove one of these fields from select clause then SQR3.05 runs OK. Or if I remove that field in 'ORDER BY' and leave these two fields in select clause then SQR3.05 runs OK too. Either cases, I don't want to remove any thing. I would appreciate for any clue about this. Thanks. Ben. ------------------------------------------------------------------------ Benjamin Le Phone: (503)-977-4970 Portland Community College Fax: (503)-977-4987 ITS, System Development E-mail: ble@pcc.edu PO Box 19000 Portland, OR. 97280-0990 U.S.A. Web: http://www.pcc.edu ------------------------------------------------------------------------ From owner-sqr-users@USA.NET Fri Mar 21 15:38:41 1997 Date: Fri, 21 Mar 1997 12:06:59 -0800 From: Mario Insigne Subject: Re: SQR3 vs SQR2 problem. Ben, Remove the line -- pdrbded_bdca_code &ded_code -- it will run ok. Mario On Fri, 21 Mar 1997, Ben Le wrote: > I need to find out if any one is having this problem. We just > upgraded SQR3.05 from SQR2.4.5. Here is the problem: > > > > BEGIN-PROCEDURE sel-deductions > > BEGIN-SELECT > > pdrbded_bdca_code (,) on-break print=never > before=report-heading after=next-page > > spriden_id (+1,1) > > spriden_last_name (,13) > > pdrbded_begin_date (,35) > > pdrbded_end_date (,46) > > pdrbded_bdca_code &ded_code > > ptrbdca_long_desc &ded_description > > > From...... > > > ORDER BY pdrbded_bdca_code,spriden_last_name,spriden_id > > END-SELECT > > END-PROCEDURE > > > The above query works well with SQR2.4.5 BUT NOT with SQR3.05. Here > is the error message when run with SQR3.05: > > > > (SQR 5528) ORACLE OPARSE error -960 in cursor 12: > > ORA-00960: ambiguous column naming in select list > > SQL: select pdrbded_bdca_code, spriden_id, .... > > Error at: pdrbded_bdca_code > > > Error on line 296: > > (SQR 3716) Error in SQL statement. > > > Errors were found in the program file. > > SQR: Program Aborting. > > > If you've noticed, the select clause has two same fields > (pdrbded_bdca_code). And 'ORDER BY' by that field. This works fine under > SQR2 but not SQR3.05. If I remove one of these fields from select clause > then SQR3.05 runs OK. Or if I remove that field in 'ORDER BY' and leave > these two fields in select clause then SQR3.05 runs OK too. Either cases, > I don't want to remove any thing. > > I would appreciate for any clue about this. Thanks. > > > Ben. > > > > ------------------------------------------------------------------------ > > Benjamin Le Phone: (503)-977-4970 > > Portland Community College Fax: (503)-977-4987 > > ITS, System Development E-mail: ble@pcc.edu > > PO Box 19000 Portland, OR. 97280-0990 U.S.A. Web: http://www.pcc.edu > > ------------------------------------------------------------------------ > From owner-sqr-users@USA.NET Fri Mar 21 16:18:11 1997 Date: Fri, 21 Mar 1997 12:49:52 -0700 From: Ben Le Subject: Re: SQR3 vs SQR2 problem. At 12:06 PM 3/21/97 -0800, you wrote: >Ben, > Remove the line -- pdrbded_bdca_code &ded_code -- it will run ok. > >Mario Mario, I need that line in the query for using &ded_code later in the program. I just want to know why it does'nt work in SQR3?. Thanks --------------------------------------------------------------------- Benjamin Le Phone: (503)-977-4970 Portland Community College Fax: (503)-977-4987 ITS, System Development E-mail: ble@pcc.edu PO Box 19000 Portland, OR. 97280-0990 U.S.A. Web: http://www.pcc.edu ---------------------------------------------------------------------- From owner-sqr-users@USA.NET Fri Mar 21 18:00:15 1997 Date: Fri, 21 Mar 1997 15:10:52 -0700 From: "Jensen, Ray - Broomfield" Subject: Re: SQR3 vs SQR2 problem. Ben - >In your ORDER BY clause, have you tried to replace the column name - pdrbded_bdca_code - with 1 (i.e.. Order BY 1, spriden_last_name,spriden_id) Hope this helps! > Ray Jensen 303.664.2821 ray.jensen@cexp.com jensenr@tusc.com >---------- >From: Ben Le[SMTP:ble@ZEUS.CC.PCC.EDU] >Sent: Friday, March 21, 1997 11:27 AM >To: Multiple recipients of list SQR-USERS >Subject: SQR3 vs SQR2 problem. > >I need to find out if any one is having this problem. We just >upgraded SQR3.05 from SQR2.4.5. Here is the problem: > > > >BEGIN-PROCEDURE sel-deductions > >BEGIN-SELECT > >pdrbded_bdca_code (,) on-break print=never >before=report-heading after=next-page > >spriden_id (+1,1) > >spriden_last_name (,13) > >pdrbded_begin_date (,35) > >pdrbded_end_date (,46) > >pdrbded_bdca_code &ded_code > >ptrbdca_long_desc &ded_description > > >From...... > > >ORDER BY pdrbded_bdca_code,spriden_last_name,spriden_id > >END-SELECT > >END-PROCEDURE > > >The above query works well with SQR2.4.5 BUT NOT with SQR3.05. Here >is the error message when run with SQR3.05: > > > >(SQR 5528) ORACLE OPARSE error -960 in cursor 12: > > ORA-00960: ambiguous column naming in select list > >SQL: select pdrbded_bdca_code, spriden_id, .... > >Error at: pdrbded_bdca_code > > >Error on line 296: > > (SQR 3716) Error in SQL statement. > > >Errors were found in the program file. > >SQR: Program Aborting. > > >If you've noticed, the select clause has two same fields >(pdrbded_bdca_code). And 'ORDER BY' by that field. This works fine under >SQR2 but not SQR3.05. If I remove one of these fields from select clause >then SQR3.05 runs OK. Or if I remove that field in 'ORDER BY' and leave >these two fields in select clause then SQR3.05 runs OK too. Either cases, >I don't want to remove any thing. > >I would appreciate for any clue about this. Thanks. > > >Ben. > > > >----------------------------------------------------------------------- >- > >Benjamin Le >Phone: (503)-977-4970 > >Portland Community College Fax: (503)-977-4987 > >ITS, System Development E-mail: >ble@pcc.edu > >PO Box 19000 Portland, OR. 97280-0990 U.S.A. Web: http://www.pcc.edu > >---------------------------------------------------------------------- >-- > From owner-sqr-users@USA.NET Fri Mar 21 19:08:57 1997 Date: Fri, 21 Mar 1997 18:54:14 -0500 From: Nathan Treadway Subject: Re: SQR3 vs SQR2 problem. > BEGIN-SELECT > pdrbded_bdca_code (,) on-break print=never > before=report-heading after=next-page > spriden_id (+1,1) > spriden_last_name (,13) > pdrbded_begin_date (,35) > pdrbded_end_date (,46) > pdrbded_bdca_code &ded_code > ptrbdca_long_desc &ded_description > > From...... > > ORDER BY pdrbded_bdca_code,spriden_last_name,spriden_id > END-SELECT > END-PROCEDURE > You can move the "&ded_code" to the first time you select that column, as shown below. This may solve your problem. BEGIN-SELECT pdrbded_bdca_code &ded_code (,) on-break print=never before=report-heading after=next-page spriden_id (+1,1) spriden_last_name (,13) pdrbded_begin_date (,35) pdrbded_end_date (,46) ptrbdca_long_desc &ded_description FROM .... I'm not sure why the select would work with SQR v2 and not v3. You may be able to tell something by using the "-s" option when you run the program. Perhaps the two versions of SQR send different SQL text to the database for some reason. (I'm assuming that you are running the two versions of SQR against the same Oracle database. ) Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Sat Mar 22 12:13:45 1997 Date: Fri, 21 Mar 1997 22:33:55 -0500 From: Callis David Subject: FW: SQR Automated Tools Roger, I am forwarding your question to the SQR users group. Please keep this list in mind for questions regarding SQR. David > ---------- > From: Bradley Roger > Sent: Friday, March 21, 1997 6:47 PM > To: PS Consulting > Subject: SQR Automated Tools > > Hi All, > > Does anybody know where I can find documentation concerning use of SQR > Automated Tools, specifically the Export.SQR? The only references I > have found are in the SQR3 User's Guide. There, they are only > mentioned with brief explanations and no examples. The User's Guide > states that these automated tools are available as online files > delivered with the SQR software, but I have yet to find any evidence > of their existance in Help or anywhere else. > > Thanks much, > > Roger > From owner-sqr-users@USA.NET Sat Mar 22 19:11:49 1997 Date: Sat, 22 Mar 1997 19:02:05 -0500 From: Nathan Treadway Subject: Additions to SQRUG Code Library -----BEGIN PGP SIGNED MESSAGE----- We have recently added two programs to the SQR Users Group Code Library, which can be found at http://www.sqrug.com/~ftp/. datefunc.sqc: This is the library of date functions posted recently to this list by Robert Goshko. reformat.sqr: This program takes a .lis file (created by SQR programs which use direct HP control codes rather than the DECLARE/ALTER- PRINTER commands) and attempts to convert it into an .spf file with proper landscape/portrait settings and page breaks. It was written by Ralph Heimburger. Please send mail to codelib@sqrug.com if you have any problems, questions, or suggestions regarding the library. Nathan - ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ -----BEGIN PGP SIGNATURE----- Version: 2.6.3 Charset: noconv iQB1AwUBMzRy+84ADNt/WMapAQF5mgL/WdTU99K9ADOANsve1jyWB1hgnr8RDz6D rh5fLEAMC8CuVrJdoH6Nk3JXQ7L4YHRu32jXVBnT4+RzNb30Cmtb5CsCq88eDsvK PmlooAKPKxxEV6wsdbxYrhWwOjE1aLXo =yqSo -----END PGP SIGNATURE----- From owner-sqr-users@USA.NET Mon Mar 24 01:45:28 1997 Date: Mon, 24 Mar 1997 01:13:58 -0500 From: "Matthew F. Reagan" Subject: Re: FW: SQR Automated Tools >> Does anybody know where I can find documentation concerning use of SQR >> Automated Tools, specifically the Export.SQR? The only references I >> have found are in the SQR3 User's Guide. There, they are only >> mentioned with brief explanations and no examples. The User's Guide >> states that these automated tools are available as online files >> delivered with the SQR software, but I have yet to find any evidence >> of their existance in Help or anywhere else. EXPORT.SQR is an SQR program that demonstrates a number of SQR's database and flat file manipulations. The last time I checked, these files where in a SAMPLES subdirectory, located off the SQR executable tree. As far as an "SQR Automated Tool" is concerned, it is a SAMPLE program. It could be extended to perform a number of great things. However, it (EXPORT.SQR) is not sold or supported by SQRIBE (formerly MITI) as an automated tool. For some hints on how to extend EXPORT.SQR, take a look at one of the old newsletters on the User Group web page (http://www.sqrug.com). Matt... From owner-sqr-users@USA.NET Tue Mar 25 09:02:23 1997 Date: Tue, 25 Mar 1997 08:18:00 -0500 From: Michael Docteroff Subject: SQR for Powerbuilder Does anyone have any suggestions where to find some good examples for SQR for Powerbuilder. Michael Docteroff From owner-sqr-users@USA.NET Tue Mar 25 10:37:11 1997 Date: Tue, 25 Mar 1997 07:59:03 -0700 From: Mike Levin Subject: Re: SQR for Powerbuilder Michael - Check out the PowerBuilder SIG page at http://www.hal-pc.org/~SIG. The links there may lead you to info on SQR for PowerBuilder. >---------- >From: Michael Docteroff[SMTP:doctoroffm@PT.CYANAMID.COM] >Sent: Tuesday, March 25, 1997 6:18 AM >To: Multiple recipients of list SQR-USERS >Subject: SQR for Powerbuilder > > Does anyone have any suggestions where to find some good examples > for SQR for Powerbuilder. > > Michael Docteroff > From owner-sqr-users@USA.NET Tue Mar 25 20:40:14 1997 Date: Tue, 25 Mar 1997 16:30:10 -0800 From: Ron Laughton Subject: Turn off the HTML Frame? In SQR4, I would like to turn off the HTML Frame 'feature'. I do not want a Frame file generated (*.HTM), and I do not want each report output file to contain a list of pages (hypertext links) at the end of the file. I have a SQR4 program that creates two output files. One is HTML and the other is HPLaserJet. Sadly, the HPLaserJet file is appended with the HTML list of pages. Please, could someone tell me how to turn this off. Thank you. Ron Laughton From owner-sqr-users@USA.NET Wed Mar 26 21:18:29 1997 Date: Wed, 26 Mar 1997 20:47:42 -0500 From: Shivakumar Rajagopal Subject: SQR Assignment Hello SQR users I am working at chicago in an insurance company on HP / UNIX / ORACLE7 / SQR3 environment. I have over 3 years experience in SQR. I am rolling out of the project on April 30th 1997. I am on an H1 visa. I am attaching my resume for your reference. Feel free to email me or contact me on 847-885-3675 (home) or 312-817-1023 (work) Thanks Shiv ______________________________________________________________________ R e s u m e Name in full Shivakumar Rajagopal Address 1510 Valley Lake Drive Apt# 5 - 626 Schaumburg, IL 60195, U S A Tel - Home : 847-885-3675 Work : 312-817-1023 Academics Masters Degree in Statistics 1979 Presidency College,Madras University, Madras 600 005, India Participations Attended Funds Transfer trainig course conducted by Center of Banking & Finance, Saudi American Bank, Riyadh Saudi Arabia, March 1990. Ranked number 1 among 13 participants. Attended Time Management training course conducted by Center of Banking & Finance, Saudi American Bank, Riyadh Saudi Arabia, November 1991 Successfully completed "Programming in C" training course conducted by Jeraisy Educational Services, Riyadh Saudi Arabia, December 1993 Successfully completed a short term course on "COBOL Programming" training course conducted by Electronics And Communication Engineering department of College of Engineering, Guindy, Madras, India in May 1982 Successfully completed "Micro/Mini Computer Concepts and BASIC Programming" training course conducted by Computer Maintenance Corporation, Madras, India in September 1982 Work Experience Over 10 years Detailed Employment History Employer's Name: Global Software Technologies 100 Cherokee Blvd, Suite 301 Chattanooga, TN - 37405, U S A Nature of business: Computer Software Consulting Job Title: Systems Analyst Period: Since August 1995 Job Description: Deputed to CNA Insurance Company at Chicago in October 1995. Hardware HP 9000 running UNIX. Software ORACLE7 Server Release 7.3 / PL-SQL Release 2.0.18.1.0 / SQL * Plus Release 3.1.3.5.4 / SQR3 Workbench V 3.0.12.1 / MS Windows 3.1 / Visual Basic 3.0 / HP Unix Projects Handled: Involved in the process of denormalizing some tables when loading data from the production system into the wharehouse. Targeted denormalization of table data can reduce the number of joins for complicated queries and lessen corresponding response times - at the expense of increasing data redundancy and overall database storage requirements. Development of production reports for departments such as investment accounting, securities handling and asset management. Employer's Name: CITIBANK N A PO Box 749, Dubai, U A E Nature of business: Banking Job Title: Project Manager Period: November 1994 to July 1995 Hardware PERKIN ELMER 3280 Main frame computer manufactured by Concurrent Computers USA. It runs OS-32 operating system. IBM RS-6000 running AIX OS Software Proprietary DBMS / COBOL / ITC / DIVINE / TPS/ UNIX / ORACLE7 / PL-SQL / SQL Plus / SQR v2.0 Projects Handled: Analysis, Design and Development of an Anti Money Laundering System. Enhanced the Global Relationship Banking system to suit the bank's strategy of going in for international ATM access. As part of this process, a two way notification of administrative/financial messages to the host and the front end processor had to be in place. This resulted in better customer service. Also a customer and his relationship could be tracked by a single customer identification number. Production support to the following banking systems:- Funds transfer / Current Account / Teller financials / Relationship banking Employer's Name: Consulting Center For Finance & Investment PO Box 2462, Riyadh 11451 Kingdom Of Saudi Arabia Nature of business: Computer Software Consulting Job Title: Systems Analyst Period: March 1989 to September 1994 Job Description: Was deputed to Saudi American Bank (an associate of Citibank) Hardware PERKIN ELMER 3280 Main frame computer manufactured by Concurrent Computers USA. It runs OS-32 operating system. Software Proprietary DBMS / COBOL / ITC / DIVINE / TPS SUN Sparc / UNIX / SYBASE10 / SQR Projects Handled: Analysis, Design and Development of a payroll services system as project leader of a team of 3 members for the corporate banking group. This system accepts a tape with salary information from the client on a monthly basis. After data transfer and data verification, the system proceeds to credit all employees who maintain accounts with SAMBA. Facilities to encash salary for non-accountholders are also provided in the system. Control reports and reconciliation reports are generated to ensure financial control. Analysis, Design and Development of an online standing instructions system as project leader of a team of 3 members for the corporate banking group. Analysis, Design and Development of a Data archival system for the Saudi Arabian General Insurance company (GOSI) system. Analysis, Design and Development of an MIS system for the retail banking group's marketing strategies. Involved as a team member in the database split project for Corporate group and retail group. This project required enhancing a number of applications to suit each groups requirements. Involved as a team member in the backend migration project. This project required enhancement to almost every program in every application. Also an exhaustive unit/integrated testing had to be done. The backend proprietary database was being replaced by sybase10 rdbms. Production support to the following banking systems:- Funds transfer / Current Account / Teller financials / Payroll services / Standing instructions / SWIFT messaging system / Message authorization system / MIS Employer's Name: Norsk Data India Limited C/o Indchem Electronics, Perungudi Madras - 600 096, India Nature of business: Computer Hardware Manufacturer Job Title: Senior Software Executive Period: August 1986 to January 1989 Hardware ND 110 Series of mini computers / SINTRAN OS Software SIBAS Networking DBMS / DIALOGUE products / NOTIS products / FOCUS (Screen handler) RG - Report Generator / ACCESS SQL like query language / UNIQUE 4GL / COBOL Projects Handled: Analysis, Design and Development of a payroll system as project leader of a team of 3 members for M/s WS Industries and M/s S & S Power switchgears, Madras India. Analysis, Design and Development of an online financial accounting system as project leader of a team of 3 members for M/s S & S Power switchgears, Madras, India. Analysis, Design and Development of a share accounting system as part of a team of 2 members for M/s WS Industries, Madras, India. Maintained a production, planning and control system for M/s WS Industries. Employer's Name: P S I Data Systems Limited 2, Victoria Road, Bangalore 560 047 India Nature of business: Computer Hardware Manufacturer Job Title: Systems Executive Period: July 1985 to May 1986 Hardware PSI - ACTIONSTATION an 8 bit CP/M based machine running CP/M operating system Software Microsoft COBOL (Ansi 74) / ISAM Projects Handled: Developed a general purpose branch automation software package for leading nationalised banks , as dictated by Government of India's norms. The project team consisted of more than 10 members. I was handling security, interest calculation and other fundamental building block modules. Was also responsible for implementing the software packages at each branch site and training the bank personnel on how to use the package and maintain it. Employer's Name: Dagliya Consultants Private Limited Fawrah Commercial Complex, J C Road Bangalore 560 001, India Nature of business: Computer Software Consulting Job Title: Senior Programmer Period: March 1984 to July 1985 Hardware PSI - OMNI, a 16 bit mini computer, running PSIX OS. Software COBOL (Ansi 74 with 81 extensions) / ISAM Projects Handled: Developed a payroll system as part of a team of 2 members for Sree Chitra Thirunal Medical Center, Kerala, India. Developed a financial accounting system as part of a team of 2 members for M/s Harmen Engineering Company, Bangalore India on the above hardware/software platforms. Developed a vehicle accounting system as part of a team of 2 members for a leading transport company in Bangalore on the above hardware/software platforms. Co-ordinated the data entry, data verification and reports generation as part of a team of 4 members in the data center, for a critical banking system of State Bank of India, Bangalore. Instructed part time programming course in COBOL From owner-sqr-users@USA.NET Thu Mar 27 12:58:05 1997 Date: Thu, 27 Mar 1997 11:30:52 -0700 From: John Dunn Subject: Reading standard CSV files with embedded commas in fields Greetings: I'm new to SQR and am trying to use SQR to load a comma delimited file into my Oracle database. I need some help in figuring out how I can handle embedded commas _within_ a column. For instance, the incoming data is such: "Name","Address","CitySt","Zip" "Dunn, John L","123 Main Street","Tucson,AZ","85704" "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" How can I get SQR to recognize the commas _within_ the quotes as literals, not as a delimiter? The name field in this example has at least 1, maybe 2 commas, but it's all the same field. I'm looking for the same sort of functionality that SQL-Loader has in handling csv files. Any ideas? TIA, John Dunn The University Physicians Tucson, AZ jdunn@umcaz.edu From owner-sqr-users@USA.NET Thu Mar 27 14:42:52 1997 Date: Thu, 27 Mar 1997 12:03:38 -0700 From: Mike Levin Subject: Re: Reading standard CSV files with embedded commas in fields John, One way I've gotten around the comma within a comma problem is to first create a new file with another delimiter, such as a semicolon. Then I do a global replace of all commas with a space. Finally, I replace the semicolons with commas. That's a brute force method, but it works. Good luck! ....Mike >---------- >From: John Dunn[SMTP:dunn@UMCAZ.EDU] >Sent: Thursday, March 27, 1997 11:30 AM >To: Multiple recipients of list SQR-USERS >Subject: Reading standard CSV files with embedded commas in fields > >Greetings: > >I'm new to SQR and am trying to use SQR to load a comma delimited file >into my Oracle database. I need some help in figuring out how I can >handle embedded commas _within_ a column. > >For instance, the incoming data is such: > >"Name","Address","CitySt","Zip" >"Dunn, John L","123 Main Street","Tucson,AZ","85704" >"Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" > >How can I get SQR to recognize the commas _within_ the quotes as >literals, not as a delimiter? The name field in this example has at >least 1, maybe 2 commas, but it's all the same field. > >I'm looking for the same sort of functionality that SQL-Loader has in >handling csv files. > >Any ideas? TIA, > >John Dunn >The University Physicians >Tucson, AZ >jdunn@umcaz.edu > From owner-sqr-users@USA.NET Thu Mar 27 15:29:31 1997 Date: Thu, 27 Mar 1997 12:00:45 -0800 From: Raja Rajaram Subject: Library... Hi All, Recently the datefunc.sqc was added to the code library. I would like to use the sqc file. Can anybody tell me how to use it? Thanks Raja From owner-sqr-users@USA.NET Thu Mar 27 15:48:53 1997 Date: Thu, 27 Mar 1997 15:35:14 -0500 From: Nathan Treadway Subject: Re: Reading standard CSV files with embedded commas in fields > "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" > > How can I get SQR to recognize the commas _within_ the quotes as > literals, not as a delimiter? The name field in this example has at I'm assuming you are trying to use UNSTRING to parse these input lines. Unfortunately, there is no way to get UNSTRING to pay attention to " characters the way you'd like. Instead, you'll have to write a routine to loop through the input line using "instr" and "substr", returning the text between each pair of quotes. Code to return the field starting at #index would look something like this: add 1 to #index ! skip the leading " let #end_index = instr($line,'"',#index) let $field = substr($line,#index,#end_index - #index) if substr($line,#end_index+1,1) = '' move 'Y' to $last_field_flag else let #index=#end_index + 2 ! skip trailing " and comma end-if This assumes that each field is surrounded by quotes, each field-separating comma has no whitespace around it (i.e. the fields are separated by '","'), and the string ends with the trailing quote of the last field (no trailing blanks or anything after the last field). (It also assumes that none of the fields can contain double quotes.) You'll probably need to modify this for your situation but something like that should do what you need. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Thu Mar 27 15:50:07 1997 Date: Thu, 27 Mar 1997 15:17:25 -0500 From: Shankar Subject: Re: Reading standard CSV files with embedded commas in fields John, I had used SQR to access a file to get area code region info for area co de from the database. You can read the full line at a time, and write a functio n to parse for the character (") and store the info into different variables. A gain, this works only if the character (") does not exist in any field elements. Shankar From owner-sqr-users@USA.NET Thu Mar 27 16:52:22 1997 Date: Thu, 27 Mar 1997 15:55:26 -0500 From: Ed Navickas Subject: Re: Reading standard CSV files with embedded commas in fields >> "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" >> >> How can I get SQR to recognize the commas _within_ the quotes as >> literals, not as a delimiter? The name field in this example has at > >I'm assuming you are trying to use UNSTRING to parse these input lines. >Unfortunately, there is no way to get UNSTRING to pay attention to " >characters the way you'd like. Actually, there is. The trick is to append characters to the beginning and end of the line, as follows: ... read 1 into $_record:202 let $_record = '",' || $_record || ',"' unstring $_record by '","' into $discard $field1 $field2 $field3 $field4 ... ----------------------------------------- Ed Navickas Senior Systems Analyst University of Hartford ----------------------------------------- From owner-sqr-users@USA.NET Thu Mar 27 17:02:15 1997 Date: Thu, 27 Mar 1997 15:51:20 -0500 From: Zutshi Ayush Subject: Re: Reading standard CSV files with embedded commas in fields Hey hey Try the UNSTRING BY command. It is in the manual. Althought this is not exactly correct, why don't you try: unstring $input_str by "," into $name $addr $phone etc etc. You will have to strip off the beginning quote and the ending quote e.g. "Smith,Bob","1511 State St","Arlington, VA" If the above is your input line strip the first ever " on the line and the last " on the line and then use the UNSTRING BY function. Hope this helps, later az >---------- >From: John Dunn[SMTP:dunn@UMCAZ.EDU] >Sent: Thursday, March 27, 1997 1:30 PM >To: Multiple recipients of list SQR-USERS >Subject: Reading standard CSV files with embedded commas in fields > >Greetings: > >I'm new to SQR and am trying to use SQR to load a comma delimited file >into my Oracle database. I need some help in figuring out how I can >handle embedded commas _within_ a column. > >For instance, the incoming data is such: > >"Name","Address","CitySt","Zip" >"Dunn, John L","123 Main Street","Tucson,AZ","85704" >"Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" > >How can I get SQR to recognize the commas _within_ the quotes as >literals, not as a delimiter? The name field in this example has at >least 1, maybe 2 commas, but it's all the same field. > >I'm looking for the same sort of functionality that SQL-Loader has in >handling csv files. > >Any ideas? TIA, > >John Dunn >The University Physicians >Tucson, AZ >jdunn@umcaz.edu > From owner-sqr-users@USA.NET Thu Mar 27 17:28:19 1997 Date: Thu, 27 Mar 1997 14:59:21 -0700 From: Michael Ness Subject: Re: Reading standard CSV files with embedded commas in fields Ed Navickas gets the prize for the simplest, most functional solution to this problem! To: SQR-USERS @ USA.NET (Multiple recipients of list SQR-USERS) @ INTERNET cc: From: navickas @ UHAVAX.HARTFORD.EDU (Ed Navickas) @ INTERNET Date: 03/27/97 03:55:26 PM Subject: Re: Reading standard CSV files with embedded commas in fields >> "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" >> >> How can I get SQR to recognize the commas _within_ the quotes as >> literals, not as a delimiter? The name field in this example has at > >I'm assuming you are trying to use UNSTRING to parse these input lines. >Unfortunately, there is no way to get UNSTRING to pay attention to " >characters the way you'd like. Actually, there is. The trick is to append characters to the beginning and end of the line, as follows: ... read 1 into $_record:202 let $_record = '",' || $_record || ',"' unstring $_record by '","' into $discard $field1 $field2 $field3 $field4 ... ----------------------------------------- Ed Navickas Senior Systems Analyst University of Hartford ----------------------------------------- From owner-sqr-users@USA.NET Thu Mar 27 17:53:34 1997 Date: Thu, 27 Mar 1997 17:39:10 -0500 From: "Eric A. Eastman" Subject: Re: Reading standard CSV files with embedded commas in fields Hello, This is a great way of handling it. Another very similar way is to strip off the leading and trailing quotes before unstringing. However, both of these methods assume that the quote (") character can never appear in the columns. Some file formats allow quotes if preceded by \ (or some other character) or if doubled. If quotes can occur, it is time to roll up your sleeves and use FIND and EXTRACT (or instr and substr). Hope this helps, Eric On Thu, 27 Mar 1997, Ed Navickas wrote: > >> "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" > >> > >> How can I get SQR to recognize the commas _within_ the quotes as > >> literals, not as a delimiter? The name field in this example has at > > > >I'm assuming you are trying to use UNSTRING to parse these input lines. > >Unfortunately, there is no way to get UNSTRING to pay attention to " > >characters the way you'd like. > > Actually, there is. The trick is to append characters to the beginning > and end of the line, as follows: > > ... > read 1 into $_record:202 > let $_record = '",' || $_record || ',"' > unstring $_record by '","' into $discard $field1 $field2 $field3 $field4 > ... > > ----------------------------------------- > Ed Navickas > Senior Systems Analyst > University of Hartford > ----------------------------------------- > ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered; act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Thu Mar 27 23:31:27 1997 Date: Thu, 27 Mar 1997 23:22:05 -0500 From: Ray Ontko Subject: Re: Reading standard CSV files with embedded commas in fields > >> "Smith, John J, MD","234 E. 1st Ave.","Phoenix,AZ","85712" > >> > >> How can I get SQR to recognize the commas _within_ the quotes as > >> literals, not as a delimiter? The name field in this example has at > > > >I'm assuming you are trying to use UNSTRING to parse these input lines. > >Unfortunately, there is no way to get UNSTRING to pay attention to " > >characters the way you'd like. > > Actually, there is. The trick is to append characters to the beginning > and end of the line, as follows: > > ... > read 1 into $_record:202 > let $_record = '",' || $_record || ',"' > unstring $_record by '","' into $discard $field1 $field2 $field3 $field4 > ... Unfortunately, this will only work if ALL of the fields are surrounded by quotes. Many CSV files are used to convey both numeric and string data, in which case the numeric fields are NOT enclosed in quotes. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Mar 28 09:09:44 1997 Date: Fri, 28 Mar 1997 08:40:48 -0400 From: David Subject: Re: System call and return value on VMS To ALL... We are running SQR under Open VMS on an Alpha. It was brought to my attention that our programs leave residue in the log files when run in batch mode. These screen control characters don't really bother me much, but I'd like to keep everyone happy. My solution would be to smarten' up my SQR'S to be able to determine if the SQR is running interactively or in batch mode. I've started work on this, and have coded as follows ! <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ! CHECK_MODE ! ---------------------------------------------------------------------------- ! This procedure checks to determine if the SQR is running interactively or in ! Batch mode. ! ---------------------------------------------------------------------------- BEGIN-PROCEDURE CHECK_MODE move 'MODE=F$MODE()' to $system_call call system using $system_call $mode #debug call system using 'SHOW SYMBOL MODE' $mode . . . END-PROCEDURE CHECK_MODE Not knowing lots about VMS, I'm not quite sure how to proceed in returning the Value for the MODE. I used the DEBUG command to check the variable MODE and it does receive the correct value. I need this returned to the SQR so I can code the logic to weed out the show commands when run batch mode. Does anyone know how to get this value back???????????? |\/\/\| | | C 0 0| | > | \__ | / David Dawes Stanley Programmer/Analyst for the SICAS Center -+ Oneonta, NY stanledd@oneonta.edu +- Http:\\www.oneonta.edu\~stanledd From owner-sqr-users@USA.NET Fri Mar 28 10:06:44 1997 Date: Fri, 28 Mar 1997 09:57:50 -0500 From: Nathan Treadway Subject: Re: System call and return value on VMS > move 'MODE=F$MODE()' to $system_call > call system using $system_call $mode > #debug call system using 'SHOW SYMBOL MODE' $mode > Not knowing lots about VMS, I'm not quite sure how to proceed in returning > the Value for the MODE. I used the DEBUG command to check the variable MODE and If I remember correctly, the getenv function returns the value of symbols under VMS. You'll find getenv documented under the LET command. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Mar 28 10:18:53 1997 Date: Fri, 28 Mar 1997 10:10:07 -0500 From: Nathan Treadway Subject: Re: Library... > Recently the datefunc.sqc was added to the code library. I would like to use > the sqc file. Can anybody tell me how to use it? Simple download the file to your machine and then use the "#include" directive in your program to reference that file. Once you've included the library file in your program, you call the procedures within it as if they were defined normally within your program. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Mar 28 10:21:21 1997 Date: Fri, 28 Mar 1997 09:58:47 -0500 From: Scott May Subject: Re: System call and return value on VMS >From: IN%"SQR-USERS@USA.NET" 28-MAR-1997 08:53:09.67 >To: IN%"SQR-USERS@USA.NET" "Multiple recipients of list SQR-USERS" >CC: >Subj: RE: System call and return value on VMS > >To ALL... > We are running SQR under Open VMS on an Alpha. It was brought to my >attention that our programs leave residue in the log files when run in batch >mode. These screen control characters don't really bother me much, but I'd like >to keep everyone happy. > My solution would be to smarten' up my SQR'S to be able to determine if >the SQR is running interactively or in batch mode. I've started work on this, >and have coded as follows > > >! <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> >! CHECK_MODE >! ---------------------------------------------------------------------------- >! This procedure checks to determine if the SQR is running interactively or in >! Batch mode. >! ---------------------------------------------------------------------------- >BEGIN-PROCEDURE CHECK_MODE > move 'MODE=F$MODE()' to $system_call > call system using $system_call $mode > #debug call system using 'SHOW SYMBOL MODE' $mode > . > . > . >END-PROCEDURE CHECK_MODE > > Not knowing lots about VMS, I'm not quite sure how to proceed in returning >the Value for the MODE. I used the DEBUG command to check the variable MODE and >it does receive the correct value. I need this returned to the SQR so I can >code the logic to weed out the show commands when run batch mode. > Does anyone know how to get this value back???????????? > |\/\/\| > | | >C 0 0| > | > > | \__ > | / >David Dawes Stanley Programmer/Analyst for the SICAS Center -+ Oneonta, NY >stanledd@oneonta.edu +- Http:\\www.oneonta.edu\~stanledd ------------------------------------------------------------------------------- David, The one item I want to make you aware of is in VMS when you use a CALL SYSTEM USING command is that VMS Spawns a session to execute the command. Therefore, a FYI, Don't try to define a symbol and then use a secons CALL SYSTEM USING command because it won't be there. I don't know if you were aware of this, but it might save you some time if you weren't. Let's just say the voice of experience. :-) Scott... Scott May Lead Programmer/Analyst Delhi College of Technology State University of New York Phone: (607)746-4666 Fax: (607)746-4300 email: maysa@snydelab.delhi.edu "Imagination is more important than knowledge" - Albert Einstein From owner-sqr-users@USA.NET Fri Mar 28 13:54:59 1997 Date: Fri, 28 Mar 1997 13:10:00 -0500 From: Michael Docteroff Subject: SQR for PowerBuilder I'm having a problem with the SQR for PowerBuilder function named ExecNoWait. This function which is called from within a Powerbuilder Application will remotely run an SQR report on a VAX/VMS server running Oracle. I am getting no indication of why it will not execute this function. It is running the Exec function properly which ties the client machine up until it completes processing. The ExecNoWait function is suppose to allow the client machine to continue working as the SQR processes remotely. Also, if anyone else is using SQR for Powerbuilder please let me know, I am having difficulty finding anybody who is using these Powerbuilder extension tools. Thanks Very much Michael Doccteroff From owner-sqr-users@USA.NET Fri Mar 28 15:12:33 1997 Date: Fri, 28 Mar 1997 11:45:55 -0700 From: David Tucker Subject: Re: SQR for PowerBuilder I am using the PowerBuilder extensions. They are working great for me so far. I'm in HP/UX environment though so not much help on VMS. What exactly are your problems? David Tucker From owner-sqr-users@USA.NET Mon Mar 31 12:45:19 1997 Date: Mon, 31 Mar 1997 20:03:27 PST From: semech Subject: FW: BMP to HPLJ/Postscipt Convert Hi, What is the easy way to convert a Windows .BMP file to Postscript and HPLJ formats ? I need it to print exist logo.bmp with SQR on UNIX. Thanks in advance, Arnon ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 30/3/97 Time: 07:48:04 PM ------------------------------------- From owner-sqr-users@USA.NET Mon Mar 31 13:47:13 1997 Date: Mon, 31 Mar 1997 12:48:34 -0500 From: Marlon Corrales Subject: Re: FW: BMP to HPLJ/Postscipt Convert If you are asking how to convert BMP to EPS file, you can probably use CorelDraw 3.0. Import the BMP file to Corel Draw and Export it as EPS (Encapsulated Postcript) file. Use No Image Header. Remember to copy the EPS file as binary (not ascii) from your deskstop to your Unix system. ;) -------------------------------------------------------------- Hi, What is the easy way to convert a Windows .BMP file to Postscript and HPLJ formats ? I need it to print exist logo.bmp with SQR on UNIX. Thanks in advance, Arnon ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 30/3/97 Time: 07:48:04 PM ------------------------------------- ================== RFC 822 Headers ================== From owner-sqr-users@USA.NET Mon Mar 31 14:58:55 1997 Date: Mon, 31 Mar 1997 14:44:54 -0500 From: Ray Ontko Subject: Re: FW: BMP to HPLJ/Postscipt Convert > What is the easy way to convert a Windows .BMP file to Postscript > and HPLJ formats ? > I need it to print exist logo.bmp with SQR on UNIX. Aaron, As for printing on an HP LaserJet, you'll need to convert the .BMP to an HPGL/2 file if you plan on using PRINT-IMAGE to print to a non-postscript HP printer. I don't think you can use a .PCL file (HP's printer control language) for this purpose. I don't know much about .BMP files, but I was able to decipher a .PCL bitmap enough to produce a HPGL/2 file that more or less works. The problem is that HPGL is a vector oriented language, while ..BMP and .EPS are bitmap oriented. I'm not sure why SQRIBE (formerly MITI) chose not to implement PCL bitmaps. My HP printer manual doesn't show any support for bitmapped images under HPGL, only PCL. If you want to try to do the conversion yourself, let me know; you can have my code but it's a little hairy. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Apr 2 09:29:41 1997 Date: Wed, 2 Apr 1997 16:39:43 PST From: semech Subject: FOCUS to SQR Does someone have or know about: IBI/Focus convertor to SQR software ? Thanks in advance, Arnon ------------------------------------- Semech Software Marketing LTD. Phone : 972-3-5333144 Fax : 972-3-5333132 Email : semech@pobox.com Date: 2/4/97 Time: 04:39:43 PM ------------------------------------- From owner-sqr-users@USA.NET Wed Apr 2 13:49:48 1997 Date: Wed, 2 Apr 1997 11:12:10 -0500 From: Shaheer Juma Subject: Re: Length of Code 39 bar codes -- [ From: Shaheer Juma * EMC.Ver #2.5.02 ] -- Is there any way to change the x-dimensions ? -------- REPLY, Original message follows -------- Date: Wednesday, 02-Apr-97 06:59 AM From: Russ Adams \ Internet: (russadam@adams1.com) To: Shaheer Juma \ Internet: (shaheer@fifthd.ca) To: russadam@mail.clark.net \ Internet: (russadam@mail.clark.net) Subject: Re: Length of Code 39 bar codes THere is no "standard size for code 39 bar code. The difference you mention is the result of different x-dimensions (the narrowest bar or space). One is probably 10.5 mil and the other is probably 14.5 mil. Russ Adams Webmaster On Wed, 2 Apr 1997, BarCode 1 Lead Generator wrote: > ========================================================================== ==== > The following message was posted on the Paleo NewsNet System at BarCode 1 by "Shaheer Juma. > ========================================================================== ==== > > Is there an industry standard length of all Code 39 bar codes ? > > I have a couple of products that print bar codes, but on printing the same value, one product gives a bar code size of approx 2 inches, while the other's length is 2.75 inches. The data value is 9000000005. > > > ========================================================================== ==== > To respond by private E-MAIL to "Shaheer Juma, just REPLY to this message .. > You now can REPLY and POST to the Paleo NewsNet System by clicking on the follow-up URL > (assuming you are reading e-mail using a Browser or an e-mail program like Eudora): > > http://www.adams1.com/pub/russadam/cgi-bin/paleo.cgi?IDNUM=1&COMMAND= FOLLOWUP"E=Y > > You can jump directly to the Paleo NewsNet System at BarCode 1 by clicking on the following URL: > > http://www.adams1.com/pub/russadam/cgi-bin/paleo.cgi > ========================================================================== ==== > -------- REPLY, End of original message -------- From owner-sqr-users@USA.NET Wed Apr 2 21:45:01 1997 Date: Wed, 2 Apr 1997 21:04:20 -0500 From: "\"Fernando Villaamil" Subject: Re: FOCUS to SQR Would be very interested in finding one if you hear about it... we have been rewriting all of the FOCUS reports manually From owner-sqr-users@USA.NET Thu Apr 3 09:51:24 1997 Date: Thu, 3 Apr 1997 09:16:47 -0500 From: Tom Collins Subject: Informix Runtime Error We have a number of SQR's that have an occasional problem where they = bomb with the following message: (SQR 3725) Bad return fetching row from database. It only happens when the SQR is run through SQRW and seems to be more = related to windows memory than anything else. We are running SQRW on = WIN95. =20 There error does not happen all the time, and in every situation, simply = stopping and restarting WIN95 corrects the problem. Is anyone aware of = this problem and have a potential solution? Tom Collins From owner-sqr-users@USA.NET Thu Apr 3 13:46:53 1997 Date: Thu, 3 Apr 1997 13:14:09 -0500 From: Paul Baker Subject: Error message codes Does anyone have an electronic copy of SQR error codes? It would be wonderful to access them on the desktop. If No one has one it would be a wonderful wish list addition for SQRibe (FKA MITI) Thanks Paul Baker PeopleFriend From owner-sqr-users@USA.NET Thu Apr 3 16:58:19 1997 Date: Thu, 3 Apr 1997 16:00:24 -0500 From: Sudeep Mulki Subject: Conversion to ASCII I am not sure if I am sending mail to the right location. I want to post messages on the SQR USERS list. Here is my question : We use SQR 3.x on UNIX. The report contains the code as follows : Declare-Report SQRLaser Layout=SQRLaser Printer-Type=hplaserjet End-Declare ... which creates a hplaserjet printer-specific file. It can be viewed using 'vi' (all the escape codes are visible) , and can also be printed, without any problem I want to convert this file to an ASCII file. Q) Is there any utility to do this ? Q) What is the type of file that is generated when the type is hplaserjet ? Is it HPGL or PJL or PCL or ... The reason why I want to convert the file is that I do not want to re-write the report using the printer-type as 'lineprinter' Also, the option for using the 'sqrp' utility to print a printer independent file, is out of the question, since we do not have SQR for windows. Please respond to: sudeep_mulki@ml.com Thanks Sudeep Mulki From owner-sqr-users@USA.NET Thu Apr 3 18:35:34 1997 Date: Thu, 3 Apr 1997 14:52:45 -0800 From: "David L. Matsalla" Subject: Re: Conversion to ASCII ------ =_NextPart_000_01BC403F.2ED35390 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sudeep, The output is in PCL, and you can use sqrp, it is included on all unix versions also. You will need to create an SPF file when you run the report to be able to use sqrp. To generate a SPF file use the -keep flag. You could then generate the ascii file by running: sqrp file.spf -printer:lp -Ffile.asc This will generate an ASCII file. You may have some formating problems if you modified the fonts any, but other than that it should work fine. ---------- From: Sudeep Mulki[SMTP:Sudeep_Mulki@PCMAILGW.ML.COM] Sent: Thursday, April 03, 1997 1:38 PM To: Multiple recipients of list SQR-USERS Subject: Conversion to ASCII I am not sure if I am sending mail to the right location. I want to post messages on the SQR USERS list. Here is my question : We use SQR 3.x on UNIX. The report contains the code as follows : Declare-Report SQRLaser Layout=SQRLaser Printer-Type=hplaserjet End-Declare ... which creates a hplaserjet printer-specific file. It can be viewed using 'vi' (all the escape codes are visible) , and can also be printed, without any problem I want to convert this file to an ASCII file. Q) Is there any utility to do this ? Q) What is the type of file that is generated when the type is hplaserjet ? Is it HPGL or PJL or PCL or ... The reason why I want to convert the file is that I do not want to re-write the report using the printer-type as 'lineprinter' Also, the option for using the 'sqrp' utility to print a printer independent file, is out of the question, since we do not have SQR for windows. Please respond to: sudeep_mulki@ml.com Thanks Sudeep Mulki ------ =_NextPart_000_01BC403F.2ED35390 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IhEWAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAANkNDRUQzRjExNUFCRDAxMTk0MTIwMDYwOTcxNDhC NEMACgcBBYADAA4AAADNBwQAAwAOADQALQAEAE4BASCAAwAOAAAAzQcEAAMADgA0ADAABABRAQEE kAYAwAIAAAIAAAANAAAAAwAAMAAAAAALAA8OAAAAAAIB/w8BAAAAQwAAAAAAAACBKx+kvqMQGZ1u AN0BD1QCAAAAACdTUVItVVNFUlNAVVNBLk5FVCcAU01UUABTUVItVVNFUlNAVVNBLk5FVAAAHgAC MAEAAAAFAAAAU01UUAAAAAAeAAMwAQAAABIAAABTUVItVVNFUlNAVVNBLk5FVAAAAAIB9g8BAAAA BAAAAAAAAAADABUMAQAAAAIBCzABAAAAFwAAAFNNVFA6U1FSLVVTRVJTQFVTQS5ORVQAAB4AATAB AAAAFAAAACdTUVItVVNFUlNAVVNBLk5FVCcAHgAgOgE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AAAAAAMAERAA AAAAHgAIEAEAAABlAAAAU1VERUVQLFRIRU9VVFBVVElTSU5QQ0wsQU5EWU9VQ0FOVVNFU1FSUCxJ VElTSU5DTFVERURPTkFMTFVOSVhWRVJTSU9OU0FMU09ZT1VXSUxMTkVFRFRPQ1JFQVRFQU5TUEZG SQAAAAADAA00/T8AAAIBFDQBAAAAEAAAAFSUocApfxAbpYcIACsqJRceAD0AAQAAAAUAAABSRTog AAAAAINu ------ =_NextPart_000_01BC403F.2ED35390-- From owner-sqr-users@USA.NET Fri Apr 4 00:33:40 1997 Date: Fri, 4 Apr 1997 00:00:38 -0500 From: Noel Macara Subject: Informix Runtime Error Tom, according to my manual: "The database returned an error status for the last row that was fetched, commonly due to the buffer not being large enough. If selecting expressions, make sure that the length of the first expression will be adequate for all rows selected" Noel Macara From owner-sqr-users@USA.NET Fri Apr 4 01:50:17 1997 Date: Thu, 3 Apr 1997 22:26:34 -0800 From: Mogullapalli Sridhar Subject: How To Validate Date In SQR Hi All, Here i am accepting date field in char(8), here i want to validate date. How to validate this date field ? //\\\\ Reply immediately ... `| ~ ~ |' ( O O ) __________________________________________oOOo______( )_____oOOo________________ . Office Address : .o8 M Sridhar ..o888oo .ooooo. .oooo.o TCS, Unit 61/64, 888 d88' `"Y8 d88( "8 SEEPZ, Andheri (EAST), 888 888 `"Y88b. MUMBAI - 96, 888 . 888 .o8 o. )88b PHone: 022 - 836 7162 Ext: 234/227/243 "888" `Y8bod8P' 8""888P' E-Mailid : msridh@sdtdev.uswc.uswest.com Oooo _______________________________________________oooO______( )___________________ ( ) ) / \ ( (_/ \_) From owner-sqr-users@USA.NET Fri Apr 4 07:55:11 1997 Date: Fri, 4 Apr 1997 07:25:13 -0500 From: Shivakumar Rajagopal Subject: Re: How To Validate Date In SQR Hi sridhar After accepting date in mm/dd/yyyy format, try the following if you are using oracle7 begin-select to_date($date,'mm/dd/yyyy') from dual end-select and check for error status.... keep me posted shiv From owner-sqr-users@USA.NET Fri Apr 4 08:37:53 1997 Date: Fri, 4 Apr 1997 08:01:52 -0500 From: Tom Collins Subject: Re: Informix Runtime Error ------ =_NextPart_000_01BC40CE.7DD6C8C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable That's the problem. The message infers there is a problem with the SQR = itself, but by rebooting the system, it reruns fine. It seems to be = related to how SQRW is allocating memory, or perhaps not releasing = memory. I can rerun the same SQR numerous times and have no problem retrieving = all the same data. I can then run a series of SQR's and rerun the first = one, then it bombs. Reboot .. rerun ... it's fine. Tom -----Original Message----- From: Noel Macara [SMTP:Noel_Macara@COMPUSERVE.COM] Sent: Friday, April 04, 1997 12:01 AM To: Multiple recipients of list SQR-USERS Subject: Informix Runtime Error Tom, according to my manual: "The database returned an error status for the last row that was = fetched, commonly due to the buffer not being large enough. If selecting expressions, make sure that the length of the first expression will be adequate for = all rows selected" Noel Macara ------ =_NextPart_000_01BC40CE.7DD6C8C0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IgcNAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEkAYAkAEAAAEAAAAQAAAAAwAAMAIAAAAL AA8OAAAAAAIB/w8BAAAAQQAAAAAAAACBKx+kvqMQGZ1uAN0BD1QCAAAAAFNRUi1VU0VSU0BVU0Eu TkVUAFNNVFAAU1FSLVVTRVJTQFVTQS5ORVQAAAAAHgACMAEAAAAFAAAAU01UUAAAAAAeAAMwAQAA ABIAAABTUVItVVNFUlNAVVNBLk5FVAAAAAMAFQwBAAAAAwD+DwYAAAAeAAEwAQAAABQAAAAnU1FS LVVTRVJTQFVTQS5ORVQnAAIBCzABAAAAFwAAAFNNVFA6U1FSLVVTRVJTQFVTQS5ORVQAAAMAADkA AAAACwBAOgEAAAAeAPZfAQAAABIAAABTUVItVVNFUlNAVVNBLk5FVAAAAAIB918BAAAAQQAAAAAA A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AAwAFgAggBgAAAAAAwAAAAAAAAEYAAAAAUoUAALcNAAAeACWA CCAGAAAAAADAAAAAAAAARgAAAABUhQAAAQAAAAQAAAA4LjAAAwAmgAggBgAAAAAAwAAAAAAAAEYA AAAAAYUAAAAAAAALAC+ACCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMAMIAIIAYAAAAAAMAA AAAAAABGAAAAABGFAAAAAAAAAwAygAggBgAAAAAAwAAAAAAAAEYAAAAAGIUAAAAAAAAeAEGACCAG AAAAAADAAAAAAAAARgAAAAA2hQAAAQAAAAEAAAAAAAAAHgBCgAggBgAAAAAAwAAAAAAAAEYAAAAA N4UAAAEAAAABAAAAAAAAAB4AQ4AIIAYAAAAAAMAAAAAAAABGAAAAADiFAAABAAAAAQAAAAAAAAAe AD0AAQAAAAUAAABSRTogAAAAAAMADTT9NwAAaZU= ------ =_NextPart_000_01BC40CE.7DD6C8C0-- From owner-sqr-users@USA.NET Fri Apr 4 09:19:15 1997 Date: Fri, 4 Apr 1997 05:55:12 -0800 From: Mogullapalli Sridhar Subject: Re: How To Validate Date In SQR > > Hi sridhar > > After accepting date in mm/dd/yyyy format, try the following if you are using > oracle7 > > begin-select > > to_date($date,'mm/dd/yyyy') > > from dual > > end-select > > and check for error status.... keep me posted > > > shiv > Hi Shiv, Thanks for reply. Actually i am using Sybase SQR. When we run our report the format comes like ... ******************************************************************************** SQR: Structured Query Report Writer VX.XXX Copyright (C) XXXX-XX SQ Software All Rights Reserved Enter end date (ccyymmdd): ******************************************************************************** Here we have to validate the date. Suppose if the user enter date like 19970230, then i have to inform that , it is not a validate date. //\\\\ Reply immediately ... `| ~ ~ |' ( O O ) __________________________________________oOOo______( )_____oOOo________________ . Office Address : .o8 M Sridhar ..o888oo .ooooo. .oooo.o TCS, Unit 61/64, 888 d88' `"Y8 d88( "8 SEEPZ, Andheri (EAST), 888 888 `"Y88b. MUMBAI - 96, 888 . 888 .o8 o. )88b PHone: 022 - 836 7162 Ext: 234/227/243 "888" `Y8bod8P' 8""888P' E-Mailid : msridh@sdtdev.uswc.uswest.com Oooo _______________________________________________oooO______( )___________________ ( ) ) / \ ( (_/ \_) From owner-sqr-users@USA.NET Mon Apr 7 11:44:22 1997 Date: Mon, 7 Apr 1997 12:21:28 -0400 From: Bob Shiflett Subject: sqr using 90% cpu We are having a major problem with some of our sqr reports taking up to 90% of the cpu. We have run the reports through SQL-LAB and explain.sqr and they seem to be o.k, No full table scans, using the indexes. We tried moving the tables around in the where clause and this seemed to bring one report in particular to 40% but this is still to high. We are using SQR V3.0.12.1 on a HP-UX 9000. Is the problem in the order of the tables in the FROM clause? Does the WHERE clause have an effect on machine performance? Any information will be appreciated. ---------------------------------------------------------------------------- ---- Bob Shiflett : Software Engineer/Analyst WLR Foods, inc. Internet (Work) : shifletb@wlrfoods.com Voice : 540.896.0777 Fax : 540.896.1012 From owner-sqr-users@USA.NET Mon Apr 7 12:48:06 1997 Date: Mon, 7 Apr 1997 13:10:11 -0400 From: Thomas McCready Subject: Lowering SQR Priority > We are having a major problem with some of our sqr reports taking up to 90% > of the cpu. We have run the reports through SQL-LAB and explain.sqr and > they seem to be o.k, No full table scans, using the indexes. We tried > moving the tables around in the where clause and this seemed to bring one > report in particular to 40% but this is still to high. We are using SQR One work-around might be to assign a lower priority on the run command, assuming you are running SQR as a batch process: nice -n 15 sqr report.sqr sa/password -VSYBASE To: Bob Shiflett : Software Engineer/Analyst WLR Foods, inc. From: Tom McCready, Library of Congress From owner-sqr-users@USA.NET Mon Apr 7 13:40:31 1997 Date: Mon, 7 Apr 1997 13:52:35 -0400 From: Moshe Lupiansky Subject: Problems with HP LaserJet 5L We are experiencing difficulties in printing SQR reports from HP Laser Jet 5L. Does any one encounter this problem ? If you are familiar with this problem, please let me know. From owner-sqr-users@USA.NET Mon Apr 7 22:14:24 1997 Date: Mon, 7 Apr 1997 22:02:44 -0500 From: Ray Ontko Subject: Re: Problems with HP LaserJet 5L > We are experiencing difficulties in printing SQR reports from HP Laser Jet > 5L. Does any one encounter this problem ? If you are familiar with this > problem, please let me know. What kind of troubles are you having? We've noticed some problems that are actually caused by the queueing software. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Apr 7 22:24:03 1997 Date: Mon, 7 Apr 1997 22:13:56 -0500 From: Ray Ontko Subject: Re: sqr using 90% cpu > We are having a major problem with some of our sqr reports taking up to 90% > of the cpu. We have run the reports through SQL-LAB and explain.sqr and > they seem to be o.k, No full table scans, using the indexes. We tried > moving the tables around in the where clause and this seemed to bring one > report in particular to 40% but this is still to high. We are using SQR > V3.0.12.1 on a HP-UX 9000. > > Is the problem in the order of the tables in the FROM clause? > Does the WHERE clause have an effect on machine performance? > > Any information will be appreciated. Bob, Are you using Oracle? Getting the most out of the query optimizer can sometimes be tricky. If you used explain plan to verify that the query is operating the way you want, but the program still takes too long, you may want to: 1) take a look at the -B option (for the command line or the begin-select). This will allow you to fetch more than 10 rows at a time. This may help speed up your program. 2) consider using load-lookup to eliminate extra joins in your query; it may be faster to do this in your program than to have database do all the work. By the way, is your program taking too long to run, or does it just seem to be taking all the available CPU time and the rest of the system seems slow? I have seen many situations where a system is improperly tuned, and the SQR program is able to run fine and appears to take all the CPU time because it's the only program asking for it, while the interactive programs were behaving badly waiting for some other resource (some limited system resource). If you looked closely at your program and it appears to be working the most efficient way possible, you might need to look elsewhere. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Apr 7 22:29:02 1997 Date: Mon, 7 Apr 1997 22:18:29 -0500 From: Ray Ontko Subject: Re: How To Validate Date In SQR > Hi Shiv, > > Thanks for reply. Actually i am using Sybase SQR. When we run our report > the format comes like ... > > ******************************************************************************** > SQR: Structured Query Report Writer VX.XXX > Copyright (C) XXXX-XX SQ Software All Rights Reserved > > Enter end date (ccyymmdd): > ******************************************************************************** > > Here we have to validate the date. Suppose if the user enter date like > 19970230, then i have to inform that , it is not a validate date. You might try something like this: input $my_date begin-select on-error=my_error_proc convert(datetime,$my_date) &dummy end-select begin-procedure my_error_proc show 'error in date format' end-procedure ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Apr 7 22:50:09 1997 Date: Tue, 8 Apr 1997 11:17:14 +0800 From: Kenneth LO Subject: Re: sqr using 90% cpu Bob Shiflett wrote: > > We are having a major problem with some of our sqr reports taking up to 90% > of the cpu. We have run the reports through SQL-LAB and explain.sqr and > they seem to be o.k, No full table scans, using the indexes. We tried > moving the tables around in the where clause and this seemed to bring one > report in particular to 40% but this is still to high. We are using SQR > V3.0.12.1 on a HP-UX 9000. In my experience the SQRs can take up all the 6 CPUs on a Sparc1000 so the server just drop to a standstill. The o/s (solaris 2.x) manual said that it can happen for database operations. I can't remember the exact wordings but essentailly it is saying that the longer a database operation runs the larger time slice it will acquire. The solutions tried :- a) tune Orcale (not much use) b) tune SQLs in SQRs (not much use) c) bind SQRs that have been running for more than 5 minutes to a dedicated cpu -- quite useful if you wish to maintain delivery of quick SQRs and server's response to interactive sessions. Slow SQRs can still be run but will take longer to complete. d) schedule really large SQR jobs to run at night Other solutions considerd but not tried :- e) bind all SQRs to a dedicated CPU -- obviously not as good as (c) f) create a queue of SQR jobs and fire them one by one i.e. at any one time there is only one SQR job on the server From owner-sqr-users@USA.NET Tue Apr 8 11:02:44 1997 Date: Tue, 8 Apr 1997 08:55:17 -0500 From: Richard Watts Subject: sqr using 90% cpu -Reply Hi Bob, This note presumes you are using Oracle on the HP, if not, please trash this note now. My response is particular to Oracle and, to some extent, HP. Therefore, I am responding to you in private rather than through the SQR user list. If this is a PeopleSoft installation, the name of the module(s) in question would be helpful. Also, it is very rare that SQR itself is the CPU hog, it is usually the underlying SQL. First, are you sure it is CPU? That is, have you confirmed through Glance Plus, vmstat or sar that you are in fact CPU bound? If you are CPU bound, which process is actually accumulating all of the CPU time, the SQR front-end application, or the Oracle back-end process? You can see this through Glance, or 'top'. Another way to check, just to confirm your other reference points, is to trace the application in Oracle and perform a tkprof on the trace file. The tkprof will indicate CPU seconds and Oracle elapsed time for each SQL statement in the SQR. If you see a large discrepancy between the wall clock time and the Oracle elapsed time, then your SQR is the CPU hog, If not, then the SQL is either a CPU or I/O hog. For example, if an SQR report runs for 117 minutes, and Oracle accounts for only 50 minutes in the trace file, then it is likely that the SQR itself is your problem. If it is the SQR front-end, then the two most CPU intensive items I have seen in SQR itself are large load-lookup/array handling, and cursor based, cobol style logic, where one row from the database is taken and passed from one procedure to another procedure for processing. To fix these two problems change the application from cursor-based to set-based logic. If the SQL appears to be the problem use the same trace file you ran earlier to determine which SQL statement is taking the most CPU and real time. Use the tkprof option "sort=exeela, fchela", which sorts the SQL statements in order of elapsed time. Explain plans and SQL-Lab are great for diagnosing statement level problems but do not help much when trying to determine which statment is the problem. The tkprof will also have an explain plan if the following option is used, "explain=sysadm/passwd". Once you have found the offending SQL statement or statements, you can focus your tuning efforts there. Please keep in mind several things about Oracle and the Explain plans: 1. If your database has optimization not set, or is set to "choose", then the order of your WHERE clause will not matter. 2. If your database has optimization set to "rule" mode, or you have not generated table statistics in "choose" mode (which is effectively "rule" mode), then the order will matter. 3. If you are in "rule" mode then the database will use indexes no matter what, and in large Oracle dbs indexes are not always a good thing. Nested loops of poor index range scans can be deadly. 4. Likewise, full table scans are not always bad. With an HP, and Oracle's Parallel Query Server, full table scans can often help a large db. 5. Just because the Explain plan for a SQL statement looks good don't discount the statement. Check the tkprof trace file for the number of times the statement was executed in SQR. I don't know how many times a sub-thousandths of a second query hogged a system because the SQR executed the statment millions of times. This was a quick, off the top of the head, checklist. If you would like further explanation please don't hesitate to contact me. Regards Rick Watts Information Management Associates, Inc. rwatts@imainc.com >>> Bob Shiflett 04/07/97 11:21am >>> We are having a major problem with some of our sqr reports taking up to 90% of the cpu. We have run the reports through SQL-LAB and explain.sqr and they seem to be o.k, No full table scans, using the indexes. We tried moving the tables around in the where clause and this seemed to bring one report in particular to 40% but this is still to high. We are using SQR V3.0.12.1 on a HP-UX 9000. Is the problem in the order of the tables in the FROM clause? Does the WHERE clause have an effect on machine performance? Any information will be appreciated. ---------------------------------------------------------------------------- ---- Bob Shiflett : Software Engineer/Analyst WLR Foods, inc. Internet (Work) : shifletb@wlrfoods.com Voice : 540.896.0777 Fax : 540.896.1012 From owner-sqr-users@USA.NET Tue Apr 8 11:09:59 1997 Date: Tue, 8 Apr 1997 08:36:00 -0500 From: Michael Docteroff Subject: Printing problem I have a footing that needs one word underlined so I broke it out into three print statements, but can't get them to line up correctly. The footing procedure is printing the footing like this: NOTE: This audit report is NOT for distribution to the contract facility. begin-footing 1 ALTER-PRINTER FONT=5 POINT-SIZE=11 print 'NOTE: This audit report is' (1,1,0) bold print 'NOT' (0,+1) bold underline print ' for distribution to the contract facility.' (0,+1) bold ALTER-PRINTER FONT=5 POINT-SIZE=9 end-footing I believe it is because I am changing the font size, does anybody have any ideas. I no that I could just figure out the correct column placement parameter and hardcode it in the procedure but there has to be another way. Michael Docteroff From owner-sqr-users@USA.NET Tue Apr 8 16:00:53 1997 Date: Tue, 8 Apr 1997 15:17:53 -0500 From: "Matthew J. Fisher" Subject: Re: SQR & Windows 95 Hi folks - I have been running SQR for Windows on Windows 3.1. My department recently switched to Windows95, and I have discovered that my SQR programs no longer work quite as expected. For example, I have been unable to get my reports to run in a normal window. They always run minimized. This means that the output from any 'display' statements can't actually be said to be 'displaying'. The problem is not in the Shortcut Properties for my shortcut to SQRW.EXE (I checked). I have worked around this problem by rewriting display statements as input statements with prompts (which show up in dialog boxes). However, it would be nice not to have to rewrite all my programs. Does anyone have an answer for this one? Also, do you know of any other Windows95-related problems my colleagues and I should be aware of? We have one lone PC that we kept on Windows 3.1., specifically so we could run our SQRs on it. Should we keep running Windows 3.1, or can we trust Windows95? Thanks, - Matt Fisher From owner-sqr-users@USA.NET Tue Apr 8 16:18:29 1997 Date: Tue, 8 Apr 1997 16:02:47 -0500 From: Ray Ontko Subject: Re: Printing problem > I have a footing that needs one word underlined so I broke it out into > three print statements, but can't get them to line up correctly. > > The footing procedure is printing the footing like this: > > NOTE: This audit report is NOT for distribution to the contract facility. > > begin-footing 1 > ALTER-PRINTER FONT=5 POINT-SIZE=11 > print 'NOTE: This audit report is' (1,1,0) bold > print 'NOT' (0,+1) bold underline > print ' for distribution to the contract facility.' (0,+1) bold > ALTER-PRINTER FONT=5 POINT-SIZE=9 > end-footing > > I believe it is because I am changing the font size, does anybody have > any ideas. I no that I could just figure out the correct column > placement parameter and hardcode it in the procedure but there has to > be another way. Michael, I think you're out of luck. I think the best you might be able to do would be to use one print with bold for the whole statement, and then use GRAPHIC HORZ-LINE to do the underline, if you must have it. By using the placement positions you're aligning the text to the grid. The PRINT command doesn't really "know" how wide your proportional text was, it just knows how many characters it had and ASSUMES that you want to move that many characters to the right in the grid (which has a different cell width than the font you're now using anyway). By using GRAPHIC HORZ-LINE you'll still need to fuss around to get it close to the "NOT", but at least the text will be contiguous. The only other approach I can think of is to actually send a PRINT-DIRECT to the printer that would place a line where you want it, but this will be less portable across printer types and more painful. If you're trying to highlight the statement, consider putting the whole thing in a BOX. (my two cents). Good luck. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Apr 8 18:37:53 1997 Date: Tue, 8 Apr 1997 14:55:54 -0500 From: "MCFALL.CMCMFG.COM" Subject: Multiple Output Records With Variable Filenames We are using SQR in Unix. The following is a sample of the report I am creating. I am taking a clock_no record from the database and creating a file that has a filename the same as the clock_no. Therefore, for each clock_no record I am getting a file named after the clock_no. This report is working but I am curious to see if there is a way to avoid so many lets, etc. We are new to SQR so I would like to know the possibilities. Thanks in advance! begin-setup page-size 55 80 end-setup Begin-Program Do Main End-program Begin-Procedure Main Begin-Select x.clock_no &clock_no (1,5) Do Detail let $cmd1 = 'cp x.lis ' let $cmd2 = &clock_no let $cmd3 = '.lis' let $cmd = $cmd1||$cmd2||$cmd3 new-report 'x.lis' call system using $cmd #status >From x order by x.clock_no End-Select End-Procedure Begin-Procedure Detail Begin-Select x2.f_name (1,20) x2.l_name (1,40) from x2 where x2.clock_no = &clock_no End-Select End-Procedure Begin-Heading 4 Date-Time (1,1) 'MM/DD/YY HH24:MI' Page-Number (1,75) End-Heading From owner-sqr-users@USA.NET Tue Apr 8 19:21:06 1997 Date: Tue, 8 Apr 1997 19:01:45 -0500 From: Ray Ontko Subject: Re: Multiple Output Records With Variable Filenames > We are using SQR in Unix. The following is a sample of the report I am > creating. I am taking a clock_no record from the database and creating a file > that has a filename the same as the clock_no. Therefore, for each clock_no > record I am getting a file named after the clock_no. This report is working > but I am curious to see if there is a way to avoid so many lets, etc. We are > new to SQR so I would like to know the possibilities. > > Thanks in advance! You can replace > let $cmd1 = 'cp x.lis ' > let $cmd2 = &clock_no > let $cmd3 = '.lis' > let $cmd = $cmd1||$cmd2||$cmd3 with let $cmd = 'cp x.lis ' || &clock_no || '.lis' or string 'cp x.lis ' &clock_no '.lis by '' into $cmd Also, you might be able to do something like: begin-procedure main begin-select x.clock_no &clock_no string &clock_no '.lis' by '' into $filename new-report $filename print &clock_no (1,5) Do Detail from x order by x.clock_no end-select end-procedure > > begin-setup > page-size 55 80 > end-setup > > Begin-Program > Do Main > End-program > > Begin-Procedure Main > Begin-Select > x.clock_no &clock_no (1,5) > Do Detail > let $cmd1 = 'cp x.lis ' > let $cmd2 = &clock_no > let $cmd3 = '.lis' > let $cmd = $cmd1||$cmd2||$cmd3 > new-report 'x.lis' > call system using $cmd #status > >From x > order by x.clock_no > End-Select > End-Procedure > > Begin-Procedure Detail > Begin-Select > x2.f_name (1,20) > x2.l_name (1,40) > from x2 > where x2.clock_no = &clock_no > End-Select > End-Procedure > > Begin-Heading 4 > Date-Time (1,1) 'MM/DD/YY HH24:MI' > Page-Number (1,75) > End-Heading > ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Apr 8 20:22:56 1997 Date: Tue, 8 Apr 1997 17:04:17 -0800 From: Raja Rajaram Subject: Re: Multiple Output Records With Variable Filenames Hi, Its prety simple actually.. Replace all the lets into one line. Like this: let $cmd1 = 'cp x.lis ' || &clock_no || '.lis' Raja ____________________Reply Separator____________________ Subject: Multiple Output Records With Variable Filenames Author: Date: 4/8/97 2:55 PM We are using SQR in Unix. The following is a sample of the report I am creating. I am taking a clock_no record from the database and creating a file that has a filename the same as the clock_no. Therefore, for each clock_no record I am getting a file named after the clock_no. This report is working but I am curious to see if there is a way to avoid so many lets, etc. We are new to SQR so I would like to know the possibilities. Thanks in advance! begin-setup page-size 55 80 end-setup Begin-Program Do Main End-program Begin-Procedure Main Begin-Select x.clock_no &clock_no (1,5) Do Detail let $cmd1 = 'cp x.lis ' let $cmd2 = &clock_no let $cmd3 = '.lis' let $cmd = $cmd1||$cmd2||$cmd3 new-report 'x.lis' call system using $cmd #status >From x order by x.clock_no End-Select End-Procedure Begin-Procedure Detail Begin-Select x2.f_name (1,20) x2.l_name (1,40) from x2 where x2.clock_no = &clock_no End-Select End-Procedure Begin-Heading 4 Date-Time (1,1) 'MM/DD/YY HH24:MI' Page-Number (1,75) End-Heading From owner-sqr-users@USA.NET Wed Apr 9 03:26:06 1997 Date: Wed, 9 Apr 1997 08:01:14 +0000 From: Manish Manekar Subject: Address? May I know the address to which I can send command for this list? TIA. From owner-sqr-users@USA.NET Wed Apr 9 04:02:39 1997 Date: Wed, 9 Apr 1997 09:08:09 +0000 From: "\"Linda Clarke\" =20" Subject: Jobs, Jobs, Jobs! Software Product Services (SPS) are currently looking to recruit 6 new SQR=20 Consultants for our permanent team. Permanent positions are based in our=20 offices in Surrey, UK, but Consultants will be expected to work at client=20 sites, both in the UK and abroad, for the majority of the time. =20 The following positions are available: =20 2 x IT Graduates Requirements: A Degree in IT. SQR or SQL experience is an advantage, but=20 full training will be given if necessary. =20 2 x Year 2000 Auditors Requirements: SQR or SQL programming experience and an understanding of=20 the issues relating to Year 2000 compliance. =20 2 x SQR Consultants Requirements: Experience of SQR or SQL programming in a commercial=20 environment. =20 =20 For further information about SPS please visit our web site at: =20 http://www.sps-uk.co.uk =20 or send a current CV/Resume to Linda Clarke at: =20 Software Product Services Regent House 19-20 The Broadway WOKING Surrey GU21 5AP UK =20 e-mail: lclarke@sps-uk.co.uk Tel: +44 (0)1483 730771 Fax: +44 (0)1483 727417 From owner-sqr-users@USA.NET Wed Apr 9 08:09:19 1997 Date: Wed, 9 Apr 1997 07:44:55 -0400 From: "\"Fernando Villaamil" Subject: Re: Lowering SQR Priority We are running SQR on an HP9000 (single CPU) and Sybase 11 and are not experiencing any problems. The server usually takes about 70% of the CPU with the SQR taking around 15% (some of the SQR runs are large). I would look to the configuration of the Unix machine (tuning). From owner-sqr-users@USA.NET Wed Apr 9 09:53:03 1997 Date: Wed, 9 Apr 1997 10:18:28 -0400 From: Larry Young Subject: Using system call to change oracle instance A question I hope someone can help resolve. I have a number of Oracle instances on one unix box. Instead of running my program a number of times, I am attempting to change the instance in SQR. So far I have been unable to change the instance in SQR. Any ideas? The code is call system using 'export ORACLE_SID=ne;' #SID When I run this I get the error ORACLE_SID=ne; is not an identifier. As an fyi I am able to change the oracle instance at the unix prompt using export ORACLE_SID=ne; Any ideas would be greatly appreciated. Thanks in advance. From owner-sqr-users@USA.NET Wed Apr 9 10:12:13 1997 Date: Wed, 9 Apr 1997 09:22:01 -0500 From: Jack Lowe Subject: Job Listings Is this forum to be used for listing possible employment oppt? Would like to know what people feel is proper. -- Jack Lowe The Planet Group Recruting Manager jlowe@pg.net 800.215.8519 http://www.pg.net/ From owner-sqr-users@USA.NET Wed Apr 9 11:14:41 1997 Date: Wed, 9 Apr 1997 10:19:29 -0500 From: Matt Fisher Subject: Re: Address? The list-server address is: listserv@usa.net - Matt Fisher From owner-sqr-users@USA.NET Wed Apr 9 11:15:18 1997 Date: Wed, 9 Apr 1997 11:23:00 -0400 From: james rader Subject: Re: Using system call to change oracle instance We run client/server against many instances on many physical boxes. When we wish to switch we issue a new "CONNECT" statement containing the alternative SQL*NET connect string (which includes the SID.) See page 136 of the SQR V3.0 manual. - Jim Rader ------------- Original Text >From LYOUNG@SMTPGATE (Larry Young) {LYoung@CONTINENTAL.COM}, on 9/4/97 10:18 AM: To: SQR-USER@SMTPGATE (Multiple recipients of list SQR-USERS) {SQR-USERS@USA.NET} A question I hope someone can help resolve. I have a number of Oracle instances on one unix box. Instead of running my program a number of times, I am attempting to change the instance in SQR. So far I have been unable to change the instance in SQR. Any ideas? The code is call system using 'export ORACLE_SID=ne;' #SID When I run this I get the error ORACLE_SID=ne; is not an identifier. As an fyi I am able to change the oracle instance at the unix prompt using export ORACLE_SID=ne; Any ideas would be greatly appreciated. Thanks in advance. From owner-sqr-users@USA.NET Wed Apr 9 12:27:50 1997 Date: Wed, 9 Apr 1997 09:06:21 -0700 From: Angel Guzman Subject: Re: Job Listings Occasional listings, don't interrupt the forum any more than new SQR = programmers asking simple questions. Some day we may need to see these opportunities. It does make me feel we are appreciated and needed. I hope to continue = to see the them. If job offerings were to increase, disrupting the = forum, then maybe the web-page should create a new item, 'employment = opportunities'. =C5 From owner-sqr-users@USA.NET Wed Apr 9 14:32:21 1997 Date: Wed, 9 Apr 1997 14:48:45 -0400 From: Nick Moscaritolo Subject: Re: Jobs, Jobs, Jobs! I would be interested in doing some part-time work (up to 20hrs/week) from a remote site. I have about 8 years experience with SQR. Please call or EMAIL at (617)891-2542 or nmoscaritolo@bentley.edu Thanks NICK MOSCARITOLO Principal Programmer/Analyst Bentley College From owner-sqr-users@USA.NET Wed Apr 9 14:57:23 1997 Date: Wed, 9 Apr 1997 15:13:08 -0400 From: Nick Moscaritolo Subject: Re-Subscribing to this list Could someone please give me the ADDRESS and COMMAND I need to send to re-subscribe. Since I started to use LOTUS NOTES as my MAIL software, I am able to receive MAIL from the SQR line but unable to send MAIL. My EMAIL address has changed to NMOSCARITOLO@LNMTA.BENTLEY.EDU from NMOSCARITOLO@BENTLEY.EDU Since this change, I cannot send anything out on the SQR line. Thanks NICK From owner-sqr-users@USA.NET Wed Apr 9 19:26:11 1997 Date: Thu, 10 Apr 1997 09:41:47 +1000 From: "Xavier K. Lau" Subject: TEST !! Sorry to all, we have changed domain name, so I just need to see if the "user group" accepts posting using our new domain name !! It did not two days ago !! -- Xavier K. Lau SQRIBE Technologies Asia Pacific Technical Support Engineer E-Mail : xavier.lau@sqribe.com.au OR support@sqribe.com.au From owner-sqr-users@USA.NET Wed Apr 9 20:27:43 1997 Date: Wed, 9 Apr 1997 20:09:59 -0500 From: Nathan Treadway Subject: Re: SQR & Windows 95 > For example, I have been unable to get my reports to run in a normal > window. They always run minimized. This means that the output from any > 'display' statements can't actually be said to be 'displaying'. The > problem is not in the Shortcut Properties for my shortcut to SQRW.EXE (I > checked). > > I have worked around this problem by rewriting display statements as input > statements with prompts (which show up in dialog boxes). However, it would > be nice not to have to rewrite all my programs. Does anyone have an answer > for this one? I am not sure what is happening to your programs. I am able to run SQR 3.0.13.2 for Windows (16bit)/Sybase with the communications box (SQR's simple terminal-emulator window), simply by saying "sqrw report /" from my C:> prompt. Perhaps some other version of SQR for windows had some problem with this (though I don't know why it would behave differently under Windows 95 and Windows 3.1). I definitely have this problem (no communications box) with SQRMATE for my version of SQR. > > Also, do you know of any other Windows95-related problems my colleagues > and I should be aware of? We have one lone PC that we kept on Windows > 3.1., specifically so we could run our SQRs on it. Should we keep running > Windows 3.1, or can we trust Windows95? As long as SQR is 16 bit, you have all the normal problems with running 16-bit applications under Windows 95. For example, you can't access long file names. However, we've been running the above version on Windows 95 for several months now without any problems directly related to an SQR/Win 95 interaction. 32-bit SQR for Windows 95 (at least Oracle and Sybase) are apparently in beta right now; upgrading to this might solve your problem when it becomes available. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Apr 9 20:52:29 1997 Date: Wed, 9 Apr 1997 18:20:05 -0700 From: "Jeffrey S. Buckley" Subject: Re: Job Listings At 09:22 AM 4/9/97 -0500, you wrote: >Is this forum to be used for listing possible employment oppt? Would >like to know what people feel is proper. >-- >Jack Lowe >The Planet Group >Recruting Manager >jlowe@pg.net >800.215.8519 >http://www.pg.net/ > > Jack Personally, I don't think this is the forum for that sort of thing. Go to the newgroups. We're chatting about technical problems and solutions. That's it. Jeff Jeffrey S. Buckley jsbexcel@earthlink.net http://home.earthlink.net/~jsbexcel From owner-sqr-users@USA.NET Wed Apr 9 20:59:39 1997 Date: Wed, 9 Apr 1997 11:53:11 GMT From: Brace-Evelyn Subject: Re: Multiple Output Records With Variable Filenames From owner-sqr-users@USA.NET Thu Apr 10 13:02:44 1997 Date: Thu, 10 Apr 1997 13:07:00 -0500 From: Michael Docteroff Subject: ANOTHER PRINTER PROBLEM Hello, I have new users in Europe who would like to start running some of are existing SQR reports. The reports currently are not printing correctly with the default layout. Any suggestions on how to correct this with out he pain of creating a seperate layout for those users, for all the reports that they want to run. Michael Docteroff From owner-sqr-users@USA.NET Thu Apr 10 13:14:41 1997 Date: Thu, 10 Apr 1997 12:24:32 -0500 From: Nathan Treadway Subject: default server for SQR 3 Win/Sybase I am trying to set up my Windows 95 system so that SQR 3.0.12.3 for Sybase has the proper default Sybase server (and doesn't need "-vSYBASE16" on the SQRW command line). I've tried setting the DSQUERY environment variable in AUTOEXEC.BAT, and using the Open Clien/Open Server Configuration (ocscfg) to set DSQUERY. So far, I continue to get a "ct_connect(): .... Requested server name not found." error when SQR tries to connect to the server if I don't have the -vSYBASE16 on the SQRW command line. Does anyone know what I'm missing? Does SQR use this variable or does it have its own hard-coded default server name? (I didn't find much information on this topic in the SQR manuals.) Thanks. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Thu Apr 10 13:41:19 1997 Date: Thu, 10 Apr 1997 14:06:38 -0400 From: "Brent S. Templeton" Subject: Re: ANOTHER PRINTER PROBLEM ------ =_NextPart_000_01BC45B8.66B66620 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have included a library member #include country.lib that adjust page size parameters for A4 VS Letter paper. The only thing that is different is the first line for which country the report is run in. ===== country.lib====== ! library member to setup page size for specific country ! simply change the country to UK for UK length paper #define COUNTRY US #IF {COUNTRY} = 'UK' #define BOOK_LINES 42 #define BOOK_COLS 187 #ELSE !default for US !#define BOOK_LINES 48 #define BOOK_LINES 52 #define BOOK_COLS 190 #ENDIF -----Original Message----- From: Michael Docteroff [SMTP:doctoroffm@PT.CYANAMID.COM] Sent: Thursday, April 10, 1997 1:59 PM To: Multiple recipients of list SQR-USERS Subject: ANOTHER PRINTER PROBLEM Hello, I have new users in Europe who would like to start running some of are existing SQR reports. The reports currently are not printing correctly with the default layout. Any suggestions on how to correct this with out he pain of creating a seperate layout for those users, for all the reports that they want to run. Michael Docteroff ------ =_NextPart_000_01BC45B8.66B66620 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IiMSAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAAREIyNjBBNTI5RUFCRDAxMTkwNEYwMEEwQzkxMjEw ODQA/QYBBYADAA4AAADNBwQACgAOAAYAJgAEACABASCAAwAOAAAAzQcEAAoADgAGACgABAAiAQEE kAYAsAEAAAEAAAARAAAAAwAAMAAAAAALAA8OAAAAAAIB/w8BAAAAQwAAAAAAAACBKx+kvqMQGZ1u AN0BD1QCAAAAACdTUVItVVN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 TkNMVURFQ09VTlRSWUxJQlRIQVRBREpVU1RQQUdFU0laRVBBUkFNRVRFUlNGT1JBNFZTTEVUVEVS UEFQRVJUSEVPTkxZVEgAAAAAAwANNP0/AAACARQ0AQAAABAAAABUlKHAKX8QG6WHCAArKiUXHgA9 AAEAAAAFAAAAUkU6IAAAAACxxw== ------ =_NextPart_000_01BC45B8.66B66620-- From owner-sqr-users@USA.NET Thu Apr 10 17:19:26 1997 Date: Thu, 10 Apr 1997 14:18:43 -0700 From: "David L. Matsalla" Subject: Re: default server for SQR 3 Win/Sybase ------ =_NextPart_000_01BC45B9.C9474A10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Nathan, Try setting DSQUERY in the [SQR Products] section of the WIN.INI file. Regards, David Matsalla -----Original Message----- From: Nathan Treadway [SMTP:nathant@ONTKO.COM] Sent: Thursday, April 10, 1997 10:50 AM To: Multiple recipients of list SQR-USERS Subject: default server for SQR 3 Win/Sybase I am trying to set up my Windows 95 system so that SQR 3.0.12.3 for Sybase has the proper default Sybase server (and doesn't need "-vSYBASE16" on the SQRW command line). I've tried setting the DSQUERY environment variable in AUTOEXEC.BAT, and using the Open Clien/Open Server Configuration (ocscfg) to set DSQUERY. So far, I continue to get a "ct_connect(): .... Requested server name not found." error when SQR tries to connect to the server if I don't have the -vSYBASE16 on the SQRW command line. Does anyone know what I'm missing? Does SQR use this variable or does it have its own hard-coded default server name? (I didn't find much information on this topic in the SQR manuals.) Thanks. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ ------ =_NextPart_000_01BC45B9.C9474A10 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+Ih4VAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAAN0U5N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bGEsIERhdmlkAEAABzD2q4fE9EW8AUAACDBsXJjE9EW8AQMABhB268xsAwAH EO0DAAADABAQAAAAAAMAERAAAAAAHgAIEAEAAABlAAAATkFUSEFOLFRSWVNFVFRJTkdEU1FVRVJZ SU5USEVTUVJQUk9EVUNUU1NFQ1RJT05PRlRIRVdJTklOSUZJTEVSRUdBUkRTLERBVklETUFUU0FM TEEtLS0tLU9SSUdJTkFMTUVTUwAAAAADAA00/T8AAAIBFDQBAAAAEAAAAFSUocApfxAbpYcIACsq JRceAD0AAQAAAAUAAABSRTogAAAAAK+g ------ =_NextPart_000_01BC45B9.C9474A10-- From owner-sqr-users@USA.NET Fri Apr 11 02:54:41 1997 Date: Fri, 11 Apr 1997 09:03:33 +0200 From: Francisco Rodriguez Subject: Re: default server for SQR 3 Win/Sybase Try also to set the variable lang to enu in your environment lang=enu is also used by SYBASE ---------- De : Nathan Treadway Date : jeudi 10 avril 1997 19:24 A : Multiple recipients of list SQR-USERS Objet : default server for SQR 3 Win/Sybase I am trying to set up my Windows 95 system so that SQR 3.0.12.3 for Sybase has the proper default Sybase server (and doesn't need "-vSYBASE16" on the SQRW command line). I've tried setting the DSQUERY environment variable in AUTOEXEC.BAT, and using the Open Clien/Open Server Configuration (ocscfg) to set DSQUERY. So far, I continue to get a "ct_connect(): .... Requested server name not found." error when SQR tries to connect to the server if I don't have the -vSYBASE16 on the SQRW command line. Does anyone know what I'm missing? Does SQR use this variable or does it have its own hard-coded default server name? (I didn't find much information on this topic in the SQR manuals.) Thanks. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ begin 600 WINMAIL.DAT M>)\^(B0'`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <` M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$ MD 8`$ $```$````,`````P``, (````+``\.``````(!_P\!````00`````` M``"!*Q^DOJ,0&9UN`-T!#U0"`````%-14BU54T524T!54T$N3D54`%--5% ` M4U%2+55315)30%5302Y.150`````'@`", $````%````4TU44 `````>``,P M`0```!(```!345(M55-%4E- 55-!+DY%5 ````,`%0P!`````P#^#P8````> M``$P`0```!0````G4U%2+55315)30%5302Y.150G``(!"S !````%P```%-- M5% Z4U%2+55315)30%5302Y.150```,``#D`````"P! .@$````"`?8/`0`` M``0````````"ER@!!( !`"@```!213H@9&5F875L="!S97)V97(@9F]R(%-1 M4B S(%=I;B]3>6)A$9&O $>`' ` M`0```"@```!213H@9&5F875L="!S97)V97(@9F]R(%-14B S(%=I;B]3>6)A M# $` M```#````35,``!X`'PP!````%@```$E.1D5214Y#12]!55))3$Q!0R]&4@`` M``,`!A"8,.?.`P`'$+4#```>``@0`0```&4```!44EE!3%-/5$]315142$56 M05))04),14Q!3D=43T5.54E.64]54D5.5DE23TY-14Y43$%.1SU%3E5)4T%, M4T]54T5$0EE364)!4T4M+2TM+2TM+2TM1$4Z3D%42$%.5%)%0417``````(! M"1 !````/ 0``#@$``#2!P``3%I&=9(E\%G_``H!#P(5`J0#Y 7K`H,`4!,# M5 (`8V@*P'-E=.XR!@`&PP*#,@/&!Q,"@R(S#WIH96P#($1LZF<"@S03#7T* M@ C/"=GB.Q>?,C4U`H *@0VQ@0M@;F `C!["H4:@CT>T0J%! `P81V `P.1'(!E861W87F')Z\HOBO 95Q^.BG_@2L):F5U9&D@&L"= M'+!V!1 #("1@.3(1>@GF,%( B0 M`C $(&]F'D"#! `%0%-14BU5(N#,4E,R;RB]3V(PT 5 -S2/*OH-L6$V81TQ M3?@94(P'.('$< W\SXP M+C N,3+^+CY /<,^NA' !" =@B:!WG ]D3S6/J0]1B@`<")0TT/ !Y!N)P5 M;@G@(E#8(BUV(J0DX"(*A0(@TQUS.!%7( 6@;0.!(E"3)$!*,"DN/PQ))SV M?T)!") B4!'Q-H >:]ZOR<\6RN]=:)\!_!] M@4\",&N]'/ F52%7@'W@;J) `B&M?G N3'%)474=$"T7H+\+4!R@/51Q=EP0 M*])T?VF[?=)P$&@$8$.P6&%.?:19`8!P+G]W4F!H`D!PL#HO+W>%@(18+S\/ M7T >&]4FA@J%%L$`BA #`! 0``````,`$1 `````0 `','#6DUA&1KP!0 `( G,'#6DUA&1KP!'@`]``$````%````4D4Z( `````#``TT_3<``-:\ ` end From owner-sqr-users@USA.NET Fri Apr 11 10:57:06 1997 Date: Fri, 11 Apr 1997 11:21:11 -0400 From: Sudeep Mulki Subject: Line-Printer control Hi! We have a report written for 'hplaserjet' (on UNIX). We use the alter-printer command to change the font, pitch etc. Thus, we can print a lot of information on one line (80 char. wide). But, now I have a requirement to do the output in ASCII (plain text) I did the following: - generated the 'hplaserjet' report and used -keep option (SPF) - used the 'sqrp' utility to generate an ASCII file. But now, I see that the data does not fit on one line, when I print the ASCII file. Also all the fonts are lost. Has anyone encountered such a problem/dilemna? Sudeep Mulki sudeep_mulki@ml.com From owner-sqr-users@USA.NET Fri Apr 11 11:22:02 1997 Date: Fri, 11 Apr 1997 11:48:22 -0400 From: "Brent S. Templeton" Subject: Re: Line-Printer control ------ =_NextPart_000_01BC466E.2D5F2BD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable >> But now, I see that the data does not fit on one line, when I print the ASCII file. Also all the fonts are lost. << This is due to on the HP font it is proportional, straight ASCII is = fixed. Also ASCII (Plain text) does not have any formatting information = so fonts, bold and such would certainly be lost. RTF format is easily = transportable among many applications, but still is not plain ASCII for = purposes of merging and such. ------ =_NextPart_000_01BC466E.2D5F2BD0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IjAPAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAAMjYyQjBBNTI5RUFCRDAxMTkwNEYwMEEwQzkxMjEw ODQA6wYBBYADAA4AAADNBwQACwALADA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/T8AAAIBFDQBAAAAEAAAAFSUocAp fxAbpYcIACsqJRceAD0AAQAAAAUAAABSRTogAAAAADAr ------ =_NextPart_000_01BC466E.2D5F2BD0-- From owner-sqr-users@USA.NET Sat Apr 12 19:23:58 1997 Date: Sat, 12 Apr 1997 19:50:17 -0400 From: Ed Crotty Subject: Using system call to change oracle instance either user sqr progname username/password@instance OR in the sqr use the connect command connect username/password@instance From owner-sqr-users@USA.NET Wed Apr 16 10:38:34 1997 Date: Wed, 16 Apr 1997 09:43:04 CDT From: Elizabeth Donahue Subject: print trailing spaces We have an SQR report that creates a flat file. This file is supposed to have a trailing space at the end of each line. Under version 2.27 this worked fine. The command we were using is: print ' ' (,,1) We are now running V3.0.5. This is stripping all trailing spaces. I have tried changing page-size, using max-columns, printing multiple spaces and using a #DEFINE. Any suggestions would be appreciated. TIA Elizabeth /*********************************************************************** | Elizabeth Donahue - Puffer-Sweiven, Inc. | | P.O. Box 2000 voice: (281) 274-6430 | | Stafford, Tx. 77477 fax: (281) 274-6485 | | exd@puffer.com | ***********************************************************************/ From owner-sqr-users@USA.NET Wed Apr 16 16:51:01 1997 Date: Wed, 16 Apr 1997 13:07:06 -0700 From: David Donnelly Subject: Problem w SQRWT/Win95 Comm box Hello, We normally install a system on Windows 3.1 or Windows NT 3.51. We run an SQT file, and normally specify the -CB option to force the communications box up early. I've sent this app to a remote client who tried it under Windows 95. When she starts the SQRWT program, and fills in the program name and userid/password, SQRWT minimizes and processing doesn't progress. If she ends the task and looks at the log, it turns out that the logon failed, and SQRWT was apparently waiting for someone to close the communications box ... only there isn't one. The Report argument box is empty, but adding -DB doesn't help. Is this a known problem and is there a way around it? Thanks for any advice. SQR for Oracle 3.0.10 Dave Donnelly ISIS BioComp phone (909) 677-2446; fax (909) 677-3991 From owner-sqr-users@USA.NET Thu Apr 17 12:18:30 1997 Date: Thu, 17 Apr 1997 12:34:55 -0400 From: Bob Shiflett Subject: update on sqr using 90% cpu Thanks to all of you who responded to our problem of excessive cpu usage. We corrected some of the worst offenders by changing to a smaller driving table and/or joining tables together in one begin-select. Bob Shiflett : Software Engineer/Analyst WLR Foods, inc. Internet (Work) : shifletb@wlrfoods.com Internet (Home) : shifletb@cfw.com Voice : 540.896.0777 Fax : 540.896.1012 From owner-sqr-users@USA.NET Thu Apr 17 12:29:02 1997 Date: Thu, 17 Apr 1997 12:33:35 -0400 From: Bob Shiflett Subject: programming standards We are currently setting up programming standards in our shop. I would appreciate your input on how your shop has set up standards such as :Naming conventions (programs, variables, aliases), Program documentation Screen Display Menu's Coding Standards Thanks Bob Shiflett : Software Engineer/Analyst WLR Foods, Inc. Internet (Work) : shifletb@wlrfoods.com Internet (Home) : shifletb@cfw.com Voice : 540.896.0777 Fax : 540.896.1012 From owner-sqr-users@USA.NET Fri Apr 18 15:49:08 1997 Date: Fri, 18 Apr 1997 15:24:43 -0500 From: Nathan Treadway Subject: Re: print trailing spaces > We have an SQR report that creates a flat file. This file is supposed > to have a trailing space at the end of each line. Under version 2.27 > this worked fine. The command we were using is: > > print ' ' (,,1) > > We are now running V3.0.5. This is stripping all trailing spaces. I Our SQR v.3.0.15 for SCO/Oracle has a flag "-XTB" that preserves trailing blanks in the output file. I'm not sure what versions of SQR have this flag; you can see if yours does by running SQR without giving it any arguments on the command line. My guess would be that all versions which strip the trailing blanks also have this flag to suppress the new behavior, but I'm not sure about that. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Fri Apr 18 17:40:50 1997 Date: Fri, 18 Apr 1997 17:18:08 -0500 From: Nathan Treadway Subject: Re: default server for SQR 3 Win/Sybase A couple weeks ago I wrote: > I am trying to set up my Windows 95 system so that SQR 3.0.12.3 for Sybase > has the proper default Sybase server (and doesn't need "-vSYBASE16" > on the SQRW command line). Thanks to several suggestions from various people on this list, I was able to get SQR to accept a default Sybase server. The most important issue is that SQR for Windows appears to ignore environment variables. For this reason, setting DSQUERY with a SET command in my AUTOEXEC.BAT didn't work with SQR. Instead, SQRW reads all of its settings of of windows .INI files. My version uses c:\windows\sqr.ini, and some other versions use a [SQR Products] section in win.ini. Within the proper .INI file, you can set the "environment variables" you need; to solve my problem I just added the line "DSQUERY=SYBASE16". Another good suggestion was to use the SQRFLAGS variable to automatically "include" the "-vSYBASE16" on the command line. This approach also works (though the SQRFLAGS still must be set in the .INI file and not in an environment variable). I was interested to find that the "getenv" function DOES retrieve its values from the actual environment variables (and not the .ini file). I haven't been able to find any mention in the documention about the Windows version reliance on the .INI file settings or about the SQRFLAGS variable. Can anyone point me to the right place? Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Mon Apr 21 16:20:27 1997 Date: Mon, 21 Apr 1997 12:16:04 -0400 From: Larry Young Subject: SPF files I am creating an spf file and I am not sure why this is happening. In the begin-setup I have a declare-printer and multiple declare-reports. I also have a declare-layout. I am also using on the command line -printer hp. I only mention this as background. I am NOT using -NOLIS or -KEEP on the command line. I am under the belief that this is the only reason why an SPF file gets created. At one time I was able to write to multiple files as well as print one file without a problem. I got rid of the declare-layout and printer. Only used the declare-report for one report. I still got the spf files and none of the files open for writing. Something happened to break the program. Any help will be greatly appreciated. Thanks in advance. ______________________________________________ Larry Young Work.... 508-459-4700 Continental Cablevision Fax...... 508-453-4760 900 Chelmsford Street Tower Two, Fifth Floor Lowell, Ma. 01851 Work ................. mailto:lyoung@continental.com Personal............. mailto:lyoung@world.std.com From owner-sqr-users@USA.NET Tue Apr 22 06:29:19 1997 Date: Tue, 22 Apr 1997 03:01:02 -0400 From: Noel Macara Subject: SPF files Larry, I am not sure that I am correct, but when I looked into the reasons for a similar situation I discovered that SQR appears to be producing .SPF files as the intermediate file that it needs in order to execute the LAST-PAGE command. I have not seen this documented anywhere, but it would make sense. So, if you are using the LAST-PAGE command, this may be the answer. Noel Macara From owner-sqr-users@USA.NET Tue Apr 22 08:50:47 1997 Date: Tue, 22 Apr 1997 06:58:14 -0500 From: Ray Ontko Subject: Re: SPF files Larry, > I am creating an spf file and I am not sure why this is happening. I believe that ANY time you use PRINT, you'll get an intermediate SPF file. This should go away if you did not specify -KEEP and you specified a printer type. > In the begin-setup I have a declare-printer and multiple > declare-reports. > I also have a declare-layout. I am also using on the command line > -printer hp. I only mention this as background. I am NOT using -NOLIS > or > -KEEP on the command line. I am under the belief that this is the only > reason why an SPF file gets created. Do you mean "-printer:hp"? The colon between is important. > At one time I was able to write > to multiple files as well as print one file without a problem. I got > rid of the declare-layout and printer. Only used the declare-report > for one report. I still got the spf files and none of the files open > for writing. Something happened to break the program. Any help will be > greatly appreciated. Thanks in advance. By the way, what version are you using on which operating system? Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Apr 22 10:19:25 1997 Date: Tue, 22 Apr 1997 09:05:35 -0400 From: Larry Young Subject: Re: SPF files For those folks out there that read my question with some skepticism, I think I found the problem. It took awhile to figure out. I believe it is interesting enough to share with the group. I think this might classify as a bug or at least an undocumented feature if we agree that spf files should not be created without using a switch or the program not completing successfully. This was the first time I attempted to create multiple print files. What seems to have happened was some print statements I had outside of my use-report created the spf files and prevented any .lis files or files I had opened for writing to work. After commenting out the print statements I used for debugging, the program worked. I created the print statements early in the development for debugging and the forgot about them. To me this looks like a bug because the program completed without errors and I did not use a switch to create the spf file. >---------- >From: Young, Larry >Sent: Monday, April 21, 1997 12:16 PM >To: 'SQR-USERS@USA.NET' >Subject: SPF files > > I am creating an spf file and I am not sure why this is happening. >In the begin-setup I have a declare-printer and multiple declare-reports. >I also have a declare-layout. I am also using on the command line >-printer hp. I only mention this as background. I am NOT using -NOLIS or >-KEEP on the command line. I am under the belief that this is the only >reason why an SPF file gets created. At one time I was able to write to >multiple files as well as print one file without a problem. I got rid of >the declare-layout and printer. Only used the declare-report for one report. > I still got the spf files and none of the files open for writing. Something >happened to break the program. Any help will be greatly appreciated. Thanks >in advance. >______________________________________________ >Larry Young Work.... 508-459-4700 >Continental Cablevision Fax...... 508-453-4760 >900 Chelmsford Street >Tower Two, Fifth Floor >Lowell, Ma. 01851 >Work ................. mailto:lyoung@continental.com >Personal............. mailto:lyoung@world.std.com > > > > > From owner-sqr-users@USA.NET Wed Apr 23 12:27:07 1997 Date: Wed, 23 Apr 1997 12:55:03 -0400 From: Nick Moscaritolo Subject: Using GUI SQR and Client/Server We are beginning to look at tools to get us into the GUI world at Bentley College. Our database is ORACLE Server 7.1.3.2.0 and we will be running DEVELOPER/2000 Oracle*Forms4.5 on a DEC Alpha. Each user uses Windows95. Currently we use SQR 3.0.7.0.3 and I am testing SQR 3.5 for Windows to understand how it works. I understand that a new version will be released in about 2 weeks for 32bit applications. When that comes out, I will look to this version as the replacement of our current SQR version. I am primarily concerned with the hundreds of SQR reports we have in production. I need to make sure that those reports will continue to run successfully. I have noticed in SQR 3.5 for Windows, prompting (via INPUT statement) prompts a box to pop up with NO label. We currently use SHOW statements before the INPUT (instead of a label on the INPUT command), these SHOW statements do not show up on the screen. Any comments would be great on your experiences. After speaking with John Sovik (SQRibe Tech), he mentioned the product "InSQRIBE" which seems to incorporate GUI tools with SQR reporting. This sounds like what we want. Any comments from experience? When you reply, please include current releases of SQR and the OS. Thanks Nick From owner-sqr-users@USA.NET Wed Apr 23 13:18:34 1997 Date: Wed, 23 Apr 1997 10:30:57 -0700 From: Gadi Yedwab Subject: Re: Using GUI SQR and Client/Server There's a flag "-CB" that will display the SHOW and INPUT prompts in a Window. You can put this flag in the parameters field of the Run dialog of the Workbench (SQR 3.5 ReportMate or SQR4.0 Workbench). InSQRIBE is a set of ActiveX Controls for integrating SQR with Windows applications. It allows you to execute SQR programs on the PC or on a UNIX server. It also allows you to embed the SQR Viewer inside you application's Window. Gadi Yedwab Chief Technology Officer SQRIBE Technologies gadiy@sqribe.com 562 437 5222 ---------- From: Nick Moscaritolo To: Multiple recipients of list SQR-USERS Subject: Using GUI SQR and Client/Server Date: Wednesday, April 23, 1997 9:55 AM We are beginning to look at tools to get us into the GUI world at Bentley College. Our database is ORACLE Server 7.1.3.2.0 and we will be running DEVELOPER/2000 Oracle*Forms4.5 on a DEC Alpha. Each user uses Windows95. Currently we use SQR 3.0.7.0.3 and I am testing SQR 3.5 for Windows to understand how it works. I understand that a new version will be released in about 2 weeks for 32bit applications. When that comes out, I will look to this version as the replacement of our current SQR version. I am primarily concerned with the hundreds of SQR reports we have in production. I need to make sure that those reports will continue to run successfully. I have noticed in SQR 3.5 for Windows, prompting (via INPUT statement) prompts a box to pop up with NO label. We currently use SHOW statements before the INPUT (instead of a label on the INPUT command), these SHOW statements do not show up on the screen. Any comments would be great on your experiences. After speaking with John Sovik (SQRibe Tech), he mentioned the product "InSQRIBE" which seems to incorporate GUI tools with SQR reporting. This sounds like what we want. Any comments from experience? When you reply, please include current releases of SQR and the OS. Thanks Nick From owner-sqr-users@USA.NET Wed Apr 23 15:57:30 1997 Date: Wed, 23 Apr 1997 14:29:05 -0500 From: Nathan Treadway Subject: Re: Using GUI SQR and Client/Server > Currently we use SQR 3.0.7.0.3 and I am testing SQR 3.5 for Windows to > understand how it works. > I understand that a new version will be released in about 2 weeks for 32bit > applications. When that comes out, I will look to this version as the > replacement of our current SQR version. > > I am primarily concerned with the hundreds of SQR reports we have in > production. I need to > make sure that those reports will continue to run successfully. I have > noticed in SQR 3.5 for Windows, prompting (via INPUT statement) prompts a > box to pop up with NO label. We currently use SHOW statements before the > INPUT (instead of a label on the INPUT command), these SHOW statements do > not show up on the screen. Any comments would be great on your experiences. In our version of ReportMate 3.5 (SQR v. 3.0.13.2 for Windows [16 bit]/ Sybase), running reports using either "sqrw" or "sqrwt" seems to give us a communications box that works properly for our INPUT NOPROMPT and SHOW statements. However, by default SQRMATE gives us separate dialog boxes for each INPUT statement (and doesn't show the output of the SHOW commands). If we give ReportMate the -CB flag, it attempts to use the communications box instead of dialog boxes, but the prompts still say "NOPROMPT used -- Enter value below:", even though the output of SHOW commands shows up as expected. I believe this -CB problem is fixed in V4 but haven't been able to try it yet. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Apr 23 17:13:35 1997 Date: Wed, 23 Apr 1997 17:14:00 -0500 From: Michael Docteroff Subject: SPF files I have two .SPF files that I am trying to read in SQR viewer as 1 file. Does anybody think this is possible. The files are being created on an OpenVms server and brought down to the client machine for viewing inside a PowerBuilder application. Any thoughts and/or ideas on how to append these files would be great. I tried appending them on the server but I only see the first file in SQR Viewer after I bring it down to the client machine. There might be some End of File that is being read by the Viewer causing me to only see the first file. THANKS for any help -- Michael Docteroff From owner-sqr-users@USA.NET Wed Apr 23 18:48:45 1997 Date: Wed, 23 Apr 1997 16:00:06 -0700 From: Gadi Yedwab Subject: Re: SPF files Michael, Your analysis is correct. I'm afraid there's no easy way to append two SPF files. Gadi Yedwab Chief Technology Officer SQRIBE Technologies gadiy@sqribe.com 562 437 5222 ---------- From: Michael Docteroff To: Multiple recipients of list SQR-USERS Subject: SPF files Date: Wednesday, April 23, 1997 3:14 PM I have two .SPF files that I am trying to read in SQR viewer as 1 file. Does anybody think this is possible. The files are being created on an OpenVms server and brought down to the client machine for viewing inside a PowerBuilder application. Any thoughts and/or ideas on how to append these files would be great. I tried appending them on the server but I only see the first file in SQR Viewer after I bring it down to the client machine. There might be some End of File that is being read by the Viewer causing me to only see the first file. THANKS for any help -- Michael Docteroff From owner-sqr-users@USA.NET Thu Apr 24 13:35:28 1997 Date: Thu, 24 Apr 1997 11:43:21 -0600 From: Shaheer Juma Subject: SQR4 - Changes to SQR.INI still produce error One of our programs requires that we increase the PROGLINEPARS parameter on the SQR.INI file or use the -M to store the new value. Using the -M option works ok, but changing the SQR.INI file does not seem to make any difference to the error message. Do we have to relink or do something else so that SQR will recognize the change to the ini file ? Thank you for your responses Shaheer Juma shaheer@fifthd.ca (403) - 425 - 6560 From owner-sqr-users@USA.NET Sat Apr 26 00:36:39 1997 Date: Fri, 25 Apr 1997 23:39:09 -0400 From: Vic Francis Subject: Peoplesoft 4.x to 6.x Upgrades Does anyone know of a good document that lists the main differences and what to look for when upgrading Peoplesoft 4.0 to 6.0 for home grow sqr's? Vic Francis From owner-sqr-users@USA.NET Sat Apr 26 10:21:21 1997 Date: Sat, 26 Apr 1997 10:39:38 -0400 From: Tarun Raval Subject: Re: Peoplesoft 4.x to 6.x Upgrades Vic Francis wrote: > > Does anyone know of a good document that lists the main differences and > what to look for when upgrading Peoplesoft 4.0 to 6.0 for home grow > sqr's? > Vic Francis hi Vic, if you are on oracle platform, then you have to account for the changes that have been done for year 2000 - every sqr has to now include an sqc which during the run session, alters the nls_date_format to dd-mon-yyyy format. Hence date retrieved by the sequel is going to be in dd-mon-yyyy format. Any home grown sqr's that do not use the procedures in datetime.sqc file and use to_char function will have to be modified.... there are several other changes.. that i will list in another mail. tarun raval From owner-sqr-users@USA.NET Mon Apr 28 08:48:01 1997 Date: Mon, 28 Apr 1997 09:02:00 -0500 From: Michael Docteroff Subject: Resetting Page Count Hello, I remember some messages about resetting page counts, when you are using the last-page function. I need to have the appearance of two reports coming out of one .lis file. Any suggestions on how anyone is handling this. Michael Docteroff From owner-sqr-users@USA.NET Mon Apr 28 10:50:20 1997 Date: Mon, 28 Apr 1997 10:55:36 -0400 From: Sudeep Mulki Subject: Temporary stored procedures Hello! We are using the syb-ct version of SQR 3.x on UNIX, and SYBASE 10.x We get the following error message : Procedure '#P$$000110010376147_C1_1' group number 1 already exists in the database. I know that SQR creates temporary stored procedures for a BEGIN-SQL, BEGIN-SELECT construct, unless a -XP is also supplied at the command statement, and /or the command line argument. Is this statement true for stored procedures also? How does SQR create the stored procedure? and what does the error stated above mean. Also hoe can I avoid it? If more than two users use the program, does SQR generate temp. stored procs. for each invocation, or does SQR create the proc. according to some internal convention? Thanks Sudeep sudeep_mulki@ml.com From owner-sqr-users@USA.NET Mon Apr 28 11:14:56 1997 Date: Mon, 28 Apr 1997 10:30:10 -0500 From: Matt Fisher Subject: SQRW and Windows95 Hi - Just wanted to let you all know that installing a newer version of SQRW resolved my display-statement problems with Windows95. Using version 3.0.12.2 with a -CB flag on the command line forces the use of a communication box (that is, a terminal emulation window). Thanks again to those who wrote to me off-line with suggestions. - Matt Fisher From owner-sqr-users@USA.NET Mon Apr 28 14:43:16 1997 Date: Mon, 28 Apr 1997 13:39:57 -0400 From: Zutshi Ayush Subject: Re: Temporary stored procedures SQR will create tem stored procedures for each cursor. If you do not use the -XP flag, these temp procedures do NOT go away. That is why you get the error. I don't know much about system 10 but that is how it works on system XI. Take it easy now >---------- >From: Sudeep Mulki[SMTP:Sudeep_Mulki@pcmailgw.ml.com] >Sent: Monday, April 28, 1997 10:55 AM >To: Multiple recipients of list SQR-USERS >Subject: Temporary stored procedures > > Hello! > > We are using the syb-ct version of SQR 3.x on UNIX, and SYBASE 10.x > > We get the following error message : > Procedure '#P$$000110010376147_C1_1' group number 1 already exists > in the database. > > I know that SQR creates temporary stored procedures for a BEGIN-SQL, > BEGIN-SELECT construct, unless a -XP is also supplied at the command > statement, and /or the command line argument. > > Is this statement true for stored procedures also? > > How does SQR create the stored procedure? and what does the error > stated above mean. > Also hoe can I avoid it? > > If more than two users use the program, does SQR generate temp. > stored procs. for each invocation, or does SQR create the proc. > according to some internal convention? > > > Thanks > > Sudeep > > sudeep_mulki@ml.com > From owner-sqr-users@USA.NET Mon Apr 28 18:03:41 1997 Date: Mon, 28 Apr 1997 17:08:09 -0500 From: Ray Ontko Subject: Re: Resetting Page Count > I remember some messages about resetting page counts, when you are > using the last-page function. I need to have the appearance of two > reports coming out of one .lis file. > > Any suggestions on how anyone is handling this. Michael, You can find all previous messages posted on this listserv at www.sqrug.com. You can reset the page count ONLY if you're willing to accept the last-page being the LAST last-page your program encounters. Usually this will be true only if all the reports within the .lis file have the SAME number of pages. For example: begin-program do main end-program begin-heading 2 page-number (1,1) 'Page ' last-page () ' of ' '.' end-heading begin-procedure main print 'howdy 1 of 2' (1,1) new-page print 'howdy 2 of 2' (1,1) new-page move 1 to #page-count print 'howdy 1 of 3' (1,1) new-page print 'howdy 2 of 3' (1,1) new-page print 'howdy 3 of 3' (1,1) end-procedure produces: Page 1 of 3. howdy 1 of 2 ^LPage 2 of 3. howdy 2 of 2 ^LPage 1 of 3. howdy 1 of 3 ^LPage 2 of 3. howdy 2 of 3 ^LPage 3 of 3. howdy 3 of 3 ^L Note that the page numbers in the first half of the report are wrong; they should be 1 of 2 and 2 of 2. If you can calculate the number of pages in the first section, you'll be in business if you DONT use last-page in that half. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Time for a new signature line." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Apr 29 18:02:16 1997 Date: Tue, 29 Apr 1997 17:20:55 -0500 From: "MCFALL.CMCMFG.COM" Subject: SQR Workbench 4.0.1 Beta We are trying to run the SQR Workbench 4.0.1 Beta version for Windows '95. We can log-on, select tables and columns, etc. However, when we try to actually run the report we get several log-on errors. It seems to think we are running Sybase rather than Oracle. Does anyone know of any .ini files or setup files that must be edited before running this version?? From owner-sqr-users@USA.NET Tue Apr 29 18:24:29 1997 Date: Tue, 29 Apr 1997 15:40:09 -0700 From: "J.J. Freitag" Subject: Re: SQR Workbench 4.0.1 Beta If you are having specific problems with the beta product it would probably be best to send me an email with a description of your problem. It sounds like there may be an error in your ODBC driver configuration. J.J. Freitag Product Manager SQRIBE Technologies jfreitag@sqribe.com From owner-sqr-users@USA.NET Tue Apr 29 18:45:41 1997 Date: Tue, 29 Apr 1997 18:32:28 -0500 From: Nathan Treadway Subject: Re: SQR Workbench 4.0.1 Beta > We are trying to run the SQR Workbench 4.0.1 Beta version for Windows '95. We > can log-on, select tables and columns, etc. However, when we try to actually > run the report we get several log-on errors. It seems to think we are running > Sybase rather than Oracle. It's hard to know without seeing the errors, but you might look in "File | Default Settings..." on the General tab. Be sure the "Remote Database" box says "Oracle" if that's the version of sqr you want to use. I'm assuming this box chooses which version of SQR gets called when you hit F5. If this is true, you also need to be sure the proper directory is listed in the database section of SQR.INI. I think, though, that you'll get an error like "SQRDIR not defined or invalid" if you try to run an SQR version that's not installed properly. (So check the Remote Database setting first.) Hope this helps. Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Tue Apr 29 19:27:44 1997 Date: Tue, 29 Apr 1997 19:47:50 -0400 From: Michael Bower Subject: SQR cycle Hello, I am running an SQR that does a begin-select from a table. I then want to process those records selected but I do not want the select to continuously run every time a new record is needed. For example: Begin-Select Customer, Customer_Number Do Main-Processing (which includes a commit statement) From Customer_Table Where Customer_Number = 0 End-Select When you place the processing routine within the select doesn't sqr utilize its own cycle so that the select does not run every time a new record is needed? Right now the SQR is running extremely slow and I am just wondering if the cycle is being utilized. Also, if it is being utilized, since the a commit is being done after a certain number of records, does that force the select to be executed again afterwards? Thank You in advance for everyone's help. Michael Bower MB0526@aol.com P.S. Our DBA is saying that the select is executing every time a new record is needed for processing. This is why I have this question. From owner-sqr-users@USA.NET Wed Apr 30 04:05:44 1997 Date: Tue, 29 Apr 1997 08:51:23 -0400 From: Matt Warren Subject: SQR mailing list? Newsgroup? My name is Matt Warren. I have worked with SQR off and on for the past two years with Oracle 7 databases. On my next project I will be using SQR extensively and was wondering if there is a mailing list or newsgroup that would field any tough questions I might have. Is this one? I did a search on yahoo and came up with this which looks like it is from an SQR mailing list. Thanks for the help. Matt Warren From owner-sqr-users@USA.NET Wed Apr 30 08:38:49 1997 Date: Wed, 30 Apr 1997 08:24:49 -0500 From: Ray Ontko Subject: Re: SQR mailing list? Newsgroup? > My name is Matt Warren. I have worked with SQR off and on for the past > two years with Oracle 7 databases. On my next project I will be using SQR > extensively and was wondering if there is a mailing list or newsgroup that > would field any tough questions I might have. Is this one? I did a search > on yahoo and came up with this which looks like it is from an SQR mailing > list. Thanks for the help. Matt, This is the only SQR listserv that I'm aware of. There is no newsgroup. There is a website you might want to check out if you haven't alread: http://www.sqrug.com/ Both the listserv and the website are independent and user-supported. The listserv enjoys a fair amount of readership and participation from SQRIBE. Total listserv traffic procedes at the rate of about 10 messages per week, quite tolerable to keep up with and participate in. The listserv archives are viewable at the website. Welcome to the SQR e-community! Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about our SQR Toolkit" rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Apr 30 08:51:33 1997 Date: Wed, 30 Apr 1997 09:07:14 -0400 From: "\"Fernando Villaamil" Subject: Re: SQR cycle In a message dated 97-04-30 03:19:25 EDT, you write: << I am running an SQR that does a begin-select from a table. I then want to process those records selected but I do not want the select to continuously run every time a new record is needed. For example: Begin-Select Customer, Customer_Number Do Main-Processing (which includes a commit statement) From Customer_Table Where Customer_Number = 0 End-Select >> The select is being processed for every record that matches the WHERE statement.... thing of it as a DOWHILE loop. For every record matching the criteria you are doing MAIN-PROCESSING From owner-sqr-users@USA.NET Wed Apr 30 09:38:45 1997 Date: Wed, 30 Apr 1997 09:27:27 -0500 From: Nathan Treadway Subject: Re: SQR cycle > I am running an SQR that does a begin-select from a table. I then want to > process those records selected but I do not want the select to continuously > run every time a new record is needed. For example: I'm not quite sure what you are trying to do differently, but here are a couple ideas: * Look at the -b flag on the begin-select statement. This can be used to changed the number of rows retrieved from the database at one time. (The rows are stored in an internal buffer until actually processed by the begin- select.) * Replace your call to your processing procedure with code to store all the rows returned by your select into an array, then (outside of the begin-select paragraph) loop back through your array and call your procedure. Obviously, this won't work well if the table in question has too many rows to fit in memory at once. If these don't solve your problem, what are you trying to accomplish? Reduce CPU time on the server? Reduce rollback segment usage? Nathan ---------------------------------------------------------------------------- Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server) nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/ From owner-sqr-users@USA.NET Wed Apr 30 10:09:39 1997 Date: Wed, 30 Apr 1997 09:49:57 -0500 From: "Eric A. Eastman" Subject: Re: SQR cycle On Tue, 29 Apr 1997, Michael Bower wrote: > Hello, > I am running an SQR that does a begin-select from a table. I then want to > process those records selected but I do not want the select to continuously > run every time a new record is needed. For example: > > Begin-Select > > Customer, > Customer_Number > > Do Main-Processing (which includes a commit statement) > > From > Customer_Table > > Where Customer_Number = 0 > > End-Select > Hi Michael, What DB are you using? On Oracle a cursor will be established when the begin-select is encountered and then it will continue to fetch a row and do Main-Processing until it runns out of rows in the query or encounters a exit-select. Some interesting problems can arise if you are updating the same table that you are selecting from. What specific symtoms are you having or what situation are you trying to avoid? Hope this helps, Eric ------------------------------------------------------------------------ Eric Eastman | Ray Ontko & Co. | Adverbs are endangered; act quickly. erice@ontko.com | Richmond, IN | http://www.ontko.com/, ftp.ontko.com From owner-sqr-users@USA.NET Wed Apr 30 10:21:57 1997 Date: Wed, 30 Apr 1997 10:30:27 -0400 From: Steve Hall Subject: sqr cycle --0__=pNLNpAaNfN3bWpwTZCpPKEGEf1e3EHLwnwCuWnlNVe4TP6I0034g6ghB Content-type: text/plain; charset=us-ascii Sometimes when faced with situations of this type I will make a first pass select into a temp table. This temp table takes the place of the driver loop. You can isolate how long it takes to build. Then use the temp table as a starting point. -Steve (Embedded image moved FVillaamil @ AOL.COM ("\"Fernando Villaamil") to file: 04/30/97 07:07 AM PIC09077.PCX) To: SQR-USERS @ USA.NET (Multiple recipients of list SQR-USERS) @ internet cc: (bcc: Steve Hall) Subject: Re: SQR cycle In a message dated 97-04-30 03:19:25 EDT, you write: << I am running an SQR that does a begin-select from a table. I then want to process those records selected but I do not want the select to continuously run every time a new record is needed. For example: Begin-Select Customer, Customer_Number Do Main-Processing (which includes a commit statement) From Customer_Table Where Customer_Number = 0 End-Select >> The select is being processed for every record that matches the WHERE statement.... thing of it as a DOWHILE loop. For every record matching the criteria you are doing MAIN-PROCESSING --0__=pNLNpAaNfN3bWpwTZCpPKEGEf1e3EHLwnwCuWnlNVe4TP6I0034g6ghB Content-type: application/octet-stream; name="PIC09077.PCX" Content-transfer-encoding: base64 CgUBCAAAAABoACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABaQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAD1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPH E8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sT zRPHE8MTwhPwEwzIBgzYE8wTxhPDE8IT7hPOBtcTzBPGE8MTE+wTwgbCBwbCEgbCEgbCEsUG1hPL E8YTwxMT6hMMwgYHwgLCAwISwgfEEsMCwwbVE8sTxRPDExPpE8MGAwcCBwMCwhLDB8ISwgISwgLD BtUTyhPFE8MTE+gTwgIHA8ICEw4DDgLDE8USwwLCEMIG1BPKE8UTwxMT5xMCAwcDAg4TDgITwgIS D8ISD8ISBRICEcICwwbUE8oTxRPCExPmEwYCBwMCDgIOwgLDExITEhPCEg8GxgLDBtMMDAfJE8QT whMT5hMGwwITBgMCDhLFEw8SE8ISBgIDwhIDEsMGB9MDxwwHxRPDExPlEwYHAhESAg8CwhMPwhMP xBMPxRIQwgIDAgMCBtMDxwPEDAfDE8IT4RMHwwzCBgLCEhMCDxLIE8MSD8MSwwIQAwIDBgfSDMkD wgPCDAfCExPbEwfGDMIDDAIHERITEhMSwxMPwxMPwxPDEgIDAgMCwwMCBgzREwfHDMYDDMITE9YT B8UMyAMGB8ICBhLDAsYT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zRMHwwwHxxPDE8ITwxMHDMYPxwwH1BMGEgYSBhLLDM4PwwwTDMcTwgfEDAfJE8QTwhMT xBMHwgzLD9sM0w/GDAfDEwzDEwfEDAfLE8YTwxMTxhMHxAztD8gMBgfIE8QMB84TxxPDE8ITyhMH xwzbD8sMEAUMBcIMwgYH1RPKE8UTwxMT0RMH2wwGEAYQBhACBQwFDAUMBgwHBgfWE8sTxRPDExPu EwYMBhAGEAIGDAYMwwYH1xPLE8YTwxMT8BPKBgfYE8wTxhPDExP1E9sTzRPHE8MTwhP1E9sTzRPH E8MTwhMMAAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD/ /wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8A AAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A //8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAA AP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA /wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCk gICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vw oKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw //vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzA psrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDA wNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICA wMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACA AICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACA gACA//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP////// --0__=pNLNpAaNfN3bWpwTZCpPKEGEf1e3EHLwnwCuWnlNVe4TP6I0034g6ghB-- From owner-sqr-users@USA.NET Wed Apr 30 11:16:30 1997 Date: Wed, 30 Apr 1997 11:27:49 -0400 From: Sudeep Mulki Subject: EXECUTE Stored Procedure Hi! We use stored procedures (SYBASE 10.x, UNIX), and SQR 3.x (UNIX) We do not use the SQR Excecute (sqrt) since we have substitution variables, but we do use the -XP flag to stop SQR from creating temporary stored procs. Question: Does SQR recompile the stored procedures if we do not use 'sqrt'? But we get the following error : (SQR 3915) Couldn't set up EXECUTE cursor. &TransactionClassName varchar(255) (SQR 5528) Sybase CT_SEND error in cursor 14: (2729) Procedure '#P$$000430010228616_C1_1' group number 1 already exists in the database. Choose another procedure name or procedure number. Error 3915 according to documentation is : The Database Server returned an error while trying to compile the SQL statement needed to set up the EXECUTE command. WHAT does this mean ?? Any help will be greatly appreciated. Sudeep Mulki (sudeep_mulki@ml.com) From owner-sqr-users@USA.NET Wed Apr 30 15:55:46 1997 Date: Wed, 30 Apr 1997 15:55:00 -0500 From: Michael Docteroff Subject: SQR Viewer Error Hello, I have one SQR program that is generating two .SPF files on a VAX OpenVMS server running Oracle. When I view the .SPF file that was generated last in the SQR program in SQR Viewer everything looks fine. When I go to print the file I get the message: (SQR 6707) An invalid seek was made for page 0. The printer dialog box says From: 1 to 0 Has anybody experienced this problem before. It is always the second file that this happens to. In the SQR program I just do a NEW-REPORT $RPTNAME2 TIA - Michael Docteroff From owner-sqr-users@USA.NET Wed Apr 30 17:27:02 1997 Date: Wed, 30 Apr 1997 17:46:04 -0400 From: Chris Barnsley Subject: Maximo PMMDBS Is anyone out there using Maximo and if so, are there any SQR experts out there that have experience with this product? We are running PSDI Maximo Series 5 rev 2.11 on our WIndows 3.11 network using Pathworks (no comments please) and Gupta SQLBase Server 5.2.0 for DOS. We plan to upgrade to all NT/Win95 on the next rev. (soon) We also have SQLTalk, WINTalk and Quest. I am a complete newbie to SQL/SQR and am currently waiting for SQR training from my employer. I am just looking for people familiar with the product in case I run into problems and need an alternate to PSDI Support resources Thanks in advance ======================================== Regional Municipality of Hamilton-Wentworth Ont, Canada URL: Chris Barnsley: ======================================== "Webmaster's Tips and Resources" ======================================== Web F/X Internet / Intranet Web Site Design ======================================== From owner-sqr-users@USA.NET Wed Apr 30 20:38:47 1997 Date: Wed, 30 Apr 1997 20:16:28 -0400 From: Michael Bower Subject: Re: SQR cycle Hello, Thank you for your reply. Today we isolated the problem but do not know if it is a bug with SQR or just they way the system has to process the select. We are on Informix 7.22. What we found out is that every time the commit happens the SQR cycle is broken and the select has to run all over again for some reason. It seems that the select should just resume from the last record processed but for some reason (maybe since the commit is executed the select's integrity has been violated) the select has to process again before resuming processing. Thanks again for everyone's help! Michael From owner-sqr-users@USA.NET Thu May 1 07:17:44 1997 Date: Thu, 1 May 1997 14:17:44 PDT From: semech Subject: SQR for MVS/DB2 Hi, We are considering SQR for an MVS (BATCH and CICS) mainframe with DB2 and VSAM data. We are now starting development on a large project and are looking for a "good report writer". The installation currently uses COBOL REPORT WRITER as the standard developement tool but is looking "for something better". So, here are some questions: 1. Generally, do you think SQR could be a good "fit" ? 2. Are there any success stories in this type of environment? 3. Can you compare COBOL REPORT WRITER with SQR? Thanks in advance, Israel Fessel From owner-sqr-users@USA.NET Thu May 1 08:07:51 1997 Date: Thu, 1 May 1997 13:25:34 +0000 From: "\"Linda Clarke\" =20" Subject: SQR on Informix New-Era =20 Does anyone have any experience of running SQR v3.5 on PC/Windows/Informi= x,=20 where the Informix is New-Era v2.2? Our user has generated an SQR progra= m in=20 ReportMate but is using SQRW.EXE to run it.=20 =20 He gets a "General Protection Fault in vsqr module gdi.exe" error. He is= =20 running SQR with the obligatory -printer:xx flag and all his PCs give the= same=20 symptoms. Most have 32Mb memory. =20 The same program is okay if RUN in ReportMate using the 'Preview' option=20= and=20 printed using the print button, but strangely gives the same GPF as befor= e if=20 NOT run in Preview mode. =20 New-Era seems to be something of a problem child and SQRiBE do not suppor= t SQR=20 to run on it, but if anyone has had (and overcome!) similar problems, I'd= be=20 grateful to hear.=20 ---------------------------------------------------------------------- From : Mino Trombetta Date : 01 May 1997 Company : Software Product Services Limited Tel : +44 (0)1483 730771 =20 Fax : +44 (0)1483 727417 E-Mail : support@sps-uk.co.uk URL : http://www.sps-uk.co.uk ---------------------------------------------------------------------- From owner-sqr-users@USA.NET Fri May 2 08:56:42 1997 Date: Fri, 2 May 1997 09:17:03 -0400 From: "\"Fernando Villaamil" Subject: Re: SQR for MVS/DB2 I can't give you any detail on the use of SQR against DB2 but I can tell you that the amount of code that you will have to generate in Cobol Report Writer will be greater than the one you will need to generate in SQR. The other side of the coin is that Cobol would probably give you better problem information that SQR but we haven't run into anything that we haven't figured out in SQR. From owner-sqr-users@USA.NET Fri May 2 09:01:36 1997 Date: Fri, 2 May 1997 09:20:07 -0400 From: "\"Fernando Villaamil" Subject: SQR Version 4 Was wondering if anyone was using the new version of SQR.. we received some information on it. Seems like other than producing HTML output the only other significant change is the definition of numeric variables (it now supports integer, decimal and float). From owner-sqr-users@USA.NET Fri May 2 11:32:57 1997 Date: Fri, 2 May 1997 11:37:21 -0700 From: Allan Geetter Subject: Re: SQR Version 4 "Fernando Villaamil wrote: > > Was wondering if anyone was using the new version of SQR.. we received some > information on it. Seems like other than producing HTML output the only > other significant change is the definition of numeric variables (it now > supports integer, decimal and float). It also has corrections to some of the known problems that never got resolved in Ver3.0 Allan Geetter University of Hartford From owner-sqr-users@USA.NET Fri May 2 11:42:26 1997 Date: Fri, 2 May 1997 08:58:23 -0700 From: "J.J. Freitag" Subject: Re: SQR Version 4 Fernando, The four big changes in v4 were the HTML output, we added a integer numeric to support numbers 38 places past the decimal, we added support for date types to enable date manipulation and calculations, and we added support for International Locales and formatting. J.J. Freitag Product Manager SQRIBE Technologies jfreitag@sqribe.com From owner-sqr-users@USA.NET Fri May 2 20:57:20 1997 Date: Fri, 2 May 1997 18:10:18 -0700 From: Lydia Verhoef Subject: Capturing counts on an UPDATE stmt... I am in need of capturing update counts within an SQR report, but am not sure quite how to do it. For example if I issue the following statement: BEGIN-SQL UPDATE ssbsect SET ssbsect_seats_avail = (ssbsect_max_enrl - ssbsect_enrl) WHERE ssbsect_term_code = $PARM_term AND ssbsect_seats_avail <> (ssbsect_max_enrl - ssbsect_enrl) END-SQL how can I capture the number of records it updated? The only two ways I can think of are: a) Add a pre-count using the same where clause. The drawback with this is performance, especially where there are a lot of separate updates. b) Use the -S option at runtime to get row counts. This option has the drawback of not being very readable from a user standpoint and is stored in a separate output file. Are there any other alternatives I have overlooked? Thanks, Lydia -------------------------------------------------------------------------- Lydia Verhoef Programmer/Analyst lverhoef@pcc.edu Portland Community College (503) 977-4750 Information Technology Services http://www.pcc.edu/its -------------------------------------------------------------------------- From owner-sqr-users@USA.NET Sat May 3 12:52:22 1997 Date: Sat, 3 May 1997 12:34:37 -0500 From: Ray Ontko Subject: Re: Capturing counts on an UPDATE stmt... > I am in need of capturing update counts within an SQR report, but am not > sure quite how to do it. For example if I issue the following statement: > > BEGIN-SQL > UPDATE ssbsect > SET ssbsect_seats_avail = (ssbsect_max_enrl - ssbsect_enrl) > WHERE ssbsect_term_code = $PARM_term > AND ssbsect_seats_avail <> (ssbsect_max_enrl - ssbsect_enrl) > END-SQL > > how can I capture the number of records it updated? The only two ways > I can think of are: > > a) Add a pre-count using the same where clause. The drawback > with this is performance, especially where there are a lot > of separate updates. > > b) Use the -S option at runtime to get row counts. This option > has the drawback of not being very readable from a user > standpoint and is stored in a separate output file. > > Are there any other alternatives I have overlooked? Lydia, Have you looked at #sql-count? There is a SQR pre-defined variable that contains the number of records updated, inserted, or deleted by the last begin-sql block. I think this is on page 11 in the V3 manual. Note: If you're using Sybase, you may need to use -xp on the begin-sql statement or on the command line. Good luck. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about our SQR toolkit." rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Sun May 4 14:21:50 1997 Date: Sat, 3 May 1997 20:55:54 +1000 From: Paul Hickert Subject: Re: Capturing counts on an UPDATE stmt... Ray, I've never heard about an SQR toolkit. I'd sure like some information. Are there any plans for a REAL debugger in the near future or will I have to put up with show and display until I quit using SQR? Paul Hickert Ray Ontko wrote: > > > I am in need of capturing update counts within an SQR report, but am not > > sure quite how to do it. For example if I issue the following statement: > > > > BEGIN-SQL > > UPDATE ssbsect > > SET ssbsect_seats_avail = (ssbsect_max_enrl - ssbsect_enrl) > > WHERE ssbsect_term_code = $PARM_term > > AND ssbsect_seats_avail <> (ssbsect_max_enrl - ssbsect_enrl) > > END-SQL > > > > how can I capture the number of records it updated? The only two ways > > I can think of are: > > > > a) Add a pre-count using the same where clause. The drawback > > with this is performance, especially where there are a lot > > of separate updates. > > > > b) Use the -S option at runtime to get row counts. This option > > has the drawback of not being very readable from a user > > standpoint and is stored in a separate output file. > > > > Are there any other alternatives I have overlooked? > > Lydia, > > Have you looked at #sql-count? There is a SQR pre-defined > variable that contains the number of records updated, inserted, > or deleted by the last begin-sql block. I think this is on > page 11 in the V3 manual. > > Note: If you're using Sybase, you may need to use -xp on the > begin-sql statement or on the command line. > > Good luck. > > Ray > > ---------------------------------------------------------------------- > Ray Ontko | Ray Ontko & Co | "Ask me about our SQR toolkit." > rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Sun May 4 19:46:55 1997 Date: Sun, 4 May 1997 17:36:01 -0500 From: Ray Ontko Subject: Re: Capturing counts on an UPDATE stmt... > Ray, > > I've never heard about an SQR toolkit. I'd sure like some > information. Are there any plans for a REAL debugger in the near future > or will I have to put up with show and display until I quit using SQR? > > Paul Hickert Paul, Thanks for asking;-) We have a collection of tools that we've used over the years that we've integrated into a single SQR program that we call SQRSH (short for SQR SHell). It can be used interactively (as the name implies) or it can be used in "batch" mode. It is highly extensible and is written entirely in SQR (of course). At present, it includes a trace utility, a crude "pretty printer" (code beautifier), a library tool (which makes clever use of #ifdef to include only those modules you need from an #include file), a feature for inserting a documentation header, a module that extracts documentation from a program or #include file, a help facility, and many other features. Best of all, it provides a mechanism for adding your own favorite tools. I've prototyped an interactive debugger, but it is not yet ready for prime time. It allows you to step through the code line by line, set break points, trace points, and watch points, and examine or modify variables at any point in the execution. It works by creating a copy of your program in which MANY additional statements have been added. Of course, the debugger version of a program runs much more slowly, but it does work with only a few side effects. SQRIBE would, of course, be in a much better position to produce a better debugger, one that is integrated with the SQR execution engine. Presumably, they have other priorities. As for SQRSH, we've been hoping to put it out for general use, but just haven't been able to find the time lately. We're thinking of distributing it under terms similar to the Gnu Public License, which would allow it to be freely distributed, source included, and others could modify and enhance as long as it retained the original license terms (free distribution, with source, etc.) If there is sufficient interest, I'll see if I can wrap it all up into some sort of package and put it on the net soon. Ray ---------------------------------------------------------------------- Ray Ontko | Ray Ontko & Co | "Ask me about our SQR Toolkit" rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ From owner-sqr-users@USA.NET Mon May 5 09:27:23 1997 Date: Mon, 5 May 1997 09:19:53 -0400 From: "\"Fernando Villaamil" Subject: SQRSH We are definitely interested in SQRSH and the debugger when you have it... please let us know how we can get it. Fernando A. Villaamil Miami Herald Publishing Co. (305) 376-3072 fvillaamil@aol.com From owner-sqr-users@USA.NET Mon May 5 15:23:40 1997 Date: Mon, 5 May 1997 11:33:13 -0700 From: Lydia Verhoef Subject: Re: Capturing counts on an UPDATE stmt... Ray -- The #sql-count variable works great. Thank-you for pointing me in the right direction. Lydia On Sat, 3 May 1997, Ray Ontko wrote: > > I am in need of capturing update counts within an SQR report, but am not > > sure quite how to do it. For example if I issue the following statement: > > > > BEGIN-SQL > > UPDATE ssbsect > > SET ssbsect_seats_avail = (ssbsect_max_enrl - ssbsect_enrl) > > WHERE ssbsect_term_code = $PARM_term > > AND ssbsect_seats_avail <> (ssbsect_max_enrl - ssbsect_enrl) > > END-SQL > > > > how can I capture the number of records it updated? The only two ways > > I can think of are: > > > > a) Add a pre-count using the same where clause. The drawback > > with this is performance, especially where there are a lot > > of separate updates. > > > > b) Use the -S option at runtime to get row counts. This option > > has the drawback of not being very readable from a user > > standpoint and is stored in a separate output file. > > > > Are there any other alternatives I have overlooked? > > Lydia, > > Have you looked at #sql-count? There is a SQR pre-defined > variable that contains the number of records updated, inserted, > or deleted by the last begin-sql block. I think this is on > page 11 in the V3 manual. > > Note: If you're using Sybase, you may need to use -xp on the > begin-sql statement or on the command line. > > Good luck. > > Ray > > ---------------------------------------------------------------------- > Ray Ontko | Ray Ontko & Co | "Ask me about our SQR toolkit." > rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/ > -------------------------------------------------------------------------- Lydia Verhoef Programmer/Analyst lverhoef@pcc.edu Portland Community College (503) 977-4750 Information Technology Services http://www.pcc.edu/its -------------------------------------------------------------------------- From owner-sqr-users@USA.NET Mon May 5 20:05:17 1997 Date: Mon, 5 May 1997 16:44:27 -0700 From: Sheila Sangalang Subject: Generating Multiple Output Files I am currently using SQR v.3.0.12.2/ORACLE. I have created a program that would select data from a table and print them on a 3-column full sheet Avery labels. I was able to successfully format it on how I would want it to look on the page. It allows me to generate a single output file (.lis) for printing. If I want to create several (user-defined) output files using the same table and the same layout depending on the criteria I set on my select statements, what would be the SQR command(s)/paragraph to perform this process? Any help will be greatly appreciated. ******************************* Sheila Sangalang SQR User City College of SF From owner-sqr-users@USA.NET Tue May 6 17:13:31 1997 Date: Tue, 6 May 1997 14:07:10 -0800 From: Raja Rajaram Subject: #include problem... Hi All I don't know if you all have come across this but I came across this and it is pretty weird. This comes when I am trying to use the SQRWIN.DLL to generate the report for me f