Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us