Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to display the value of a char variable in PL1 prog?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to display the value of a char variable in PL1 prog?
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: 788
Location: Chennai, India

PostPosted: Fri Mar 14, 2008 6:10 pm    Post subject:
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

Active Member


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

PostPosted: Fri Mar 14, 2008 10:12 pm    Post subject:
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    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 Select numeric portion from CHAR data... balaji81_k DB2 5 Sat Aug 19, 2017 1:51 am
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts IDMS DC027007 T58 TASK:ADS2 PROG:ADSO... gpowell382 IDMS/ADSO 2 Fri Jun 30, 2017 11:52 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us