• No se han encontrado resultados

funcionarios al servicio de la Administración de Justicia

get into a member or a sequential dataset for VIEW or EDIT. We shall continue our discussion on the features available to us once we start our VIEW/EDIT session.

Edit Profile

Edit profiles are used to retain information that controls your edit session for a dataset, including: ‰ The current setting of edit modes (NUMBER, CAPS, NULLS, and so on.)

‰ The current contents of the MASK, TABS, and BOUNDS definition lines.

Edit profiles are created and maintained automatically for you, but you may create and use additional profiles for increased flexibility. It is saved across ISPF sessions and loaded whenever the dataset is edited. The edit profile usually defaults to the last qualifier of the dataset and is stored in the user’s ISPF profile dataset. Each edit profile has a name. The name must be one to eight alphanumeric characters, the first of which must be alphabetic. The Edit profile may be seen by the PROF primary command. If you type PROF 8, all 8 lines of the profile are displayed. PROF 3 displays the first 3 lines etc. Data type pertains to the format of the data set you are editing. This is usually taken from the data set information. It contains the profile type, the record format and the record length. The profile type is the last qualifier of the data set name, if the qualifier is predefined to ISPF. Some last qualifiers that are known to ISPF are COBOL, PLI, EXEC, CLIST, JCL etc. A few of the Edit profile values and their properties are described as follows.

RECOVERY ON or RECOVERY OFF specifies whether data will be recovered if the edit session ends abnormally.

NUMBERS: This field can have one of four different values: NUM OFF specifies no sequence numbers are to be present, and the numbers in columns 1 to 6 contain only the relative line numbers from the top of the data set. NUM ON STD specifies that sequence numbers are to be present in columns 73 to 80. NUM ON COB specifies that sequence numbers are to be present in columns 1 to 6. NUM ON STD COB specifies that sequence numbers are to be present in columns 1 to 6 and columns 73 to 80.

CAPS ON or OFF: Specifies whether data should be converted to uppercase before saving or not. HEX ON: Specifies that data is to be displayed in hexadecimal format.

NULLS: This field is used so that we can insert characters in a line using the Insert key on the keyboard. Setting this field to NULLS ALL or NULLS ON STD, NULL characters are introduced in the trailing blank area of a line. Then, by pressing the Insert key, you can insert data in a line.

TABS: This field is used to enable the hardware and logical tabs. This field should be set to TABS ON ALL or TABS ON STD for tabbing to be enabled.

SETUNDO: This field is used to specify how changes you make during your edit session are to be recorded to be used by the UNDO command. Changes can be recorded in storage, in the recovery file, or both. Saving the changes in storage only is the fastest method.

Page 52

©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

AUTOSAVE: This profile value is used to specify the action to be taken when you enter an END command without saving a dataset. AUTOSAVE ON will save the data set automatically if you END without saving. AUTOSAVE OFF PROMPT will ask the user whether to save the data set or not when you exit. AUTOSAVE OFF NOPROMPT will quit without saving and without informing the user about it.

AUTONUM ON will automatically renumber the data when you insert lines and save them. AUTONUM OFF will not renumber the lines on saving.

If AUTOLIST ON is present, the data set is automatically written into the List data set when it is saved.

STATS: This value indicates whether ISPF statistics will be saved for this member when it is saved. STATS ON will save the stats, while STATS OFF will not save it.

PROFILE LOCK: This value for a PDS ensures that all members that are edited will always have the same profile. This is to ensure that the profile is not changed every time according to the data in the member.

IMACRO: This value for a PDS specifies the macro that will be run on every newly created member.

PACK ON/OFF: this value indicates whether data is to be stored in packed form or not. NOTE ON/OFF: This is used only when you use models to insert data into a data set. When NOTE ON is used, some self-explanatory notes are inserted along with the model code. When NOTE OFF is used, the notes are left out when the model is inserted.

TABS: This line shows the locations of the tab characters. If tabs are not being used, this line will be left blank. To reset the tabs, use the TABS OFF primary command.

MASK: This line contains a few characters that will be inserted on every newly inserted line. The mask may be viewed at any time by using the MASK line command. To reset the mask, simply overtype on it when it is being displayed.

BNDS: This line indicates the current value of the Bounds. To reset the bounds to the default value, use the BOUNDS primary command.

Page 53

©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

Summary

1. ISPF Main Menu provides wide range of functions for library, dataset, and catalog. 2. Dataset Utility Option 2 is used to create delete and rename datasets, both PDS and PS. 3. Move/Copy Utility Option 3 from the utilities menu or option 3.3 from the main menu takes

us to the Move/Copy utility. This utility is useful for copying or moving both dataset and PDS along with its member

4. Dataset List Utility can be selected by entering 4 on the utility panel or 3.4 from the Main Menu. This utility provide, Search on dataset names, Personalized settings, Multiple operations on the datasets, Dynamic List of datasets

5. Specifying a valid dataset name in 3.4 options, displays the dataset for viewing if it is a sequential dataset. If the dataset is partitioned, we get a list of members available in the PDS

6. Editing and manipulating Commands, Insert, repeat, delete, overlay, copy, paste, exclude can be executed by placing the required command between column 1 and Column 6. 7. To bookmark a particular line and return back when needed, Labels can be used.

8. Edit profiles are created and maintained automatically for you, but you may create and use additional profiles for increased flexibility. Edit profiles are used to retain information that controls your edit session for a dataset.

Test your Understanding

1. Enter the option number for Utility Menu

2. Mention the compulsory parameters for allocating a dataset 3. What is the difference between Move and Copy?

4. What is the use of MOD parameter under Member list fields? 5. What are the File Manipulation Commands?

6. Mention the significance of using Labels while editing or browsing. 7. List out the SCROLL options available

Exercises

1. Allocate a dataset, which will have exactly 1000 Records with 80 bytes length each. 2. Need to modify the field of the dataset which has only read access. How to proceed,

Mention the screenshot of the Step Followed.

3. Need to identify the PDS, where the given member is present. Give the screen shot of the command followed

4. Bank A needs to create a File X every month using a transaction File Y received from Bank B. Every month only first 100 lines of File Y belong to Bank A. Out of those 100 lines, line 10 to 25 should overlap line 50 to 65, line 1 should move after line 100 and lines 91, 92 should also be first two lines of File X.

Page 54

©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

Session 05: Other Utilities

Learning Objectives

After completing the session, you will be able to: ‰ Define Find and change options available ‰ Access Compare and search utilities

FIND Command

FIND is most frequently used command in View, Edit, Browse. The FIND command has a lot of options, which are categorized as follows:

The various categories may be used independent of each other. These options are to be given apart from the string to be searched. The search can be limited to a range of columns specified by the column numbers. For example, FIND XYZ 23 45 finds the next occurrence of the string XYZ in the column range 23 to 45. If you specify only one column number (and not a range) then search will be for the string starting at the specified column. The labels that you set can be used to delimit the search range row-wise. If you give two labels, then the search is done in that range only. You cannot give a single label.

ISPF assigns a set of predefined labels for some lines. These are as follows: ‰ .ZF: (.ZFIRST) for the first line of the data set.

‰ .ZL: (.ZLAST) for the last line of the member.

‰ ZCSR: (.ZCURSOR) for the current cursor position.

‰ WORD: Indicates that the string to be searched for is delimited by spaces or non- alphanumeric characters.

Page 55

©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

‰ PREFIX: Indicates that the string is followed by some other characters without intervening spaces. (that is, the string is a prefix).

‰ SUFFIX: Indicates that the string is preceded by some other characters.

‰ HEX: If the string is enclosed in single quotes and preceded by ‘x’, then it implies that the string is specified in Hex characters. The string should have only valid Hex characters and should have an even number of characters.

‰ TEXT: Indicates that the string is to be searched for without matching the case, that is, the search is not case sensitive. Since this is the default, it is not used. The string is enclosed in quotes and preceded by ‘t’. CASE: If the string is enclosed in quotes and preceded by ‘c’, the search will be case-sensitive. For example, FIND C’ISPF runs on TSO’.

‰ FIRST: Search for the first occurrence of the string.

‰ LAST: Search for the last occurrence of the string.

‰ ALL: Position the cursor at the first occurrence and display the number of occurrences at the top right corner.

‰ PREV: Find the previous occurrence from the current cursor position.

‰ NEXT: Find the next occurrence starting from the current cursor position. The string that was used for the previous

‰ FIND: Command can be used again by just specifying ‘*’. If you issue FIND *, the system will find the next occurrence of the previous FIND string. The direction of the search will be the same as the direction of the previous FIND command. The defaults for the FIND are NEXT, .ZCSR .ZL, TEXT, CHAR. A few examples of valid FIND command are: