Page 2 of 2

Re: COBOL data maping in file and report

PostPosted: Sun Feb 06, 2011 12:48 am
by vasuki a
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????