View previous topic :: View next topic
|
Author |
Message |
santohsks1987 Warnings : 1 New User
Joined: 29 Dec 2010 Posts: 31 Location: Mumbai
|
|
|
|
Hi,
Cobol Variable "NAME" should be only alpha, apostrophe,period or dash else i should generate the error.
Please guide me on how to perform this check on the variable. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
santohsks1987 wrote: |
Hi,
Cobol Variable "NAME" should be only alpha, apostrophe,period or dash else i should generate the error.
Please guide me on how to perform this check on the variable. |
hard to guide you when we do not know what you are doing when
Quote: |
i should generate the error.
|
why not wait for the compiler? |
|
Back to top |
|
|
santohsks1987 Warnings : 1 New User
Joined: 29 Dec 2010 Posts: 31 Location: Mumbai
|
|
|
|
I have a variable NAME, I am performing validations on this variable and the check which i have to do is
If NAME = alpha, apostrophe, period or dash
continue
else
set error-flag
end-if
How to perform the if check |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Dsingh29
Active User
Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
Back to top |
|
|
|