Posted: Thu Nov 21, 2013 3:36 pm Post subject: loading columns in test db2 that dont exist in prod db2 yet
I unloaded records from prod to a data set of 185 getting prod syspunch.
i unloaded record from test to a data set of 209 getting test syspunch.(just to get the syspunch) for the load card.
i was told to copy the prod(185) data set to a test name of length 209.
i am writing a load job.
the fields in the data set should load positionally into test table up to column 185. the last 4 columns in the test table are decimal. positions 186 thru 209 in the sysrec00(file to be loaded) are spaces.
is there something i add to the load card to put 0's in the table if the file has spaces in those positions?
here is the load card from the syspunch from db2test:
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Fri Nov 22, 2013 8:56 am Post subject:
newcobol wrote:
amendment. value in spaces 186 thru 209 does not appear to be spaces. in hex it is all 0
Newcobol,
The last 4 fields are Decimal fields which relate to Packed decimal format. So if you Input has X'00' then you probably need to check the last nibble to see if it has a sign.
A value of 0 (zero) is stored as
Code:
000000
00000C
So check and see if you have C (positive value) D(negative value), then you need not do anything.
they were all zeroes in hex. i ran a sort to turn them all into real zeroes, as i was told it represented low values and not zeroes. the load executed correctly with no change to it
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum