What is the line command used to display the data before and after change
-
Comapre dataset
-
Tso compare
-
compare session
-
All of the above
In TSO/ISPF, the COMPARE session command (abbreviated C) is used to compare two datasets or display data before and after changes. This command shows a side-by-side comparison highlighting differences. 'Compare dataset' and 'Tso compare' are not the correct command syntax.
In the ISPF editor, the primary command COMPARE (abbreviated COMP) — and specifically COMPARE * — compares the current EDIT/VIEW session against the data as it was when the session started, displaying differences inline (changed lines flagged, external/original lines shown with '========' markers). This is the ISPF facility for seeing data before and after your edits. The question is imprecisely worded (it says 'line command', but COMPARE is an editor/primary command) and none of the options is the literal command name. Of the choices, 'compare session' best matches the COMPARE * behavior of comparing against the session's original content; 'Comapre dataset' (typo), 'Tso compare', and 'All of the above' do not name a real ISPF facility. So the marked answer is the best available, though the phrasing is non-standard.