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"
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.