You are on page 1of 15

TIPS

[1]

If you are to execute an SQL without going to SPUFI or QMF, here is a way of doing it..

Just open a file in edit mode


Type in your SQL
Mark the start and end of your sql within a CC, CC block like

0000CC SELECT *
000011 FROM AA5821A.T_COPYBOOK
0000CC WHERE TYPE = "DB2"

Type XSQL at the command line and press enter

The SQL would be executed and you will get the result. This edit macro XSQL would
prove handy, when we are testing
DB2 programs, as there is no need to go to seperate screens just to check the SQL.

[2] Typing LC as a line command in edit mode could convert all the characters in that
line to lower case.

UC - Would convert all the characters into upper case

LCn / UCn : would convert 'n' number of lines into lower/upper case.

[3] If you would like to have a physical look at a DBRM, do the following

- Type TSO SCANDBRM at the command line


- Type the DBRM library and member name when prompted for it

This would give you all the SQL statements present in the DBRM, the number of host
variables,
the precompile timestamp, the source program name and many more.

[4] While editing a DSN if you want to see only those lines having a particular string,
here is a way of doing it ...

Open a dataset in edit mode


Type FALL on the command line
Place the cursor on the word you would like to find
Press Enter

This would show u only the lines which contains that string. All the other lines would
be hidden. This would be of great use,
when we would like to see all the occurrences of a string in a single screen.

You can also use FALL 'string within quotes' to see all occurences of a string in a
single screen.
[5] From wherever you are in ISPF you can enter the following to layer your session.
TSO FAEXEC 1 - for File-aid Browse
TSO FAEXEC 2 - for File-aid Edit
TSO FAEXEC 3.5 - for File-aid VSAM Utilities
etc.
P.S. This REXX exec exists on all machines PRIME, ADC, Testbed etc.

[6] If you want to move entire an block of code or text in any file or member to the
right or left , here is what u can do..

To move to the right , use the close bracket signs and select the block of code you
want to move and at the end of the block the no of columns u want to move , the
below example will move the block 2 columns to the right.(the command is the one in
bold)

))0005 // JCLLIB ORDER=(SYS1.BSDLIB.PROCLIB,SYS1.DEVT.PROCLIB)


000006 //********
000007 //DSNTEP2 EXEC PGM=IKJEFT01
000008 //STEPLIB DD DSN=DB2SYS1.DB2T.LOADLIB,DISP=SHR
000009 //SYSTSPRT DD SYSOUT=*
000010 //SYSPRINT DD SYSOUT=*
000011 //SYSUDUMP DD SYSOUT=*
000012 //SYSOUT DD SYSOUT=*
))2013 //SYSIN DD *

Similarly to move the block to the left , use the open bracket signs

((0005 // JCLLIB ORDER=(SYS1.BSDLIB.PROCLIB,SYS1.DEVT.PROCLIB)


000006 //********
000007 //DSNTEP2 EXEC PGM=IKJEFT01
000008 //STEPLIB DD DSN=DB2SYS1.DB2T.LOADLIB,DISP=SHR
000009 //SYSTSPRT DD SYSOUT=*
000010 //SYSPRINT DD SYSOUT=*
000011 //SYSUDUMP DD SYSOUT=*
000012 //SYSOUT DD SYSOUT=*
((2013 //SYSIN DD *

[7] Here is a way to convert decimal to hex, vice versa and to perform mathematical
operations in hex/decimal in mainframe..

Type TSO HEX in the command line. You will get the following screen ..

YOU CAN ENTER HEX OR INTEGER VALUES EG; XHHHH+III


I INDICATES DECIMAL VALUES III+XHHHH
X INDICATES HEX VALUES FOLLOW XHHH+XHHH
MATH OPERANDS ARE +, -, /, *, ** IIII+IIII
// FOR REMAINDER ON A DIVIDE IIII+IIII
ENTER EQUATION OR END TO CANCEL ===>

You can enter whatever equation in hex/decimal and get the result in both hex and
decimal.

[8] Got a tip hope it would be helpfull. This Tip is mainly usefull for those who are
writing long paragraphs of words and statements. basically profile setup commands.

Works in Edit or View mode only.

File Edit Confirm Menu Utilities Compilers Test Help


ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ
ŠŠŠŠŠŠŠŠ
EDIT EZE1T.PHASE2.VIJAY.PROCLIB(TEST) - 01.01 Columns
00001 00072
Command ===> Scroll
===> CSR
****** ***************************** Top of Data
******************************
000001 business travel accounting (bta) is a non plastic corporate
product
000002 which is specifically designed for customers who wish to retain
000003 responsibility for payment and central reconciliation. bta is a
system
000004 to facilitate corporate travel. there is no card, instead the

Normal Screen

Type PROFILE OR PROF

File Edit Confirm Menu Utilities Compilers Test Help


ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ
ŠŠŠŠŠŠŠŠŠ
EDIT EZE1T.PHASE2.VIJAY.PROCLIB(TEST) - 01.01 Columns
00001 00072
Command ===> Scroll
===> CSR
****** ***************************** Top of Data
******************************
=PROF> ....PROCLIB (FIXED - 80)....RECOVERY ON....NUMBER
OFF...................
=PROF> ....CAPS ON....HEX OFF....NULLS ON STD....TABS OFF....SETUNDO
STG.......
=PROF> ....AUTOSAVE ON....AUTONUM OFF....AUTOLIST OFF....STATS
ON..............
=PROF> ....PROFILE UNLOCK....IMACRO NONE....PACK OFF....NOTE
ON................
=PROF> ....HILITE DEFAULT PAREN CURSOR
FIND....................................
000001 business travel accounting (bta) is a non plastic corporate
product
SOME PROFILE OPTIONS THAT ARE USEFULL ARE MARKED IN BLUE

PROCLIB (FIXED - 80) LAST PDS NAME , LENGTH OF THE EACH ROW OR LRECL

RECOVERY ON TYPE THIS AND YOU CAN USE UNDO, TOGGEL TO


RECOVER ON / OFF

NUMBER OFF USED TO INSERT LINE NUMBERS BETWEEN COL 72 TO 80 FOR


CONFIGURATION MGMT

CAPS ON USE THIS TO TO TOGGEL BETWEEN CAPS ON / OFF, SET BEFORE


STARTING EDITING

NULLS ON STD USE THIS TO FILL UP SPACES WITH NULLS AND SAVE SPACE.

TABS OFF SET TAB STOPS AND USE TAB DURING EDITING

AUTOSAVE ON VERY IMPORTANT, SET TO AUTOSAVE AND IF YOU FORGET TO


SAVE MEMEBER
BEFORE YOU EXIT, NOT TO WORRY, os WILL SAVE IT FOR YOU
AUTONUM OFF USED TO SET NUMBERFING FORMAT ON LINE NUMBERS

STATS ON USED TO KNOW THE STATISTICS OF THE CHANGES DONE, USED


FOR CONFIGURATION

PROFILE UNLOCK THE ABOVE OPTIONS ARE INDEPENDENT FOR A MEMEBER AND
CAN BE LOCKED TO
AVOID CHANGES TO THE PROFILE

PACK OFF COMPRESSES THE DATA IN YOUR MEMBER AND SAVES SPACE IN
PHYSICAL STORAGE
USING HEX STORAGE, IF YOU USE THIS FOR AN PROGRAM
MEMEBER AND TRY COMPILING,
YOU WILL GET A LOT OF ERRORS SINCE EVERY LINE IS
STORED LIKE A LINEAR
DATASET

HILITE DEFAULT USE THIS OPTION TO SETUP COLOUR FOR YOUR SCREEN FOR
LANGUAGE, FOR COBOL
PROGRAM MEMBERS, TYPE HILIGHT COBOL AND SEE THE
DIFFERENCE IN THE SCREEN.

[9] If you want to Recover a dataset which got deleted,here a way you can do it
Type TSO RECOVER in the command line
This will ask you the dataset name to be recovered and the generation number,
generally '0' .Type the above detail's and press enter .Once the job is submitted
you will get a message regarding the status of the job.

[10] If you would like to LOCK your mainframe screen for some time when you are
going out without logging off,
thereby preventing others from using it ...here is a way
Type TSO LOCK and press enter at the command line
This would ask you for the locking key
Type any password and press enter
The screen would be now locked
To unlock type the same password again

The major benefit of this exec is that the session wont be timed out, if your screen is
locked. So, if you are going for lunch or out
for more than an hour, u could just lock your screen and go. The session wont be
timed out since the rexx routine is running
in the forground.

[11]
TSO LOOKUP Extensive list of useful applications and Utilities
TSO ATLOAD Load member analysis - requires 132 Col display
TSO CDSN Put cursor on library name + use to edit/browse library
TSO QW Looks up error codes
EZY To enter easy-edit NB you don't use the TSO prefix
TSO FINDMBR To locate a member in ISPF libraries
TSO GETE To view source - checks Change-Man + librarian libraries.
TSO IMSUTIL IMS utilities
TSO ISRDDN List ISPF libraries allocated
TSO LOCATE Check LLA to find location of load-module
TSO TSODSN or DENQ To find who has DSN open.
TSO WHATIS To find out an ID associated to name - TSO WHATIS WALTON
TSO WHOIS To find out userid TSO WHOIS AAxxxxA
TSO CA1 Tape Management Utility
TSO HG Hourglass
TSO FADA File-Aid Data Ager
TSO FADB2X File-Aid for DB2
TSO FIMENU File-Aid for IMS
TSO QAHI QA Hiperstation
TSO XCOM62 XCOM (CATS written front end is MYXCOM)
TSO NDM NDM now called Connect Direct
TSO Xpediter (=XP also Xpediter
works)
TSO VIEWDUMP Abend-Aid

[12] If you want to know the equivalent space for tracks / cylinders in kilobyes or
megabytes type the following ...
Type TSO SIZEIT in the command line
This would get the no of tracks/cylinders from you and show you the equivalent
kilobytes/megabytes.
[13] Got a tip hope it would help. if you are making change to any proc/program/jcl
and need to do a compare to find the difference or the changes made, the normal
option used is 3.12 or 3.13 ( Super C Compare)

Use the comp or compare option on the edit or view panel. open the member to be
compared.

File Edit Confirm Menu Utilities Compilers Test Help


ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ
VIEW EZE1T.PHASE2.VIJAY.PROCLIB(AT10299P) - 72.08 Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //AT10299P PROC JOB=UNDEFINED,
000002 // DAY=DD,
000003 // MONTH=MNTH,
000004 // YEAR=CCYY,
000005 // SCNDATE=
000006 //*
000007 //*********************************************************************
000008 //* STEP DESCRIPTIONS FOR JOB: AT1299PE
000009 //* -------------------------- --------
000010 //* TICKET DATABASE EXTRACT.
000011 //* THIS JOB WILL RUN DAILY AND PASSES FILE TO DB2
000012 //*
000013 //* STEPNAME PROGRAM DESCRIPTION
000014 //* ........ ....... ...........
000015 //* STEP001 - FLAGSTRT - CHECK FOR RESTART
000016 //* STEP010 - IEFBR14 - HOUSEKEEPING
000017 //* STEP020 - HUT21 - PRE-ALLOCATIONS
000018 //* STEP030 - AT10500 - TICKET DATABASE EXTRACT
000019 //* STEP040 - MONITOR - BACKUP FILES

type comp or compare and the name of the member with full PDS name if the
member
is in an another pds or just use the member name in the same PDS

File Edit Confirm Menu Utilities Compilers Test Help


ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ
VIEW EZE1T.PHASE2.VIJAY.PROCLIB(AT10299P) - 72.08 Columns 00001 00072
Command ===> compare 'EZE1T.PHASE2.VIJAY.PROCLIB(bkp0299P)' Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //AT10299P PROC JOB=UNDEFINED,
000002 // DAY=DD,
000003 // MONTH=MNTH,
000004 // YEAR=CCYY,
000005 // SCNDATE=
000006 //*
000007 //*********************************************************************
000008 //* STEP DESCRIPTIONS FOR JOB: AT1299PE
000009 //* -------------------------- --------
000010 //* TICKET DATABASE EXTRACT.
000011 //* THIS JOB WILL RUN DAILY AND PASSES FILE TO DB2
000012 //*
000013 //* STEPNAME PROGRAM DESCRIPTION
000014 //* ........ ....... ...........
000015 //* STEP001 - FLAGSTRT - CHECK FOR RESTART
000016 //* STEP010 - IEFBR14 - HOUSEKEEPING
000017 //* STEP020 - HUT21 - PRE-ALLOCATIONS
000018 //* STEP030 - AT10500 - TICKET DATABASE EXTRACT
000019 //* STEP040 - MONITOR - BACKUP FILES

OR

JUST USE MEMBER NAME IF BOTH IN SAME PDS.

File Edit Confirm Menu Utilities Compilers Test Help


ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ
VIEW EZE1T.PHASE2.VIJAY.PROCLIB(AT10299P) - 72.08 Columns 00001 00072
Command ===> comp bkp0299p Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //AT10299P PROC JOB=UNDEFINED,
000002 // DAY=DD,
000003 // MONTH=MNTH,
000004 // YEAR=CCYY,
000005 // SCNDATE=
000006 //*
000007 //*********************************************************************
000008 //* STEP DESCRIPTIONS FOR JOB: AT1299PE
000009 //* -------------------------- --------
000010 //* TICKET DATABASE EXTRACT.
000011 //* THIS JOB WILL RUN DAILY AND PASSES FILE TO DB2
000012 //*
000013 //* STEPNAME PROGRAM DESCRIPTION
000014 //* ........ ....... ...........
000015 //* STEP001 - FLAGSTRT - CHECK FOR RESTART
000016 //* STEP010 - IEFBR14 - HOUSEKEEPING
000017 //* STEP020 - HUT21 - PRE-ALLOCATIONS
000018 //* STEP030 - AT10500 - TICKET DATABASE EXTRACT
000019 //* STEP040 - MONITOR - BACKUP FILES

instant result.

[14] While coding COBOL programs, if u want to have a look at different template
codes, here is a way ...
Open a datset in the edit mode
Type COBSTAN in the command line
This would show you a lookup screen, where 26 different kind of Cobol programs
would be listed.
Select a particular program and press enter
The whole code would be copied to your dataset. You have to just tailor it to suit
your needs.
This would prove handy, when u do not know the actual way to use Amex utility
programs like UT22000, QSAMIORT,
BM01500 and many more.

[15] Here is a way to have a look at all the RACF IDs, corresponding names and
accounting information ..

Open the dataset JS.RACF.RACFIDS

This would contain all these information for any RACF id in amex.

[16] Here is a way to clear off any unwanted data in columns 1to 6 and 73 to 80,
while editing a dataset.

Open a dataset in edit mode


Type BLANK in the commandline

This edit macro would clear all the data present in columns 1 to 6 and 73 to 80. Could
be very much
useful while coding cobol programs.

[17] Here is a way to directly browse any dataset while editing/browsing any other
dataset ...

Open a dataset in ISPF edit mode


Type BR in the command line
Place the cursor on the starting position of the dataset name that u would like to
browse.

This edit macro would pick up the dataset name from the cursor position and would
open that dataset in browse mode. This
would be very much useful, while editing jobs as u can browse any dataset while
editing the job.

Using BR 'fully qualified dataset name' in the command line of edit screen would
also result in the same.

[18] If you want to recall datasets that is held on a tape, do the following

- Type TSO HRECALL 'dataset name within quotes' in the command line

This would recall the specified dataset from tape. You could also use wild cards in
the dataset name. This would
enable you to recall more than one dataset at a time. All these happen at the back
ground and your work is not held up
during the recall.
[19] If you would like to take a BACKUP of a entire Changeman Package, here is a way
of doing it

Type TSO CMSNAP in the command line

This would ask you for the Application Mnemonic ...ex TSG6 and the package number
ex..005873

Type these details and press enter. The entire changeman package would be backed
up as a sequential file and the
back up file name would be shown to you.

You could restore any component of this changeman package later date from the
backed up file by using the same command.

[20] While editing a DSN if you want to see only those lines having a particular string,
here is a way of doing it ...

Open a dataset in edit mode


Type UNLESS 'string within quotes'
Press Enter

This would show u only the lines which contains that string. All the other lines would
be hidden. This would be of great use,
when we would like to see all the occurrences of a string in a single screen.

[22] If you would like to know the current status of any job, type the following ..

TSO STATUS jobname

This would give you the current status of that particular job.

[23] Here is a way of deleting a DSN when you are editing a job / any other dataset ..

Open a dataset in edit mode


Type DLET in the command line
Place the cursor on the DSN name and press enter

This edit macro would pick up the dataset name from the cursor position and that
particular DSN would be deleted after asking for a confirmation from you.

[24] Typing TSO FADB2X in the command line could take you directly to File Aid -
DB2
[25] If you would like to know, who is using a specific DSN at that particular point of
time, proceed as follows ..

Type TSO WHOHASIT at the command line


Type the DSN name without quotes when prompted for it and press enter

You will get the userid of the person who is presently using that DSN.

[26] PIMS is now also available on DB2. This means you can use all the functionality
of the SQL language to runs queries against jobs, procs, programs, dataset names
and ddnames.

The table name is PIMS.JCLXREF in DB2T.

The column names are


JOBNAME
PROCNAME
PGMNAME
DSNAME
DDNAME
SEQNO(use ORDER BY SEQNO to list rows in the same order as PIMS would)

The DBA group are currently arranging for this table to be refreshed every week.

Please see example queries below.

Regards,
Dave.

-- list all the proc names for a given dsname qualifier


--
SELECT DISTINCT PROCNAME FROM PIMS.JCLXREF
WHERE DSNAME LIKE 'AXH2.MBOJ%'
ORDER BY PROCNAME

-- list all PIMS records for a given dsname qualifier


--
SELECT * FROM PIMS.JCLXREF
WHERE DSNAME LIKE 'AXH2.MBOJ%'
ORDER BY SEQNO

-- list all the procs that run program BR05500


--
SELECT DISTINCT PROCNAME FROM PIMS.JCLXREF
WHERE PGMNAME = 'BR05500'

-- list all the jobs and procs for program MB02000


--
SELECT DISTINCT JOBNAME, PROCNAME FROM PIMS.JCLXREF
WHERE PGMNAME = 'MB02000'

-- list all PIMS records for procedure MB02042P


--
SELECT * FROM PIMS.JCLXREF
WHERE PROCNAME = 'MB02042P'
ORDER BY SEQNO

-- List all proc names that run SELCOPY


--
SELECT DISTINCT PROCNAME FROM PIMS.JCLXREF
WHERE PGMNAME = 'SELCOPY'
ORDER BY PROCNAME

[27] While writting jobs, if u want to have a look at different template JCLs, here is a
way ...
Open a datset in the edit mode
Type JCLSTAN in the command line
This would show you a lookup screen, where 74 different kind of JCLs would be
listed.
Select a particular JCL and press enter
The whole JCL would be copied to your dataset. You have to just modify the
different parameters to use the JCL
This would prove handy, when u dont know the input & output parameters to execute
utility program like SORT, IDCAMS,
IKJEFT01, and many more.

[28] Common Services - ISPF Tips & Techniques 3/2/99 Page 1


I:\cats\training\ISPF Tips.doc

Home Grown Tools – Invoke by typing “TSO cmd”. Hit PF1(help) to display help panel.
ERRCD - Lookup error code in BOOKMGR
WBM - Sample code, JCL to call common routines (=WB.13)
MYXCOM - Quick method for transmitting datasets from 1 site to another
CDSN - Allows user to put cursor on dataset on any panel and invoke multiple functions on the
dataset
FINDMBR - Searches the ISPF libraries for the specified member
WBCBLOPT - Shows COBOL options used to compile a load module (=WB.5)
IMSUTIL - IMS Utilities (PSB/DBD Map, PSB Gen, MFS Gen, PSB/DBD Xref Reports, BMC,
etc.) (=WB.20)
GOUEXPND - View source code by expanding all copybooks (=WB.22)
GOUCMFND - Search prod source baseline libraries for member (=WB.23.1)
GOUSCAN - Scan source libraries for reference to a character string (=WB.4)
LOCATE - Search the linklist to find a module
GDGBLD - GDG Utility (Define, Delete, Modify) (=WB.14)
GOTAMSU - TAMS utility menu
CTSMENU - CTS utility menu

Vendor Tools – Invoke by typing “TSO cmd”


CA1 - Tape Management Utilities (similar to TMS)
HG - Hour Glass 2000 (allows you to set date to be used for Y2K testing)
FADA - File-Aid Data Ager (allows you to convert/change dates in a file) (=F.FADA)
FADB2X - File-Aid for DB2 (FAD command)
FIMENU - File-Aid for IMS (=F.FIMS)
QAHI - QA Hiperstation (record/playback tool for regression testing and automated processing)
XCOM62 - XCOM interface
NDM - NDM interface (can transmit using SMS, can transmit VSAM and Tape)
Xpediter - Use “=XP” to invoke Xpediter TSO. Select option H for detailed help on Amex related
topics.
Type “TSO WBXPINIT” from PDEV and EDEV to get the Common Services version of
the Xpediter Menu.
VIEWDUMP - Abend-Aid XLS (maps abend to source code. For more info, locate on ABENDAID in
WBM)

ISPF Settings Tips – Type “Settings” on ISPF command line


• Remove / next to Tab to action bar choices to allow HOME key to return to command line
• To remove underscores from panel fields - Select Colors pull-down, then select CUA Attributes, then
change USCORE toNONE
• Type PFSHOW OFF on command line to remove PF Keys from being displayed on panel
• Use CRETRIEV command (Cursor/Retrieve commands combined in one command)

ISPF 3.4 Tips


• Use the FIND string command to search for a specific dataset in a large list of datasets
• Use following clists to invoke corresponding File-Aid MVS option – F1, F2, F31–F39, F4, F51-F55, F6,
F7, F8, F9
• Use / as a placeholder for dataset on line when invoking a command (ie: XMIT WROC.userid DA(/))
• Use MYXCOM to transmit file to any mainframe system (use XMIT when sending to someone else’s
userid)
• Use = to repeat last command entered

ISPF Edit/View Tips


• Use labels so you can return to an area without having to re-invoke FIND command
- Assign a label by typing it over the line number (e.g. .A), Locate the label by typing L .label on
command line (e.g. L .A)
- Multiple labels can be set and then used in Find and Change commands (e.g. C ‘string1’ ‘string2’
ALL .A .B)
• Use HILITE command to set highlighting options.
• For Dialog developers – Use Model command to insert sample code into your member
• Use Bounds to limit Find, Move, Change commands – Type BNDS on line then use < and > to set left
and right boundaries
• Use TS line command to split the text at the cursor position. Use TF line command to flow next record at
the end of current record.
• Use shift line commands - )n or ))n to shift data right, (n or ((n to shift data left
• Use UC line command to change characters to Upper Case, use LC to change characters to Lower Case
• Use JEM edit macro to check JCL (use L .label command to locate any errors as indicated in the JEM
report)
• Use JSCAN and JSCAN1 edit macros for JCL checking also. JSCAN1 will also resolve JOBTRAC
variables.
• Use FF, FP, FL (Find First, Previous, Last) edit macros to find the field at the cursor position (intelligent
find based on source type)
• Use X ALL to exclude all. Use Fn and Ln line commands to un-exclude First and Last excluded lines.
• Use X and NX parms on commands such as Find, Change, and Delete to impact only excluded or non-
excluded lines
• Use FLIP command to toggle between excluded lines and non-excluded lines.
Common Services - ISPF Tips & Techniques 3/2/99 Page 2
I:\cats\training\ISPF Tips.doc

EZY – Invoke by typing “EZY” on any ISPF command line


Allows you to enter and save commonly referenced datasets. Many functions can be performed against the
datasets.
• ALTERDIR - Allows you to allocate more directory blocks for a PDS (handy when you get an E37
while saving a PDS mbr)
• RECOVER - Use this to recover a PDS member if you accidently delete it
• PDSMAN – Type PDSMAN on the EZY command line to invoke the PDSMAN utility (PDS utilities)

SDSF Tips (=S)


• Use ? to expand a job
• Type SET DISPLAY ON to show your SDSF display settings
• SJ – Use this command to edit the JCL for the Job (can edit and re-submit the job, must use Copy/Create
commands to save edits)
• SE – Use this command to edit job output (must use Copy/Create commands to save edits to a file)
• XD, XDC – Use these commands to route job output to a dataset
• XS, XF – Use these commands to route job output to SYSOUT or a pre-allocated DD
• INPUT ON – Use this command when you get “No Displayable Data” message

File-Aid MVS Tips (=FA, =A.20, FA cmd)


• You can use * when specifiying a dataset on many FAMVS panels. You will then get a list of datasets
that qualify.
• Use option 3.1 to map a load module.
• Use option 3.2 to allocate datasets (more powerful than ISPF 3.2)
• Use option 3.6 to search all PDS members for a string. You can also do mass changes to members.
• Use option 3.3 to copy a file to another file (destination file can be allocated on-the-fly)
• Use option 7 to create XREF for file requiring multiple copybooks. XREF file must be a PDS with
(RECFM=VB, LRECL=300).
• Use option 8 to print a copybook and to show the offset of each field within the copybook.
• For sample Batch File-Aid JCL, invoke the WBM clist and locate on FAMVS

File-Aid Edit/Browse Features


• Use Vertical Format (VFMT) mode to map a file to a copybook
• Use SORT /# to sort file by a field number
• Use C ANY newvalue /# to change all values in a specific field to a new value
• Use OVLY and Move commands to perform a move overlay
• Use FPRINT command to print a file in formatted mode using a copybook or xref
• Use SHOW NUM; DISPLAY x-y ONLY commands to limit display to specific fields. Can also be used
to FPRINT certain fields.
• Use F INVALID /# to find invalid data in a specific field number

File-Aid IMS Tips (TSO FIMENU, =F.FIMS, =A.25)


• Use FAIMS option 4.1 (Extract) to unload a database to a file
• Convert the FAIMS Xref to a FAMVS Xref by using sample JCL in WBM (locate on FAMVS)
• Use FAMVS to Browse or Edit the extract file
• You can use FAMVS to do a formatted print of the database using the converted XREF and the FPRINT
command
• Use FAIMS option 4.2 (Load) to load segments back to the database from the extract file

JHS Tips (=JHS, JHS command)


• Type PRO;BRS then select NATIVE ISPF/TSO mode – This allows more functionality when browsing
job output
• Use SORT command to sort job display by any column (ie: Job, Job #, Started, Ended, Code, etc)
• Use PRT command to print job output from JHS. The print job name will be under your userid* in
SDSF. You can then use the XD command in SDSF to route the job output to a file if desired.

[29] If you want to give read access to your datasets to any userid or group id here is
a very simple way of doing it...

Type TSO GORACF userid/groupid

So, from now on no need to tamper with ur profile set up in F;AMEX;RACF;1

Just typing this command would give read access for your datasets to any user id.

[30] TSO CDSN (Cursor Dataset command)

Type this command on the command line and bring your cursor to the dataset of
interest on the screen.
Press Enter.
This takes you to a screen which will allow you to perform lots of functions on the
dataset. It allows you to edit, browse, view, delete, open in Fileaid, XCOM it, lists
other people/jobs using the dataset and many more....go on and explore...

[31] Go to Fileaid directly from ISPF 3.4

Open a dataset in ISPF 3.4


On the command area at the left, enter command F1.
Press Enter.
This will take you directly to Fileaid Browse panel.

[32] Here is a way to switch directly to the job output screen after submitting a job
from the edit screen .. Follow the steps below ...

Submit the job from the edit screen

The following steps explains the procedure of directly getting into the SDSF screen,
from the edit screen to see the job output

Type CJOB at the commandline


Place the cursor on the Job name of the job card
Press Enter
This CJOB edit macro picks up the job name from the cursor position and takes you to
the corresponding job in the SDSF
output. Hope this proves handy to most of us.

You might also like