Saturday 13 August 2011

Mainframe Commands

ISPF panel & Commands
Before Discuss About Mainframe Commands Lets Took a Look About  Ispf panel, Its a Good looking GUI Screen on which the user types the Input and sees the outputs. Thus, the GUI-Screens allow the the User to work with and use the Software-Tools interactively. GUI-Screens of an Application are called ISPF Panels. 

ISPF Panel is Looks like a web pages which have an Menu or Action Bar in The Top Portion.When U Click the on Or Select u Got More Options and Below the action bar panel title is present.
            The Body Of the Panel has the main Contents of the Panel and thats is input & output fileds.

Mainframe Commands :--

There are so many types of commands in mainframe but we r going to discuss some of them 
  • Primary Commands  
  • Line Commands
  • Block Commands                    
Primary Commands :--

The following commands can be used from the primary command field of the ISPF editor. This field is found either at the top left or bottom left of the screen depending on how you have your ISPF screens configured.

Place For Type Primary Commands

[ ] indicate optional parameters, [ | ] indicates a choice of one of the options listed (or none), { | } indicates you must specify one of the options. Where no optional parameter is specified the underlined value will be assumed.

  • AUTONUM [ON | OFF] :- Determine whether line numbers are maintained automatically.
  • AUTOSAVE [ON | OFF PROMPT | OFF NOPROMPT] :- Determine whether data is automatically saved when you leave the editor.
  • BOUNDS [left-column right-column] :- Controls left and right boundaries for edit commands.
  • CANCEL :- End the edit session without saving.
  • CHANGE :-  This command works exactly the same as the Find command except that there is an extra parameter that contains the value that is to be substituted for the found string.
  • COPY :- refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • CREATE :-  refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • CUT  :-  refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • DELETE [ALL] [range] [X | NX] :-  Delete the specified lines.
  • EDIT [membername] :- Invoke another edit session.
  • EXCLUDE :-  This command works exactly the same as the Find command except that the lines on which the searched for string is found are excluded from the displayed output.
  • FIND :- refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • HEX [ON DATA | ON VERT | OFF] :- Controls whether the hexadecimal values are displayed and if so how.
  • IMACRO {macro-name | NONE} :- Replaces the initial macro in the edit profile.
  • LOCATE {line-number | label} :- Locate the specified line.
  • LOCATE [NEXT | PREV | FIRST | LAST] [CHANGE | LABEL | EXCLUDED | ERROR | COMMAND | SPECIAL] [range]  :- Locate the specified type of line.
  • MOVE :- refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • NONUMBER :- Turn number mode off.
  • NOTES [ON | OFF] :- Determine whether or not notes are displayed.
  • NULLS [ON STD | ON ALL | OFF] :- Controls how trailing blanks are handled.
  • NUMBER [ON | OFF] [STD | COBOL | STD COBOL] :-  Determine how line numbers are stored.
  • PACK [ON | OFF] :- Determine whether data is stored in a compressed format.
  • PASTE :- refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • PROFILE [profile-name] :- Display the specified profile.
  • PROFILE [LOCK | UNLOCK] :- Determine whether or not profile changes will be saved.
  • RECOVERY [ON | OFF] :- Determines whether changes are saved in a recovery dataset
  • RENUM [ON | OFF] [STD | COBOL | STD COBOL] [DISPLAY] :- Resequence line numbers automatically.
  • REPLACE :- refer to Moving Lines of Data for full details of the parameters available with this command and how to use it.
  • RESET [LABEL] [COMMAND] [ERROR] [CHANGE] [SPECIAL] [EXCLUDED] [range] :- Resets the specified settings to their default.
  • SAVE :- Save the current member.
  • STATS [ON | OFF] :- Determine whether member statistics are maintained.
  • SUBMIT [range] :- Submit the content of the member for background processing.
  • TABS [ON | OFF] [STD | ALL] [tab-character] :- Control logical and hardware tabbing.
  • UNDO :- Undo the last change stored in the recovery dataset.
  • UNNUM :- Replace line numbers with blanks and turn number mode off.
Line Commands :-- 

This is a list of the various commands that can be entered into the field alongside the individual lines of the file that you are editing using the ISPF editor. The field usually contains either '******' or line numbers. These commands usually act on the data line that is alongside and may also affect adjacent lines if a number is typed alongside. With block commands the command needs to be entered on both the first and last lines to define a block of lines.


CommandFunction
<Data shift left
shifts a single line of program source code to the left without affecting the program labels or comment ie. data from column one to the first blank and data following several blanks are not moved. May be specified with a number identifying the distance to move (default 2).
<<Block data shift left
All of the lines in the block are affected as if you typed individual data shift left commands. May be specified with a number identifying the distance to move (default 2).
>Data shift right
As for data shift left but the opposite direction. May be specified with a number identifying the distance to move (default 2).
>>Block data shift right
(Column shift left
Works similarly to data shift left but moves everything within the bounds, nothing stays fixed in place. May be specified with a number identifying the distance to move (default 2).
((Block column shift left
)Column shift right
))Block column shift right
aAfter
used with copy, move, or paste to specify the line after which the copied/moved lines are to be inserted.
bBefore
used with copy, move, or paste to specify the line before which the copied/moved lines are to be inserted.
bndsDisplay bounds above this line
Displays the current boundary positions which can be changed by tying < and > in the new boundary positions that you require.
cCopy
Copies this line either to another place within the current file (using a, b, or o to identify destination) or to another file (using the create, replace, or cut commands). Can be specified with a number to indicate that multiple lines are to be copied.
ccBlock copy
colsDisplay the column ruler above this line
dDelete
Deletes this line from the file. Can be specified with a number to indicate that following lines are also to be deleted.
ddBlock delete
fDisplay the first excluded line
Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines.
iInsert a new line after this one
Can be specified with a number to insert multiple lines.
lDisplay the last excluded line
Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines.
lcConvert all text on this line to lower case
Can be specified with a number to convert more than one line to lower case.
lccBlock convert to lower case
mMove
Works the same as copy except that the lines are removed from their current location.
mmBlock move
maskDisplay the mask line above this one
The mask defines the default content for inserted lines.
oOverlay (used with copy and move to specify the line into which the copied/moved line is to be inserted - only spaces are replaced). Can be specified with a number to indicate that following lines are also to be overlaid.
ooBlock overlay (the lines to be copied/moved are inserted into the block as many times as they will fit)
rRepeat - create a duplicate of this line
Can be specified with a number to indicate that additional duplicate lines are to be produced.
rrBlock repeat
Can be specified with a number to indicate that multiple duplicates of the block are to be produced.
sShow the excluded line that has the least indentation
Can be specified with a number to display more than one excluded lines. When multiple lines are displayed they may not be together. This command is only valid on excluded lines.
tabsShow the tab settings above this line
Hardware tabs positions are indicated by asterisks (*) and software tabs by hyphens (-) or underscores (_).
teText Entry mode - allows bulk insert following this line
You can start entering data without paying any attention to lines as the text will wrap automatically. Press the enter key to exit from text entry mode.
tfText flow - flows the text between the margins for this line and following lines until a blank line is found, the indentation changes, or a special character (period, colon, ampersand, less than, or form feed) is found in the first column.
tjText Join - merges this line with the following one
tsText split - splits this line in two
You need to position the cursor at the position on the line where you want the split to occur.
ucConvert all text on this line to upper case
Can be specified with a number to convert multiple lines.
uccBlock convert to upper case
xExclude this line from the display
Can be specified with a number to exclude multiple lines. This command is useful when you need to view two blocks of data that are in different locations within the file, just exclude the intervening data from the display.
xxBlock exclude
.label assignment
You can assign a label to any non-excluded line by typing a period followed by the label name. The label can then be used to identify the line in primary commands. You cannot start labels with "z" as these labels are reserved for system use.

    0 comments:

    Post a Comment

    Share

    Twitter Delicious Facebook Digg Stumbleupon Favorites More