Re: what is X'82' or X'80'
Posted: Fri Dec 16, 2011 12:21 am
rajufis_01 wrote:thank you for reply nic,
for example i am adding a record to a file it should not allow special charecaters( like*,&,%...),how can a keep a condition to avoid this situation can u please help me out
You don't seem to have clearly thought out your needs here:
- Is your record solely character data? Unlike toy computers, mainframes often use non-character data.
For example, suppose you have a field declared S9(4) COMP-5 and wrote the decimal value -32,528 to it. That would be X'80F1'. - What should happen in an invalid value is found? Abend, non-zero return code with or without immediate termination of the program, error messages to SYSPRINT or an audit report, sidetracking the bad record to a discard data set, or quietly dropping it? (If the last, this may well be the last program you'll write in that shop.
- All the things that I've forgotten, but that other senior people reading these fora will be happy to point out.