View previous topic :: View next topic
|
Author |
Message |
vimalprabhakaran
New User
Joined: 13 Feb 2006 Posts: 13
|
|
|
|
Hi,
I have a character variable called "PPRIRELX" in my PL1 program? How can I print the value of this variable in the program?
variable defined as below
DCL 1 PPRIRELX CHAR(33) |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
I think of these.
Code: |
PUT LIST(PPRIRELX);
PUT SKIP LIST(PPRIRELX); |
|
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
I recommend the PUT DATA statement (and for other uses GET DATA).
It will output <varname>=<value>, so it's labeled for you. This is a great PL/I feature.
I have used the GET DATA for non-specified-order input - any order, and very readable if your varnames are meaningful. |
|
Back to top |
|
|
|