I am working with Natural One 9.1.4 over a Docker server with a Free Trial License
Im trying to read a WORK FILE but Im not able to read it.
DEFINE DATA LOCAL
1 PROGRAMA
2 NOMBRE (A008)
2 DESCRIPCION (A070)
END-DEFINE
*
DEFINE WORK FILE 1
'E:\NaturalOne1\AdministracionPersonal\LSTPRGMS.TXT'
*
READ WORK FILE 1 PROGRAMA
DISPLAY NOMBRE DESCRIPCION
END-WORK
*
CLOSE WORK FILE 1
END
The text file exists at the path but I just receive a fail named NAT1599 Attemp to execute READ/WRITE WORK FILE to non-existent file
When I worked with the old Natural-CE free trial this code worked.
Hello @Marcos_Cob
You are trying to use windows drive on a Linux docker, could you change it to a full path on the Linux machine and let us know if you managed to access the file ?
I had not noticed that server is running over Linux and docker…
I have created a txt into the project and I have uploaded it to server into the path /opt/softwareag/Natural/fuser/ADMPERS/RES/PRGRMS.TXT
DEFINE DATA LOCAL
1 #FICH (A256) INIT <'/opt/softwareag/Natural/fuser/ADMPERS/RES/PRGRMS.TXT'>
1 #PROGRAMA
2 NOMBRE (A008)
2 DESCRIPCION (A070)
END-DEFINE
*
DEFINE WORK FILE 11 #FICH TYPE "ASCII" ATTRIBUTES 'KEEP'
*
READ WORK 11 #PROGRAMA
DISPLAY NOMBRE DESCRIPCION
END-WORK
*
CLOSE WORK FILE 11
END