View previous topic :: View next topic
|
Author |
Message |
venosol Warnings : 1 New User
Joined: 16 Nov 2006 Posts: 43 Location: Bangalore
|
|
|
|
what is literal ? what is the difference b/w literal and identifier ?
clarify me please. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
A literal is a "stand-alone" piece of data while an inentifier is a dataname pointing to a defined field. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
PROCEDURE DIVISION literals:
Literals go in quotes - i.e. 'literal', identifiers do not - i.e. my-field.
You can MOVE to an identifier - you cannot move to a literal.
A literal is only used in one procedural statement. If you need it in another, it must be repeated in the code. In identifier may be used multiple times in the code. |
|
Back to top |
|
|
|