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 All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
Search our Forums:


Back to Top