View previous topic :: View next topic
|
Author |
Message |
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
05 END-OF-TB36UNLD-FILE-SW PIC S9(01) COMP-3 VALUE 0.
88 EOF-TBL36-NO VALUE +0.
88 EOF-TBL36 VALUE +1
now in this statement i have given vlaue clause in the 05 level.can we give the value clause in the group level if we are going to handle condition statement[b](88).[/b] |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
ya you can certainly give...by default EOF-TBL36-NO will be true. |
|
Back to top |
|
|
notonly4u
New User
Joined: 26 Apr 2005 Posts: 87 Location: Hyderabad
|
|
|
|
Please correct me if Iam wrong.....
If we don't have the value clause in the group item, then how we are going to check the condition. To be more clear,
I think you are going to check wheather the EOF TBL36 has been reached or not.
So while start reading the table it should contain the condition as EOF as false. So we use to give the false condition in the group item.
As I told earlier....Please correct me if Iam wrong.
Regards
Tanden. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
notonly4u
It's not mandatory to specify a value in the group item. But you need to set EOF-TBL36-NO to TRUE OR Move 0 to END-OF-TB36UNLD-FILE-SW before start reading the table. When it reaches the end of table set EOF-TBL36 to TRUE.
Regds
-Som |
|
Back to top |
|
|
Rajen
New User
Joined: 05 May 2005 Posts: 61
|
|
|
|
I think we can give value clause for switches.
So Prabhu you can give but the only thing is by default the switch will have that value specified by you and you need to handle that condition. |
|
Back to top |
|
|
|