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
 

 

Regarding PUT LIST('...');

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Gnanas N

Active Member


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

PostPosted: Wed Dec 05, 2007 9:40 pm    Post subject: Regarding PUT LIST('...');
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    Post subject:
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: 59
Location: home

PostPosted: Thu Dec 06, 2007 11:35 am    Post subject:
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: 785
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 1:27 pm    Post subject:
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    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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm


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