Page 3 of 3

Re: about Accept statement accept number

PostPosted: Thu Mar 31, 2011 5:01 pm
by Pumpkin
Can we still make it S0C7 without a re-compile? Yes, that still stands. That is another hint. The "sign fixing" will not save the program.

It will help if you can look at EBCDIC codes for characters on your keyboard.

There is more than one character that will cause the abend. Think about what you already found out with the "-", but don't think like that one.



i think , enter "+" (hex 4E)or "." (hex 4B), it will the abend.
and i found the information about compiler directive in Programming Guide,thanks,Robert!

Re: about Accept statement accept number

PostPosted: Thu Mar 31, 2011 5:18 pm
by BillyBoyo
Absolutely correct. Anything that has a non-numeric right half-byte, and you can enter it from the keyboard, will cause an S0C7 after you've done your ACCEPT.

Any questions?

Re: about Accept statement accept number

PostPosted: Fri Apr 01, 2011 3:04 am
by BillyBoyo
BillyBoyo wrote:I haven't checked this againt the generated code. I suppose I should


And of course I should have done. Turns out I was thinking of Pumpkin's first program. The only difference for the purpose of my post is that the first one uses COMPUTE, which led to my comment about the length of intermediate values. These get large in a COMPUTE where there is multiplication (not in Pumpkin's first program). So I needn't have mentioned it anyway.

Re: about Accept statement accept number

PostPosted: Fri Apr 01, 2011 5:42 pm
by Pumpkin
thanks, BillyBobo!