using ACCESS to point to a non-configured directory...


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Bob A on September 03, 2010 at 13:56:15:

copied some code to retrieve:

Path name
file name

from the operator and then open a .csv file for processing. the working code consists of:

1) ACCESS to associate a dummy "COMET directory name" with the path
2) dummy CREATE to associate a COMET 8.3 name with the input file
3) OPEN to start accessing the file

the only thing that seems to be different here versus the working code is that I:

pass the dummy "COMET directory name" as a 3 character string
pass the DAB "Directory Access block" as a 3.0 number

when I dump the parsed path\file.ext I get a valid path and a valid file.ext
after the ACCESS, I check the EXCP, which is ZERO
after the OPEN, I do an FSTAT and check that the name in byte 50 for a length of 12 matches the 8.3 file name (which it does)

BUT... NOTHING SEEMS TO HAVE REALLY HAPPENED!

when I issue an INQUIRE to process the file, I get EXCP=2 on the first INQUIRE
when I look into the path, there's only one object in the path:

my data file (8.3 file name.ext)
no QDIR.DIR
no QDIR.I00

most of the other code I have copies the file into a COMET directory using DOS commands and then opens the COMET file name to proceed. I was trying to make something that uses some newer techniques and saves the time of copying a large file.

Thanx

Bob "A"


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]