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
 

 

Please help me in getting the Output for the PL/1 Code

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

New User


Joined: 19 Aug 2011
Posts: 3
Location: India

PostPosted: Wed Jan 25, 2012 6:36 pm    Post subject: Please help me in getting the Output for the PL/1 Code
Reply with quote

Hello All,

Can anyone please tell me the output of the PL/1 code below ?
Also, please let me know how you got the output.

Code:
DCL A AREA(8000);
    DCL 1 STR1 BASED(P),
             2 STR1_LGTH BIN FIXED(31),
             2 STR_CHAR CHAR(ALLOC_LGTH REFER(STR1_LGTH));
    DCL ALLOC_LGTH BIN FIXED(31);
    DCL I FIXED BIN(31);
    DCL P PTR;
    ALLOC_LGTH = 100;
    DO I = 1 TO 10;
      ALLOC STR1 IN(A);
    END;
    PUT SKIP LIST(CSTG(A));


Thanks in advance.
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Wed Jan 25, 2012 6:54 pm    Post subject: Reply to: Please help me in getting the Output for the PL/1
Reply with quote

8016 - RTFM!
Back to top
View user's profile Send private message
debasis.routray

New User


Joined: 19 Aug 2011
Posts: 3
Location: India

PostPosted: Thu Jan 26, 2012 2:00 am    Post subject:
Reply with quote

Can anyone please help me in getting the output of the above mentioned code ?

Thanks in advance.
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Thu Jan 26, 2012 2:27 am    Post subject:
Reply with quote

Sorry, STG returns 8016, CSTG returns 1056, but you would have known either if you had RTFM!
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Thu Jan 26, 2012 3:09 am    Post subject: Re: Please help me in getting the Output for the PL/1 Code
Reply with quote

debasis.routray wrote:
Can anyone please tell me the output of the PL/1 code below ?
Also, please let me know how you got the output.

Are we to suppose, then, that you have no access to a z/OS system that you ask this instead of compiling and running the program yourself?
Back to top
View user's profile Send private message
debasis.routray

New User


Joined: 19 Aug 2011
Posts: 3
Location: India

PostPosted: Thu Jan 26, 2012 10:30 am    Post subject:
Reply with quote

Thank you Prino.
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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am


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