View previous topic :: View next topic
|
Author |
Message |
senthils
Active User
Joined: 15 Nov 2005 Posts: 117 Location: Chennai, India
|
|
|
|
Hi,
Does RBA value for an ESDS has a maximum limit or is it just limited by the space allocated to the file? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why do you believe that there is a limit ? |
|
Back to top |
|
|
senthils
Active User
Joined: 15 Nov 2005 Posts: 117 Location: Chennai, India
|
|
|
|
I am facing a situation in which the we are holding the RBA value in S9(09) BINARY. Since S9(9) BINARY can hold only a maximum value of +2147483648 is there a possibility of the RBA going beyond this value? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
RBA are by UNSIGNED, for 32bits tha max RBA is x'FFFFFFFF'
why would You want to read a negative RBA
for extended vsam the rba is 64 bits...
investigate accordingly
anyway a signed declaration fo an RBA is just plain wrong |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
That could be a problem with 1 byte records. |
|
Back to top |
|
|
senthils
Active User
Joined: 15 Nov 2005 Posts: 117 Location: Chennai, India
|
|
|
|
We used signed variable beacause it is a standard we had to follow. And the problem we face is is due to the fact that the RBA goes beyond +2147483648 and due to the restriction of S9(9) BINARY the value turns to negative.
Thanks for your replies. I will modify the program logic accordingly. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
So the maximum RBA = 4294967295 (FFFFFFFF).
You could calculate how many records fit into that, given
the record length and the track capacity of the drives
you put your data on.
As for extended vsam i remember vaguely that is only for KSDS vsam datasets. |
|
Back to top |
|
|
|