Skip to main content

Please is there any possibility to have Unicode chars in filename, and use this file in Cobol. Like this:

select optional intb-file assign to f-intb-file
file status is w-file-status.

DATA DIVISION.
FILE SECTION.

fd intb-file
value of id f-intb-file.
copy "sxintrc.cpy".

WORKING-STORAGE SECTION.

01 FILE-NAMES.

05 f-intb-file pic n(100) value spaces.

 

I got this error: COBCH0258S ASSIGN data-name F-INTB-FILE illegal

Thanks for any help.


#NetExpress5.1
#COBOL

Please is there any possibility to have Unicode chars in filename, and use this file in Cobol. Like this:

select optional intb-file assign to f-intb-file
file status is w-file-status.

DATA DIVISION.
FILE SECTION.

fd intb-file
value of id f-intb-file.
copy "sxintrc.cpy".

WORKING-STORAGE SECTION.

01 FILE-NAMES.

05 f-intb-file pic n(100) value spaces.

 

I got this error: COBCH0258S ASSIGN data-name F-INTB-FILE illegal

Thanks for any help.


#NetExpress5.1
#COBOL
Hi,

The error you are seeing from the compiler is due to using an illegal type. The product does not support filenames stored in a pic n usage national data item.