A Table feild is declared as Decimal(7,2). I want to insert
the decimal in to this column thru cobol-db2 program.
How should I declare my local input file variable
or any suggestion?

Answer Posted / baalu

hello, nitin...
try this one s9(7-2)v9(2)comp-3
this is similor to s9(x-y)v9(y) comp-3



with best regards,
baalu.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can tablespace be moved to another dasd volume that is allocated for that tablespace?

847


What is buffer pool and list some of them?

710


How to run db2 command in windows?

748


Explain about rct in db2?

749


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

677






Which components manage deadlocks in db2?

702


Explain correlated sub-queries.

663


Is the primary key a clustered index?

722


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

725


List out the data types available.

796


How do I copy a table in db2?

664


What are concurrency issues?

708


How to access db2 tables in mainframe?

696


What does db2 stand for?

672


Why select is not preferred in embedded sql programs?

815