I am unloading the data from DB2 table using the DB2BATCH utility. Below is my SQL.
SELECT SUM(ACCOUNT_BAL)
,COUNT(ACCOUNT_ID)
FROM TAB600
,COUNT(ACCOUNT_ID)
FROM TAB600
Below is the output
----+----1----+----2---
***********************
áÇ @ 1
00000000000046070000F00
000000000007583C0000100
-----------------------
***********************
áÇ @ 1
00000000000046070000F00
000000000007583C0000100
-----------------------
From Position 18-21(4 byte) is my count.
Currently I am using below SORT card to convert Binary to Integer.
OUTREC=(1:C'Count is',9:18,4,BI,EDIT=(II,III,III,IIT))
I am getting the correct output.
My doubt is what is the maximum count it will accommodate in that 4 byte BINARY (i.e from position 18-21)
How much length I can give in my EDIT clause?
I am not sure how much would be the count for Production table!!
Regards,
Shankar.