[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: .LIS files not being created properly (found the problem!)



> a line of code that was supposed to print a blank line:
>
>    PRINT ' '   (+1,,)
>
> Except there was no space between the single quotes.  It read:
>
>   PRINT ''   (+1,,)
>
> Aaaaaaagh!!!  It ran fine on the client.  Bombed out in Unix with no
> error messages.  Half of me is laughing out loud and the rest wants to

Hmmm.  Strange.  I'm interested to know if PRINT '' (+1,,) works okay in
that version of SQR outside of the heading.  Certainly it should work (both
inside and outside the heading).  What version of SQR are you running on
your server?  I'm able to do both with SQR/3.0.15/Intel/SCO Unix R3.2
V5.0/Oracle 7.2.2.3/Sep 25 1996.

Do you have core dumps enabled on your server machine?  It may be that the
reason SQR didn't print an error message was that had a segment fault or
something like that.  (Did you get an "SQR: End of Run." line when the
program crashed?)

As a side note, I've found that its less ambigious to use the POSITION
command instead of printing blanks when I'm simply trying to move the cursor
to a new position.  Instead of
   print ' ' (+1)
I just say
   position (+1)
, and then I don't have to worry 6 months later whether that space is really
important :)

                                                Nathan

----------------------------------------------------------------------------
Nathan Treadway    | Ray Ontko & Co. | info@ontko.com (auto-reply server)
nathant@ontko.com  | Richmond, IN    | ftp.ontko.com, http://www.ontko.com/