Author: Miguel Fernandez
Posted: Thu Feb 09, 2017 3:58 pm (GMT 5.5)
To finish closing this incident and as general culture I comment the following:
The program runs correctly, the output in the host variables are ASCII type and not EBCDIC
To solve it I was studying the types of code CCSID that are defined in PARM and the best solution that I found is to define in the BIND the variable ENCODING like EBCDIC
Posted: Thu Feb 09, 2017 3:58 pm (GMT 5.5)
To finish closing this incident and as general culture I comment the following:
The program runs correctly, the output in the host variables are ASCII type and not EBCDIC
To solve it I was studying the types of code CCSID that are defined in PARM and the best solution that I found is to define in the BIND the variable ENCODING like EBCDIC
Code: |
********************************* TOP OF DATA ********************************** Pgm: PGPL1SQ2 REPORTE DE PROYECTOS AFECTADOS AL AUMENTO DE SALARIOS SALARIO BONUS COMM LEVEL EMPNO LASTNAM 695.31 160.00 42.20 18 000010 HAAS ******************************** BOTTOM OF DATA ******************************** |
Code: |
DSN SYSTEM (DB9G) RETRY(5) BIND PACKAGE (CAIXPACK) - OWNER (IBMUSER) - QUALIFIER (DSN8910) - MEMBER (PGPL1SQ2) - LIBRARY ('MIGUEL.DBRMLIB') - RELEASE (DEALLOCATE) - ACTION (REPLACE) - EXPLAIN (YES) - VALIDATE (RUN)- ISOLATION (CS) - FLAG (I) - [b] ENCODING (EBCDIC) - [/b] CURRENTDATA (NO) - DEGREE (1) - ENABLE (*) - SQLERROR (NOPACKAGE) END |