You can use the SORT command to change the order of data as it appears in columns on your screen. The SORT command helps you to view data in the order that is most useful to you, such as the following:
One useful way to sort data is under a column heading (field) in either ascending or descending order. The following is a sample ACTIVITY display.
SYSVIEW ACTIVITY -------------- System Activity ------------------------------- Command ====> Scroll *===> HALF ----------------------------------------------- Lvl 2 Row 1-17/414 Col 1-79/342 CPU 100% LCPU 35% Paging 0 SIO 76 UIC 300 AFC 21639 ------------------------------------------------------------------------------- * ALL ALL Cmd Jobnr Jobname Stepname Procstep Jc Type Status CPU% CPU-Time Clocktime ___ 2316 *MASTER* $ SYS NS 0.63 00:27:22 81:21:25 ___ PCAUTH PCAUTH SYS NS 0.00 0.021 81:21:25 ___ RASP RASP SYS NS 0.00 0.009 81:21:25 ___ TRACE TRACE SYS NS 0.00 0.007 81:21:25 ___ DUMPSRV DUMPSRV DUMPSRV SYS NS 0.00 00:01:39 81:21:21 ___ XCFAS XCFAS IEFPROC STC NS 0.44 00:49:48 81:21:16 ___ GRS GRS SYS NS 0.87 00:16:12 81:21:25 ___ SMXC SMXC SYS NS 0.04 00:04:34 81:21:25 ___ SYSBMAS SYSBMAS SYS NS 0.00 28.487 81:21:25 ___ CONSOLE CONSOLE SYS NS 1.33 00:49:08 81:21:25 ___ WLM WLM IEFPROC SYS NS 0.62 00:30:02 81:21:22 ___ ANTMAIN ANTMAIN IEFPROC STC NS 0.00 0.067 81:21:17 ___ ANTAS000 ANTAS000 IEFPROC STC NS 0.00 0.227 81:21:11 ___ OMVS OMVS OMVS STC NS 0.00 40.916 81:21:13 ___ IEFSCHAS IEFSCHAS SYS NS 0.00 0.008 81:21:25 ___ JESXCF JESXCF IEFPROC STC NS 0.00 00:01:45 81:21:13 ___ ALLOCAS ALLOCAS SYS NS 0.00 0.010 81:21:25
To put the data in the field CPU% on this display in descending order, you would specify the following on the command line:
SORT CPU% D
This command displays a screen like the following one. The D parameter caused the values in the CPU% field to be listed in descending order. Specifying A (ascending) lists the values in ascending order.
SYSVIEW ACTIVITY -------------- System Activity ------------------------------- Command ====> Scroll *===> HALF ----------------------------------------------- Lvl 2 Row 1-17/414 Col 1-79/342 CPU 100% LCPU 35% Paging 0 SIO 76 UIC 300 AFC 21639 ------------------------------------------------------------------------------- * ALL ALL Cmd Jobnr Jobname Stepname Procstep Jc Type Status CPU% CPU-Time Clocktime ___ 2423 CICSPROD CICSPROD CICS $ STC NS 21.55 03:10:51 81:17:59 ___ 1136 IXRASUBS IXRASUBS IEFPROC $ STC NS 11.05 00:18:41 14:45:25 ___ 2333 NET NET A44X $ STC NS 7.88 05:34:28 81:19:29 ___ 2334 RMF RMF IEFPROC $ STC NS 4.08 00:35:23 81:19:29 ___ 2586 CCITCPGW CCITCPGW CCITCPGW $ STC NS 3.18 00:33:56 81:17:07 ___ 1562 KNUJO01 CATSO A55TG013 @ TSU LSW 2.30 6.346 01:27:48 ___ 2362 TCPIP44 TCPIP44 TCPIP $ STC NS 2.18 00:40:23 81:18:54 ___ JES JES IEFPROC STC NS 2.01 00:48:19 81:20:26 ___ CONSOLE CONSOLE SYS NS 1.33 00:49:08 81:21:25 ___ 2615 SYSQA02 SYSQA02 I JOB NS 1.13 00:07:10 17:50:14 ___ 1281 ROSCOE ROSCOE ROSCOE $ STC NS 0.96 36.883 07:03:28 ___ 2398 ENF ENF ENF $ STC NS 0.94 00:21:23 81:18:05 ___ GRS GRS SYS NS 0.87 00:16:12 81:21:25 ___ 1300 SYSTEM23 SYSTEM23 $$$@NX@ $ STC NS 0.80 40.133 06:13:40 ___ 3938 SUP$TE10 TECHDC10 I JOB NS 0.78 00:05:36 45:21:14 ___ 9073 SYSQA03 SYSQA03 I JOB NS 0.67 00:07:50 22:02:58 ___ 1307 SYSTEM47 SYSTEM47 $$$@NX@ $ STC NS 0.66 41.750 06:12:48
You can also sort data using start and end column numbers to define a range of data within a display field. This data can also be put in ascending or descending order.
To sort the data between two columns on the ACTIVITY display in ascending order, specify the following on the command line and press enter:
SORT 11 18 A
Note: If you do not have the column ruler showing on your screen, specify SET COLS ON to find out the column numbers where the data begins and ends (in this example, 11 and 18).
This command displays a screen like the following one. The parameter caused the values beginning in column 11 and ending in column 18 to be listed in ascending order.
SYSVIEW ACTIVITY -------------- System Activity ------------------------------- Command ====> Scroll *===> HALF ----------------------------------------------- Lvl 2 Row 1-15/399 Col 1-79/342 Status: SORT NOSELECT NODEST NOPREFIX NOOWNER NOUPDATE CPU 100% LCPU 45% Paging 0 SIO 230 UIC 300 AFC 21639 ------------------------------------------------------------------------------- * ALL ALL ....+....10...+....20...+....30...+....40...+....50...+....60...+....70...+.. Cmd Jobnr Jobname Stepname Procstep Jc Type Status CPU% CPU-Time Clocktime ___ *LOGON* A01TD015 TSU OUT TI 0.00 0.014 ___ *LOGON* A55TG034 TSU OUT TI 0.00 0.012 ___ *LOGON* A55TG036 TSU OUT TI 0.00 0.012 ___ 3242 *MASTER* $ SYS NS 4.48 00:57:39 5.42DAYS ___ 3931 ADAMPM1 ADADB01 $$$$$$@ 3 JOB NS 0.00 12.799 21:50:22 ___ ALLOCAS ALLOCAS SYS NS 0.00 0.010 5.42DAYS ___ 5318 ANDNI02 CATSO A01TD003 @ TSU OUT TI 0.00 17.392 06:21:28 ___ ANTAS000 ANTAS000 IEFPROC STC NS 0.00 0.278 5.42DAYS ___ ANTMAIN ANTMAIN IEFPROC STC NS 0.00 0.067 5.42DAYS ___ APPC APPC APPC STC NS 0.00 1.852 5.42DAYS ___ ASCH ASCH ASCH STC NS 0.00 00:01:03 5.42DAYS ___ 3269 ASCHINT ASCHINT IEFPROC $ INIT OUT LW 0.004 ___ 3270 ASCHINT ASCHINT IEFPROC $ INIT OUT LW 0.004 ___ 3271 ASCHINT ASCHINT IEFPROC $ INIT OUT LW 0.004 ___ 3272 ASCHINT ASCHINT IEFPROC $ INIT OUT LW 0.004
You can specify special options on the SORT command to either:
For more on how you can change your user profile, see the sections in this chapter on the PROFILE command.
You can also specify the current SORT parameters on the command line and overtype them. For details about using the SORT command and its parameters, see the SORT command online help.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |