Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
View previous topic :: :: View next topic  
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

sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

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: 12

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us