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
 
Not declared a variable in PL/I, it gives compilation error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
kiran.v2

New User


Joined: 29 Jul 2005
Posts: 10

PostPosted: Wed Aug 03, 2005 2:07 pm    Post subject: Not declared a variable in PL/I, it gives compilation error
Reply with quote

If I not declared a variable in PL/I, it gives compilation error or runtime?
Back to top
View user's profile Send private message
References
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 47

PostPosted: Mon Aug 15, 2005 3:20 pm    Post subject: Re: Not declared a variable in PL/I, it gives compilation er
Reply with quote

It will not give any error.
Back to top
View user's profile Send private message
bandi

New User


Joined: 21 Jul 2005
Posts: 13

PostPosted: Tue Aug 23, 2005 6:01 pm    Post subject: Re: Not declared a variable in PL/I, it gives compilation er
Reply with quote

will it give runtime error?
Back to top
View user's profile Send private message
sumanthmain

New User


Joined: 22 Aug 2005
Posts: 14

PostPosted: Tue Aug 23, 2005 9:06 pm    Post subject: Re: Not declared a variable in PL/I, it gives compilation er
Reply with quote

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
View user's profile Send private message
Dariusz
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 27
Location: POLAND

PostPosted: Wed Aug 24, 2005 2:53 pm    Post subject: Depend on name.
Reply with quote

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
View user's profile Send private message
bakarthikeyan

New User


Joined: 21 Sep 2005
Posts: 6

PostPosted: Sat Sep 24, 2005 2:50 am    Post subject: Re: Not declared a variable in PL/I, it gives compilation er
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1