Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
New syntax encountered

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 96
Location: Hyderabad

PostPosted: Thu Dec 20, 2007 10:28 am    Post subject: New syntax encountered
Reply with quote

Hi,
I have encountered the following code in a program

If +Top-fourgous=''
+Top-fourgous='N'
...
End-if

What does it means ? Does it implies an AND or OR between the 2 conditions ? Or does it means something else ?


Thanks
Back to top
View user's profile Send private message
References
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1959
Location: Israel

PostPosted: Thu Dec 20, 2007 11:47 am    Post subject:
Reply with quote

The "+" sign is an accepted method among NATURAL programmers to define an AIV (Application Independent Variable) or Global variables.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 96
Location: Hyderabad

PostPosted: Thu Dec 20, 2007 1:31 pm    Post subject: Re: New syntax encountered
Reply with quote

Hi Ofer,

I understand that AIVs are acceptable in Natural. But my doubt is about the If condtion statement. what does the conditional statement mean?

Could you please try to help me?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1959
Location: Israel

PostPosted: Thu Dec 20, 2007 1:35 pm    Post subject:
Reply with quote

It checks wheater the variable "+Top-fourgous" equals blanks.

O.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES All times are GMT + 6 Hours
Page 1 of 1