View previous topic :: View next topic
|
Author |
Message |
kiran.v2
New User
Joined: 29 Jul 2005 Posts: 9
|
|
|
|
If I not declared a variable in PL/I, it gives compilation error or runtime? |
|
Back to top |
|
|
sudhaaa
New User
Joined: 24 Mar 2005 Posts: 51
|
|
|
|
It will not give any error. |
|
Back to top |
|
|
bandi
New User
Joined: 21 Jul 2005 Posts: 12
|
|
|
|
will it give runtime error? |
|
Back to top |
|
|
sumanthmain
New User
Joined: 22 Aug 2005 Posts: 14
|
|
|
|
hi friends
As per my consern's its won't give any error..
It will will give Warning at compile time .., its not a serious error.
cheers
sumanth |
|
Back to top |
|
|
Dariusz Warnings : 1 New User
Joined: 11 Aug 2005 Posts: 27 Location: POLAND
|
|
|
|
I don't know new versions of PL/I.
For very oldest versions there was depend on variable name used in a program(without DCL).
For first letters I,J,K,L,M,N in a variable name we've got the same results
as by decllare:DCL I BIN(31); - it is default for PL/I. |
|
Back to top |
|
|
bakarthikeyan
New User
Joined: 21 Sep 2005 Posts: 6
|
|
|
|
As Dariusz said...
Variables will be implicitly declared. But this is not advisable in real time. Becoz of implicit declaration you may get run time error. |
|
Back to top |
|
|
|