COBOL data maping in file and report

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: COBOL data maping in file and report

Postby vasuki a » Sun Feb 06, 2011 12:48 am

Hi all,

I am having a doubt simillar to the one which has been posted earlier..........

I have declared a variable name AMT in db2 as Decimal(9,2) and When i get the dclgen host variable it is
pic s9(7)v99 usage comp-3.Now I am displaying this value thr' cics.... I am using PICIN=z(7).99 in map.... its working fine,
But my problem is when i try to get input online(cics) and try to insert it into Database its just updated as .00 ,
what should be my picout ? and when i get this map input thr' cobol I am using local variables
For example :
01 dcltable1
10 Amt pic s9(7)v99 usage comp-3.
77 ws-amt pic 9(7)v99.
move AMTI to ws-amt.
move ws-amt to amt of dcltable1.

like this only I am moving map inputs bcoz I was not able to get map input directly to dclgen host variables...
Now suggest me what should i code to get Input from cics and upate it to db2 as a decimal value????
vasuki a
Posts: 1
Joined: Sun Feb 06, 2011 12:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: Re: COBOL data maping in file and report



Return to IBM Cobol


  • Related topics
    Last post