IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Not declared a variable in PL/I, it gives compilation error


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kiran.v2

New User


Joined: 29 Jul 2005
Posts: 9

PostPosted: Wed Aug 03, 2005 2:07 pm
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
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Mon Aug 15, 2005 3:20 pm
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: 12

PostPosted: Tue Aug 23, 2005 6:01 pm
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
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
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
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Error when install DB2 DB2 2
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top