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 IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am


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