Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

QIO operation fails for files with extended characters in the name

 
SOLVED
Go to solution
madhav_poddar
Occasional Advisor

QIO operation fails for files with extended characters in the name

I have written a code that accesses / modifies various file attributes using QIO operation. It works perfectly fine for all the files except those containg extended characters in their name (such as This^.File^.Name^.Has^.A^.Lot^.Of^.Periods.DAT;1 or SAMPLE^!-FILE.TXT;1). For such file, following error is generated :
sys$qiow (iosb) failed - error status 2072 (%SYSTEM-W-BADFILENAME, bad file name syntax).

 

Please advise.

 

Thanks,

Madhav

2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: QIO operation fails for files with extended characters in the name

> I have written a code that accesses / modifies various file attributes
> using QIO operation. [...]

   I'm not good at debugging invisible code, and I only have
a moment now, but...

      naml$l_filesys_name
      naml$l_filesys_name_alloc

   If you're not using them, then perhaps you should be.  For an
example, see a (recent) UnZip [.vms]vms.c.

madhav_poddar
Occasional Advisor

Re: QIO operation fails for files with extended characters in the name

Thanks Steven.

I was able to solve the issue after referring to the file vms.c