Hello all,
This is my first post, so i hope to do it correctly.
I have executed this command, to obtain the atributes o my PRTF's
And i have a SQLRPGLE that reads the file with this sentence:
The program variable WPGRT0 is deffined like this:
When i run the SQL statment interactive (STRSQL) , the colum contains different values (-2, 360, etc)
But running the SQLRPGLE, the var WPGRT0 everytimes contains 0 (the rest of the vars contains correct values, only WPGRT0 is wrong)
I have tryed with this definition:
But the variable alwais contains 0
i have a iSeries V5.3
Thanks in Advance for your help.
This is my first post, so i hope to do it correctly.
I have executed this command, to obtain the atributes o my PRTF's
PHP Code:
DSPFD FILE(*ALL/*ALL) TYPE(*ATR) OUTPUT(*OUTFILE) +
FILEATR(*PRTF) OUTFILE(MDTOS/DSPFDATRF) +
OUTMBR(DSPFDATRF *REPLACE)
Code:
*** C/EXEC SQL C+ SELECT PRFSZL, PRFSZW, PRLPI, PRCPI, PROVRF, PRPGRT C+ INTO :WPAGL, :WPAGA, :WLPI, :WCPI, :WOVRF :WPGRT0 C+ FROM DSPFDATRF C+ WHERE PRFILE = :WPRMBRO2 AND PRLIB = :PRLIBR C/END-EXEC ***
PHP Code:
D WPGRT0 S 2B 0
But running the SQLRPGLE, the var WPGRT0 everytimes contains 0 (the rest of the vars contains correct values, only WPGRT0 is wrong)
I have tryed with this definition:
PHP Code:
D WPGRT0 S 5I 0
i have a iSeries V5.3
Thanks in Advance for your help.
Comment