View previous topic :: View next topic
|
Author |
Message |
mainframe_world
New User
Joined: 22 Jan 2010 Posts: 12 Location: delhi
|
|
|
|
Hi,
I am writing a cics cobol code and i wanted to handel some edit on particular fields.
For e.g 1) Name should be alpha and required and whenever i give input to the screen if it is not alpha and equals to spaces than it should give me error message.
Please help me this. if any body having any e.g please send itto me.
Thanks |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
mainframe_world wrote: |
For e.g 1) Name should be alpha and required and whenever i give input to the screen if it is not alpha and equals to spaces than it should give me error message. |
I'm sorry, but what part of the IF statement do you not understand?
Edit the field, determine if the data is valid, reject the input if it does not follow your rules of validity.... |
|
Back to top |
|
|
mainframe_world
New User
Joined: 22 Jan 2010 Posts: 12 Location: delhi
|
|
|
|
mainframe_world wrote: |
Hi,
I am writing a cics cobol code and i wanted to handel some edit on particular fields.
For e.g 1) Name should be alpha and required and whenever i give input to the screen if it is not alpha and equals to spaces than it should give me error message.
Please help me this. if any body having any e.g please send itto me.
Thanks |
IF FIELD NOT ALPHA
MOVE "INVALID VALUE"
ENDIF.
sO I CAN USE THIS RIGHT..
NOW HOW CAN I SET THE CURSUR TO THAT FIELD TO CORRECT OR GIVE THE RIGHT VALUE. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your code isn't right, but I'm sure you'll figure out the syntax error.
Your bigger problem, however, is that you are asking questions answered in the first few sessions of any CICS class -- if you cannot do these things, you need to go back and take the class again until you understand the concepts! If you cannot do this, click on the manuals link, find the CICS reference and application programming guide manuals and read them -- cover to cover -- which will give you the basic information to write a CICS program. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
mainframe_world,
Is this program a project at your Job as a CICS programmer, or are you in Training ?
I agree with Robert:
Quote: |
Your bigger problem, however, is that you are asking questions answered in the first few sessions of any CICS class -- if you cannot do these things, you need to go back and take the class again |
|
|
Back to top |
|
|
|