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

Regarding PUT LIST('...');


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

Active Member


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

PostPosted: Wed Dec 05, 2007 9:40 pm
Reply with quote

Hi all,

This is code I have written,

Code:
PUT LIST('GNANAS');
PUT LIST('SEKAR');


I expect the output like below.
Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
GNANASSEKAR                                                 
******************************** Bottom of Data ********************************


But original output is like below.
Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
1GNANAS                  SEKAR                                                 
******************************** Bottom of Data ********************************


Why like this? What does that 1 indicate? Why spaces between GNANAS and SEKAR?

Please clarify me.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Dec 05, 2007 10:27 pm
Reply with quote

Gnanas,
It would be displayed in blocks of 125, If I am not wrong. If you display another variable it will be much clearer to you. '1' in the first character indicates the print character.
To obtain the output as you expected, you should use PUT EDIT.
Back to top
View user's profile Send private message
ruodeer

New User


Joined: 06 Jul 2007
Posts: 58
Location: home

PostPosted: Thu Dec 06, 2007 11:35 am
Reply with quote

Quote:
PUT EDIT('GNANAS','SEKAR')(A(6),A(5));
Back to top
View user's profile Send private message
Gnanas N

Active Member


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

PostPosted: Thu Dec 06, 2007 1:27 pm
Reply with quote

Thanks Srihari, Ruodeer
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 How to create a list of SAR jobs with... CA Products 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts List of quiesced jobs JCL & VSAM 3
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
Search our Forums:

Back to Top