Hello, I am trying to write into a dataset with a rexx program.
And i am having the following error
What could be the problem? thanks in advanced Ignacio
Code:
/* REXX */
"ALLOC SHR FILE(OUT) DATASET('P1IXF2.PRIVADA.LIBRERIA(PROYEC3)')"
SAY 'ALLOC RC ' RC
OUT.1 = " 01 WS-GRUPO-VARIABLES. "
OUT.2 = "05 WS-TEXTVAR P A BLA'."
OUT.3 = " 05 WS-NUMVAR-PACKUE 5."
OUT.4 = "05 WS-SUBGRUPO."
OUT.5 = " 10 WS-NUMVAR-ZONE PIC 9(8)."
OUT.6 = " 10 WS-NUMVAR-ZONE PIC 9(8)."
SAY 'VARS RC ' RC
"EXECIO * DISKW OUT (STEM OUT."
SAY 'DISKW RC ' RC
"FREE FILE(OUT)"
SAY 'FREE RC ' RC
And i am having the following error
Code:
ALLOC RC 0,
VARS RC 0,
DISKW RC 0,
IKJ56861I FILE OUT NOT FREED, DATA SET IS OPEN,
FREE RC 12,
***,
What could be the problem? thanks in advanced Ignacio