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

Re: dat output files



I think your syntax is wrong. Remove curley brackets in " {filename.dat} " if
you have used it really like this in your program and not #defined
filename.dat or used 'ask filename.dat' . Also check for value of #status
after  open statement to verify if there was any error in opening the file.  I
will get back to you after I run this code practically at my workplace.
Goodluck.
-arun


In a message dated 98-01-16 14:11:36 EST, you write:

<<     I am a new user of sqr and I am trying to create a flat file. I am
      opening and writing to a file within my sqr code.  When I run my code,
      my output is sent to my temp file in my c directory.

      When I run my code, I am not finding my .dat file in the temp file on
      my c directory or anywhere on my c drive.  I was wondering if someone
      could give me some advice on what I might try to fix the problem.


      My code is as follows:

      begin-procedure init
      do create_file
      end-procedure !init

      !**************************************************************
      !Create File
      !**************************************************************

      begin-procedure create_file
           open '{filename.dat}'as 1 for-writing stat=#status record=2050
      end-procedure !create_file

  >>