Monday, April 9, 2012

ISPF Edit/View Tips

1. Use HILITE command to set highlighting options.
2. Use TS line command to split the text at the cursor position.
3. Use TF line command to flow next record at the end of current record.
4. Use JEM edit macro to check JCL (use L .label command to locate any errors as indicated in the JEM report).
5. Use JSCAN and JSCAN1 edit macros for JCL checking. JSCAN1 will also resolve JOBTRAC variables.
6. Use FF, FN, FP, FL, FALL (Find First, Next, Previous, Last, All edit macros to find the field that your cursor is on.
7. Use X ALL to exclude all.  Use Fn and Ln line commands to un-exclude First and Last n excluded lines (where n is numeric).
8. Use X and NX parms on commands such as Find, Change and Delete to impact only excluded or non-excluded lines.
9. Use FLIP command to toggle between excluded lines and non-excluded lines.
10.COMPARE edit macro invokes Super-C from Edit/View mode. Type COMPARE on command line to get panel then hit PF1 for help. 
11. Use TE line command to edit and insert a block of lines after the current line.
12. Some commands useful in indenting code :
  )n - Shift characters right by 'n' places
  (n - Shift characters left by 'n' places
  ))n - Block Shift right by 'n' places
  ((n - Block Shift left by 'n' places

The below commands can be assigned to a PF Key or entered on the command line (do not prefix with TSO)

1. Use CRETRIEV command to combine the Cursor and Retrieve commands into one PF Key.
2. Use RETP to display a pop-up list of the last 25 commands you have entered. You can then select a command to re-invoke.
3. Use RETF to retrieve commands you have entered from oldest to most recent.
4. Use SPLIT NEW command to split screen and start a new logical session (upto 32 times). Use SWAP LIST to list logical sessions.


COMPARE SESSION command
Assume that you are editing a dataset or program and you went for a break. When you come back you don't remember what changes you have done. How will you find out that? 
Give COMPARE SESSION on the command line to see what changes you have done.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.