Add 1 to Hex values in cobol

1 post / 0 new
Anonymous (not verified)
Add 1 to Hex values in cobol


Lets say I have to print all the Hex values possible in COBOL, 
I will start with X'00' and Keep incrementing the hex value by X'01' in a loop for all the 255 hex chars.
Can some one suggest the logic to approach the above problem? A friend hinted that its possible with binary addition, but could not make much out it.
An example program would be great point to start with this
Thanks in advance
"; ; ; ;
Sponsored Listing

Click the +1 button  below to share it with your friends and colleagues


Share this if you liked it!