Professional Documents
Culture Documents
[1]
If you are to execute an SQL without going to SPUFI or QMF, here is a way of doing it..
0000CC SELECT *
000011 FROM AA5821A.T_COPYBOOK
0000CC WHERE TYPE = "DB2"
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.
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
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 ...
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)
Similarly to move the block to the left , use the open bracket signs
[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 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.
Normal Screen
PROCLIB (FIXED - 80) LAST PDS NAME , LENGTH OF THE EACH ROW OR LRECL
NULLS ON STD USE THIS TO FILL UP SPACES WITH NULLS AND SAVE SPACE.
TABS OFF SET TAB STOPS AND USE TAB DURING EDITING
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.
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
OR
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 ..
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.
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 ...
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
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 ...
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 ..
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 ..
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 ..
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 DBA group are currently arranging for this table to be refreshed every week.
Regards,
Dave.
[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.
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
[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...
Just typing this command would give read access for your datasets to any user id.
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...
[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 ...
The following steps explains the procedure of directly getting into the SDSF screen,
from the edit screen to see the job output