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

Why is the 'PUT DATA' used for this program


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

New User


Joined: 20 Apr 2006
Posts: 7

PostPosted: Sat Aug 19, 2006 2:56 pm
Reply with quote

PUT DATA: It causes all the variables known to the program at the point of the PUT statement to be outputed in the form of assignment statements. Since this is at the expense of considerable programming overhead, it should be used only for debugging. e.g.
ON ERROR
BEGIN;
ON ERROR SYSTEM ;
PUT DATA;
END;


who can tell me what is the 'PUT DATA' used for in this program?
Back to top
View user's profile Send private message
tsantosh

New User


Joined: 03 Aug 2006
Posts: 8

PostPosted: Fri Aug 25, 2006 1:07 pm
Reply with quote

There won't be much overhead as this code won't be executed unless there is a system error which causes the program to abend. In that case its intended to display all the variables, so that a proper analysis can be done.
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 save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top