View previous topic :: View next topic
|
Author |
Message |
knd_r Currently Banned New User
Joined: 18 Mar 2005 Posts: 48
|
|
|
|
hi,
can any one give a practical example on condition names.
bye,
ks reddy. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
hi,
let's take one example.Suppose on cics screen is capable of performing 4 actvities like on PF7 it will scroll backward, on PF8 it will scroll Forward, on PF10 it will scroll LEft and on PF11 it will scroll to right direction. Then u can just keep on varible as read-direction.
so you can set the value of varibale read-direction as the key pressed. Based upon that u can do certain operation.
Or like u can validate the fuction name it supports, thru condition name...
like
01 valid-function PIC x(10).
88 func1 value 'one'
88 func2 value 'two'.
like this way u can use just one varibale and get the result. Hope tis is clear to you. Let us know if u have any clarification. |
|
Back to top |
|
|
knd_r Currently Banned New User
Joined: 18 Mar 2005 Posts: 48
|
|
|
|
please give me an example from your project where you used condition names?
thanks,
ks reddy. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Code: |
01 A PIC 9.
88 MALE VALUE 0.
88 FEMALE VALUE 1.
ACCEPT A.
IF MALE DISPLAY "I am Male"
ELSE IF FEMALE DISPLAY "I am Female"
ELSE DISPLAY "WHO AM I". |
|
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
the example i have given is one of the real time scenario only.. |
|
Back to top |
|
|
rameshbabu Warnings : 1 New User
Joined: 23 May 2005 Posts: 27
|
|
|
|
hi plz go thru this |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Try this...
Code: |
01 MARKS PIC 999.
88 FAIL VALUE 0 THRU 50.
88 PASS VALUE 51 THRU 100.
ACCEPT MARKS.
IF PASS DISPLAY "GO TO THRID SEM"
ELSE IF FAIL DISPLAY "WRITE ONCE AGAIN"
ELSE DISPLAY "ARE YOU FROM SRM ENGINEERING COLLEGE?". |
|
|
Back to top |
|
|
|