• Rajesh A R

F1 for Mainframe

F1 for Mainframe

Tag Archives: locate

ISPF COMMANDS – SORT, LOCATE, RESET, FLIP, COMPARE

13 Tuesday Mar 2012

Posted by rajeshar in ISPF

≈ Leave a comment

Tags

COMMANDS, COMPARE, flip, ISPF, locate, mainframe, reset, SORT

ISPF COMMANDS – SORT, LOCATE, RESET, FLIP, COMPARE

SORT sorts data, observing bounds. The entire record is subject to sorting unless bounds are set. If bounds are on, only the data within the bounds is sorted and moved; other data is not moved. This is a way to sort columned data separately.

Sort lets you sort fields in either ascending or descending order. The maximum number of sort fields is five. When using multiple fields, both start and end columns must be provided. Default is ascending sort. If one field specifies ascending or descending, all fields must specify it. Here are a few examples:

SORT 10 sorts from column 10 to the right bound;

SORT 1 8 sorts based on the data within columns 1 through 8 inclusive;

SORT 1 15 X sorts all excluded lines based on the data in columns 1 through 15;

SORT 1 15 A 20 20 D sorts all lines based on two fields, the first field in ascending order and

the second in descending order. Note the second field is a single byte.


LOCATE finds a line label. The label can be the “line number”, any special label (e. g. =NOTE=, ==ERR>), your own label, or a pending line command. Here are a few examples:

  • LOCATE ERR FIRST locates the first error line;
  • LOC CHG NEXT locates the next changed line;
  • L .HERE locates the label “.HERE”
  • L 450 locates line label 000450;
  • L SPECIAL locates the next special line (e. g. COLS, MASK, etc.);
  • L LABEL PREV locates the previous label.

RESET clears all line commands, reshows excluded lines, deletes special lines, clears all line flags, and turns off the last FIND highlight. RESET with no operands cleans up everything except line labels. Operands can be provided to specify exactly what to reset:

label remove line labels

command (CMD) remove pending line commands

error remove ERROR notes

change (CHG) remove CHANGED notes

excluded (X) redisplays excluded lines

special Deletes all special lines (=PROF>, =BNDS>, =TABS>,

==MSG>, =NOTE=, =MASK>, =COLS>, and ======)

find reset FIND highlighting

FLIP swaps excluded and included lines.

COMPARE calls SuperC to compare the current edit session with another file. Lines existing only in the current file are marked with labels. Lines existing only in the other file are shown as information lines. You can add those lines to the current file using the MAKEDATA command (see Edit Line Commands, MD).

COMPARE with no arguments presents the Edit Compare Settings panel. Otherwise a DSN or member name is required for the file to be compared to. In place of the DSN you can use SESSION or an asterisk to compare the current edit session with the same dataset stored on disk. Other keywords are:

  • EXCLUDE or X excludes matching lines, leaving only differences visible;
  • SAVE saves the output to a dataset called ISPFEDIT.COMPARE.LIST;
  • SYSIN does not free the SYSIN DD before invoking SuperC. That lets you pass more parameters to SuperC.

——————————————————————————————————–

In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

——————————————————————————————————–

You may also like to look at:

Working on Mainframes – Is Change to a different technology necessary
Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
SRCHFOR – Mainframe search in PDS – Batch Version
Rename the members in a PDS dataset?
ISPF – STOP THE POP-UP VIEW/EDIT ENTRY PANEL FROM DISPLAYING
COMMAND THAT IS USED TO DELETE ALL LINES FROM A PS/PDS MEMBER
SRCHFOR – Search in PDS members for a word with Mixed case (Upper and Lower)
ISPF Edit primary commands
ISPF Line commands
ISPF COMMANDS – FIND, COPY, CUT, PASTE, MOVE, CREATE, HILITE
ISPF COMMANDS – SORT, LOCATE, RESET, FLIP, COMPARE
ISPF PROFILE
A Few Good Edit Macros
Member Selection in ISPF 3.4
ISPF TIPS
ISPF EDIT MACROS
ISPF EDIT – Primary Commands
REXX TOOL # 02 – FSAVE – Save member opened in VIEW mode
REXX TOOL # 01 – O – Open Any Mainframe Element from any ISPF Screen
REXX – INDEX, POS, SUBSTR, COMPARE
REXX – READ THE DSN PROVIDED AS DD IN JCL
REXX – SEND MULTIPLE ARGUMENTS THROUGH JCL
REXX – HOW TO COMPILE YOUR REXX EXEC
REXX – CHANGE UPPER TO LOWER CASE
REXX – GET LAST 4 DAYS FROM GIVEN DATE
REXX – PANEL Definition
REXX – READ, CREATE AND WRITE DATA TO A DATASET
REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC

 

Advertisement

Rate this:

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • November 2020
  • July 2020
  • February 2020
  • January 2020
  • September 2019
  • August 2019
  • October 2018
  • April 2018
  • March 2018
  • December 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • May 2016
  • March 2016
  • February 2016
  • January 2016
  • May 2015
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • January 2013
  • December 2012
  • November 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • April 2011
  • March 2011
  • August 2009
  • June 2009
  • April 2009

Categories

  • Azure
  • CA7
  • CICS
  • COBOL
    • Keywords
  • DB2
  • EASYTRIEVE
  • FILEAID
  • FILEMAXX
  • IMS
  • ISPF
  • JCL
  • KNOW YOUR MAINFRAME
  • Mainframe Migration
  • MAINFRAMES
  • Others
  • REXX
  • SDSF
  • SORT
  • Training
  • TSQL
  • VSAM

Meta

  • Register
  • Log in

Blog at WordPress.com.

  • Follow Following
    • F1 for Mainframe
    • Join 88 other followers
    • Already have a WordPress.com account? Log in now.
    • F1 for Mainframe
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar