Hello All,
I have a question.
Do we need to leave a space while assigning a value to a variable or compare a variable with any value? If I have not left a space will it create confusion for the compiler?
For example IF i code as below
IF A^=' '
will the compiler take statement same as
IF A ^= ' ' ? (If A is not equal to blank? )
I have faced a scenario where the compiler some times do understand IF statement if coded it with a leaving a space.
Please help
Assignment operator in Pl1
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Assignment operator in Pl1
PL/1 is space and case agnostic.
( spacing and casing will be honored for DATA - inside strings, for example )
( spacing and casing will be honored for DATA - inside strings, for example )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Re: Assignment operator in Pl1
Thanks Enrico for your reply.
So do you say I should leave a space in above case?
So do you say I should leave a space in above case?
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Assignment operator in Pl1
So do you say I should leave a space in above case?
PL/1 does not care ...
I do not care

but somebody in Your organization quality assurance
and people trying to read and understand Your program might...
most organization have a chapter of their programming standards
describing the formatting rules of programs
( comments, spacing, indenting, ... )
proper spacing makes the program more readable anyway
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 1697
-
by cualquis
View the latest post
Fri Sep 10, 2021 9:51 pm