Saturday, December 27, 2008

Dataset ENQ and CONtention

If you are trying to edit or view a dataset and you get a message "data set in use", how will you find who is using it? ISRDDN is the answer.

Type TSO ISRDDN (in some shops its just ISRDDN - no TSO prefix required) and hit enter. Then type ENQ and hit enter.

You will get a screen like this:


Type your dataset name (or prefix) in "Minor name prefix" and hit enter.

You'll get a list of all the users/jobs that are viewing/editing the
dataset(s) under the Job Name field. These are color coded to indicate the following ENQue status:

GREEN - Shared
REVERSE GREEN - Waiting for shared
RED - Exclusive
REVERSE RED - Waiting for exclusive

For the System ENQ List you may specify specific Major, and Minor prefixes, as well as specific job or user prefixes to reduce the size of the list.

You can use the RESET command to reset these values to defaults.

On the ENQ display screen, you can type ALL to view all system ENQs or RESET to view the SYSDSN enqs for your user id.

The System ENQ Contention display (command Con) shows all ENQ contention on the system.

Thursday, December 11, 2008

Fast Load abend - IEC146I 513-04

You are running Platinum Fast Load job and the job fails on you with an "IEC146I 513-04" error.

IEC146I 513-04 means
"An OPEN macro instruction was issued for a magnetic tape data set allocated to a device that already has an open data set on it. Make sure that the first data set is closed before the second is opened, or allocate the second data set to a different device. This error may be due to a
previous abnormal end associated with the same unit in the same step. If so, correct the error causing the previous abnormal end."

Problem:
As per the above message, you are trying open the dataset for two different purposes in the same job step.

In your LOAD card, see what you've specified for INDDN. In my case, I had specified INDDN SYSREC.

Fast Load user guide says "If you will be performing an OUTPUT-CONTROL ALL type load, and you want to specify INDDN SYSREC, you must also specify UNLDDN and change its default value. Otherwise, Unicenter Fast Load will try to use SYSREC as an input and a work file."

OUTPUT-CONTROL ALL is the default. I noticed that I didn't have a UNLDDN DD name in my JCL.

Fix:
Either specify a UNLDDN DD in your JCL step or change INDDN to something other than SYSREC. I changed it to SYSULD and it worked.

Monday, December 1, 2008

CA Intertest (Batch) Tips

If you use CA's Intertest for Batch to debug your batch COBOL programs or stored procedures, read on.

There are a few commands that you use frequently. Set them commands in PFKEYS for ease of use:

STEP 1 - Set steps to go in each run to 1 (I usually set it to PF4)
GO - Run as many steps as described in the STEP command (I usually set it to PF5)
RUN - Run until the next breakpoint (I usually set it to PF6)
KUP - Scroll Up in the Data Display Window (I usually set it to PF17)
KDOWN - Scroll Down in the Data Display Window (I usually set it to PF18)

Thursday, November 20, 2008

Sample Job: BMC Unload Plus

Here is a sample job to run BMC's Unload Plus utility:

Sample Job: CA/Platinum Fast Unload

Here is a sample job to run CA/Platinum Fast Unload utility:

Wednesday, November 12, 2008

PRINT job output and SYSLOG from SDSF

Say, you have run a job and you want to save the job output. How do you do it? There are two ways: either you save a softcopy in a dataset or take a print out.

Note: the following methods work only if you have SDSF.

To save job output to a dataset:
  • Go to SDSF
  • Type XDC besides the DDName or the job name
  • It will pop up a "SDSF Open Print Data Set" menu.
  • Fill in the required fields such as Data set name, Disposition, Space units, Primary Quantity, etc and hit enter. When it is done copying the data to the dataset, you'll get "Print Closed" message on the Top Right corner of the screen.


To print job output on a mainframe printer:
  • Go to SDSF
  • Type XSC besides the DDName or the job name
  • It will pop up a printer menu. Fill in the required fields such as Class, copies and other fields and hit enter. It goes to the held queue(usually)
  • Go to the Held queue and release it by typing 'O'

Sometimes it is required to print the SYSLOG or part of the SYSLOG to a
data set:
  • To print part of the SYSLOG to a preallocated data set:
  • Go to SDSF
  • Type the PRINT Command like this: PT ODSN SDSF.PRINT * MOD
  • Then type the PRINT command with the date and time for which you need to print the log: PT 06.00.00 10/15/2008 10.00.00 10/15/2008
  • Then type this command: PT CLOSE

Thursday, November 6, 2008

Lotus Notes - Save Window State

Well, this is not a mainframe tip. But I use Lotus Notes everyday and today I found something useful that I want to share.

If there are databases or group mail files that you open every day in Lotus Notes, you can setup Lotus Notes to open these on startup.
  • Open all of the windows you want opened every time you open Lotus Notes
  • Click on File and select Save Window State
Now every time you log into Lotus Notes your selected items will automatically open.

If Save Window State option is greyed out, click on File, Preferences, User Preferences and check that "Save Window State on Exit" is not checked under "Startup Options".

Tuesday, November 4, 2008

APF Authorization

When someone says, "you need to APF authorize this dataset", what do they mean?

Well, APF means "Authorized Program Facility". In a z/OS environment, APF is a facility that permits the identification of programs that are authorized to use restricted functions.

To find the datasets that are APF authorized:

1. Type TSO ISRDDN in your ISPF session (some shops need just ISRDDN with no TSO prefix) and hit enter.

2. Type APF and hit enter. It'll bring up a list of all datasets that are APF authorized.

Remember that, if you like to use a APF authorized dataset in a job STEPLIB, make sure all the datasets in the STEPLIB are APF authorized.

Monday, November 3, 2008

DB2 SQLCODE=-950

We use BCV split (Business Continuance Volume) technology to clone our Peoplesoft DB2 production subsystem to DB2 test subsystem. After we cloned one of our subsystems, we noticed that our programmers were not able to access QMF. They started getting the error message:

"DSQ16950 The location name is not known to the local DB2 subsystem.".

This was the error message from QMF. The actual error message issued by DB2 was "SQLCODE -950" which means "THE LOCATION NAME SPECIFIED IN THE CONNECT STATEMENT IS INVALID OR NOT LISTED IN THE COMMUNICATIONS DATABASE".

When you get this message check SYSIBM.LOCATIONS to see if a row is there for the DB2 subsystem it is complaining about. If there is one and the values are correct, check the application PLAN. In our case we checked QMF PLAN.

Check if you have the right value for CURRENTSERVER in your BIND PLAN. If you don't have the correct value, rebind the plan with correct value for this parameter. If you are on a local server (on a local LPAR), just remove this parameter. Removing this parameter and rebinding the plan fixed our issue with QMF.

Sunday, November 2, 2008

Platinum Fast Load Error "PFL8013E"

If a Fast Load job fails with PFL8013E (Error Description: A table within Table Space that has multiple versioned rows is not supported for this release of Unicenter Fastload. Reason: This DB2 V8 feature is not yet supported by Unicenter Fast Load. Processing terminates), it could be because the tablespace is in AREO (Advisory Reorg pending) status. This happens in a DB2 V8 NFM subsystem, with Fast Load (version r11.5) Resume NO REPLACE option specified.

How will you fix this? There are a few options that you can try:

1. Run REORG utility on the tablespace and retry loading.

2. If that doesn't work, drop and recreate the table and then load the table using Fast Load

3. If that doesn't work, try IBM LOAD. That should definitely work.