TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

CANCEL ISPF/PDF Edit Macro Command

CANCEL command is used to end an edit session without saving latest changes.

  • Terminate an edit session

  • Undo the changes since the beginning of last save



The following is an example of the CANCEL macro command:


This will cause the current edit session to be cancelled.

Return Code:

Possible return codes are:

  • 0: The command or statement ended successfully.

  • 20: A critical error has occurred.

If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal