IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to display the value of a char variable in PL1 prog?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vimalprabhakaran

New User


Joined: 13 Feb 2006
Posts: 13

PostPosted: Fri Mar 14, 2008 6:00 pm
Reply with quote

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
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Mar 14, 2008 6:10 pm
Reply with quote

I think of these.

Code:
PUT LIST(PPRIRELX);
PUT SKIP LIST(PPRIRELX);
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Mar 14, 2008 10:12 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top