Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: DB2 9.1.0 not move values to Host-Variables on PL1 3.7.0

$
0
0
Author: Miguel Fernandez
Subject: DB2 9.1.0 not move values to Host-Variables on PL1 3.7.0
Posted: Wed Jan 25, 2017 8:24 pm (GMT 5.5)

I have tested the program written in PL1-DB2 with the SELECT & FETCH clauses where host variables whose TYPES are declared as characters lose the CONTENT of their value when executing the EXEC SQL statement from program PL1.

However the variables declared as numerical are fully deployed with their true values that are defined in the columns of the consulted table.

Is this an error in PL1-DB2 versions that need to be repaired or is it a bad programming?




[img]
OUTPUT

1 REPORTE DE PROYECTOS AFECTADOS AL AUMENTO DE SALARIOS
EMPLEADO NOMBRE-EMPLEADO SALARIO BONUS COMM
ÍÍÍÍºÍ ‡ÿÿ‰ 695.31 160.00 42.20
-RPT1.EMPNO='ÍÍÍͺÍ' RPT1.FIRSTNME='„‡ˆ¤‰Š¤+ ' RPT1.MIDINIT='¤' RPT1.LASTNAME='‡ÿÿ‰'
RPT1.WORKDEPT='ÿÍÍ' RPT1.PHONENO='¼Ë¹' RPT1.HIREDATE='ºËÌÉͺͺ' RPT1.JOB='&ˆ ‰ÄÄÄÄ'
RPT1.EDLEVEL= 18 RPT1.SEX='Æ' RPT1.BIRTHDATE='ºË¼¼Í¹º»' RPT1.SALARY= 695.31
RPT1.BONUS= 160.00 RPT1.COMM= 42.20;

[/img]


Viewing all articles
Browse latest Browse all 8500

Trending Articles