• Rajesh A R

F1 for Mainframe

F1 for Mainframe

Tag Archives: CREATOR

ISPF TIPS

26 Thursday Jan 2012

Posted by rajeshar in ISPF

≈ 1 Comment

Tags

AUTOCOMPLETE, AUTOTYPE, COMMAND, COMP, COMPARE, COMPARE SESSION, CREATOR, CUT DISPLAY, ID, ISPF, LINE, mainframe, MEMBER IN USE, NRETRIEV, REFLIST, REGION, RETP, SEARCH, SORT CHA, TIPS, TSO

——————————————————————————————————————–
TIP # ISPF
Incase you are editing a JCL and want to make change to a particular DD name in multiple steps of the JCL with different data for each step. The command to see only those particular lines is provided below.
Answer:
X ALL;F ALL ‘DDNAME’;HIDE X

——————————————————————————————————————–
TIP # ISPF
Lets start with a generic and simpler one.
Consider that you are editing a file/program and you want to know the changes you have done
since the last SAVE command.
How to find that?

Answer:
Give COMPARE SESSION on the command line
Further use of COMPARE commands…
– Can be used like 3.13 option

——————————————————————————————————————–
TIP # ISPF

Usually the PDS or PS bears the ID of the creator or the ID of the person who modified it
recently.But is it possible to change these ID values without leaving trace of one’s own ID?

Answer:
Yes its possible! In the command area against the member name or PS name, by giving ‘G’.
Dialog box will pop up allowing you to change the ID values.
——————————————————————————————————————–
TIP # ISPF

Suppose you are in a ISPF Screen and want to know in which TSO Region ( Development,
Production, or other TSO regions) you are now .
Answer:
Issue on the command line : SAREA
ISPF STATISTICS Pop-up window will show you the region( and other info too)

——————————————————————————————————————–
TIP # ISPF

Any command entered in the COMMAND LINE disappears after the successful execution of its
intended function.
If you want to repeat the same command , you got to re-type it or use some PF key to retrieve the
last command entered.
But here is a cool method the make the command entered not to disappear and stay on the screen.
Precede commands with ‘&’

For Example:
COMMAND ===> &C ‘110-PARA’ ‘220-PARA’ SCROLL ===> CSR
****** ************************ TOP OF DATA **************
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. COBOLSAMY.
000003 DATE-WRITTEN. APRIL 2004.
After the execution of the command, the below command stays on the screen.
This way you can entering the same command or modifying the command a little and using it
multiple times.
——————————————————————————————————————–
TIP # ISPF

While trying to open any member in a PDS, we sometimes come across
“member in use” message. In that situation, if you want to know who is using the member
currently, press F1 twice.
——————————————————————————————————————–
TIP # ISPF

We usual search for members in a PDS by the first string of the members.
Consider this situation .
I have a PDS and I want to search it for member only by middle string of the members.
e.g. there are some members like BESTJCL1,RESTJCL2,PESTCBL1, BESTCBL2,
WESTCBL3,TESTASM1,BESTASM2…etc
I want to find members which have CBL in them.
How can I search and find these members?

Answer:
Use ISPF 4.12 option.
Specify the dataset to be searched and the pattern of the string.
Specify the LANG type as COB
And select the browse option.
——————————————————————————————————————–
TIP # ISPF

How can I find the last 10 datasets that I have accessed ?
Answer:
1.GO TO ISPF 3.4 option.
2. On the top, there is a MENUBAR. Select REFLIST
3. Select Option 1 in it.
Using this option you can find out the last 30 datasets that you have accessed….
——————————————————————————————————————–
TIP # ISPF

Alternate to SuperCE Option(3.13) is to use the macro COMPARE .
Use this when you there is less difference between the two files.
1
.Open a DSN in EDIT or VIEW Mode
2. On the Command line , issue COMP ‘YOUR.SECOND.COMPARISON.DSN’
3. If you want only the changes to be listed, issue COMP
‘YOUR.SECOND.COMPARISON.DSN’ EXC

——————————————————————————————————————–
TIP # ISPF

While Browsing Internet, we have some cool option called address autocomplete…we enter
some letters in the address bar and the browser auto completes it with the closest guess.
Does MAINFRAME has the same feature??

Answer:
Yes! It has “Autocomplete” feature!!!
How to use it?
1.go to ISPF 3.4 ,
2. enter KEYS in the command line,KEYS window will popup
3. set any key to AUTOTYPE, save and exit
2. now type any Dataset partially and press the assigned PFkey!!
Note: It will not retrieve GDGs and VSAM files.
——————————————————————————————————————–

TIP # ISPF
I want to find a member but I don’t know the PDS to which it belongs. I only know the high
level qualifier of the PDS.
Answer:
For example, lets consider high level Qualifier as MYID.MYAPPLN.* and member as MYMEM
1. Go to 3.4 and list all PDS with MYID.MYAPPLN.*
2. Now issue, MEMBER MYMEM on the command line
——————————————————————————————————————–
TIP # ISPF

I want to know what are the last 25 COMMAND LINE commands that I have issued from ISPF
panel.
Answer:
To get that, I have to issue, RETP on the Command line.

——————————————————————————————————————–
TIP # ISPF

I want to edit a member, which has CBL as middle string in the PDS MY.PDS.MEMBERS.
One shortcut way is to in the ISPF 3.4 listing of the PDS,
issue S *CBL* E in the command line. If we don’t use E at the end, it will open in browse mode.
——————————————————————————————————————–
TIP # ISPF
Here is another tip on ISPF 3.4 Option
Usually to find the last edited member, we issue SORT CHA or SORT CHANGED on
the command line.
One can save few keystrokes by placing the cursor on any of the column
header in the ISPF 3.4, and press ENTER.
In our case, if we place the cursor on the CHANGED header, we will get the
members sorted on that column.
——————————————————————————————————————–
TIP # ISPF
Here is a tip by which you can avoid ISPF 3.4 Option!!!
To Open a PS or PDS member, we usually use ISPF 3.4 to open in EDIT or BROWSE
MODE.
Here is one way where one can open PS or PDS member in EDIT/VIEW/BROWSE
mode from any command line.
Thus, we can avoid using 3.4 option.
Issue : EPDF ‘MYID.MYPS’ . The Dataset will be opened in EDIT MODE
If you want to open in VIEW mode:
Issue : EPDF ‘MYID.MYPS’ VIEW
Similarly, for opening in BROWSE mode, type BROWSE at the end.

——————————————————————————————————————–
TIP # ISPF

Here is a situation. I have received a maintenance change
request on one of the program.
While I am making changes to the program, one of my friend pops
in and I leave with him for a cup of coffee without SAVING the
changes I made.
After few minutes , when I am back, I am not sure what changes I
made previously on the program?
How can I find the changes I have made (without getting out of
this screen)?
Well, here is one simple command line command to achieve this…
Issue : COMP * X

——————————————————————————————————————–
TIP # ISPF

When I issue CUT , I know that the CUT content are placed in a
clipboard. And when I issue PASTE, the clipboard content are
pasted.
But is it possible for me to view/edit the clipboard ?
One can view the clipboard after any valid CUT command was issued.
To view the clipboard, issue : CUT DISPLAY.
Clipboard manager will pop up and gives us options to edit or browse the
content.

——————————————————————————————————————–
TIP # ISPF

Here is another tip on ISPF CUT. I have a dataset with 10,000
lines.I want to cut the first 10 lines and last 10 lines and
paste into another dataset.When I cut the first 10 lines and
then again the last 10 lines ,only the last 10 lines are pasted
into the new dataset.
Is there anyway out (other than doing a 2 cut & paste)?

The answer for the above question is to:
1.first cut 10 lines, then issue CUT APPEND
2.then cut last 10 lines, then issue CUT APPEND
3.When you PASTE it, you got both.
——————————————————————————————————————–
TIP # ISPF

Tired of typing the often-used datasets repeated?!!!
We have seen AUTOTYPE previously. Here is another one that saves lots of key-strokes.
Use NRETRIEV.
How to use it?
1 enter KEYS in the command line,KEYS window will popup
2 set any key to NRETRIEV and exit
3 now when you are in 3.4 or whichever screen you have set the KEYS option, press the
assigned PF keys.
4. Pressing them repeated will bring up one-by-one the last 30 accessed datasets from the reflist.

——————————————————————————————————————–
TIP # ISPF
Here is one simple one…….
I want to search a string like ‘abc’ (including quote).
In my pgm there may be more abc strings.But i don’t want to retrieve all of them.
i need the abc enclosed with quotes.
How to search is in 3.14 option?.
In the ISPF 3.14 , search with ‘’’abc’’’ string.(i.e. with 3 quotes at both sides of the string)

——————————————————————————————————————–
TIP # ISPF
I have to compare one input file field with one output file field. The input file field in is column
1 to 10 and the output file field is in column 40 to 50.
How can I do it?

1. Use the standard 3.13 ISPF option. In the same screen itself, in the command line issue, E
2. then type,
CMPCOLN 40:50
CMPCOLO 1:10
3. press PF3 and exit
4. In the New dataset , type in the output dataset
5. In the Old dataset , type in the input dataset

——————————————————————————————————————–
TIP # ISPF
Is an easy way to search member in Multiple PDS?
Go to 3.4 (where all the datasets will be displayed) .
In the Command line give
Command line==>M memname
This command will not work for the migrated PDS. So ensure all the PDS are in
Disk.
Now the message “MEMBER(S): memname found” will apppear in the right side of
the panel.

——————————————————————————————————————–
TIP # ISPF
I have data which is of length 160. For some reasons, I want to wrap the data in each record to 80
characters and have the next 80 characters in the next line. So basically what I am looking for is ,
“Is there command similar to Wordwrap (as in Notepad or MS WORD) in mainframe?”
Yes, with ISPF, one can wrap the data as required.
To do that,
1.Open the dataset in ISPF EDIT mode.
2.In the first line, issue the line command: TF80 (as in this case I want to wrap to 80 chars per
line)
3.All the subsequent lines will wrap to 80 chars per line.

——————————————————————————————————————–
TIP # ISPF
Here is another tip on ISPF 3.4 option
From the ISPF 3.4 option listing, I can directly Edit/Browse/view the member without listing all
the members and then select the particular member.
To do that,
In the Line command issue, E / (member)
use for Browse (B) and view (V)
Command – Enter “/” to select action Message Volume
——————————————————————————-
E /(MEMBER1)MYID.WORK.SRC NV1E56
***************************** End of Data Set list ****************************

 ——————————————————————————————————————–

If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

You may also like to look at:

Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
SRCHFOR – Mainframe search in PDS – Batch Version
Rename the members in a PDS dataset?
ISPF – STOP THE POP-UP VIEW/EDIT ENTRY PANEL FROM DISPLAYING
COMMAND THAT IS USED TO DELETE ALL LINES FROM A PS/PDS MEMBER
SRCHFOR – Search in PDS members for a word with Mixed case (Upper and Lower)
ISPF Edit primary commands
ISPF Line commands
ISPF COMMANDS – FIND, COPY, CUT, PASTE, MOVE, CREATE, HILITE
ISPF COMMANDS – SORT, LOCATE, RESET, FLIP, COMPARE
ISPF PROFILE
A Few Good Edit Macros
Member Selection in ISPF 3.4
ISPF TIPS
ISPF EDIT MACROS
ISPF EDIT – Primary Commands
REXX TOOL # 02 – FSAVE – Save member opened in VIEW mode
REXX TOOL # 01 – O – Open Any Mainframe Element from any ISPF Screen
REXX – INDEX, POS, SUBSTR, COMPARE
REXX – READ THE DSN PROVIDED AS DD IN JCL
REXX – SEND MULTIPLE ARGUMENTS THROUGH JCL
REXX – HOW TO COMPILE YOUR REXX EXEC
REXX – CHANGE UPPER TO LOWER CASE
REXX – GET LAST 4 DAYS FROM GIVEN DATE
REXX – PANEL Definition
REXX – READ, CREATE AND WRITE DATA TO A DATASET
REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC
Advertisement

Rate this:

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • November 2020
  • July 2020
  • February 2020
  • January 2020
  • September 2019
  • August 2019
  • October 2018
  • April 2018
  • March 2018
  • December 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • May 2016
  • March 2016
  • February 2016
  • January 2016
  • May 2015
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • January 2013
  • December 2012
  • November 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • April 2011
  • March 2011
  • August 2009
  • June 2009
  • April 2009

Categories

  • Azure
  • CA7
  • CICS
  • COBOL
    • Keywords
  • DB2
  • EASYTRIEVE
  • FILEAID
  • FILEMAXX
  • IMS
  • ISPF
  • JCL
  • KNOW YOUR MAINFRAME
  • Mainframe Migration
  • MAINFRAMES
  • Others
  • REXX
  • SDSF
  • SORT
  • Training
  • TSQL
  • VSAM

Meta

  • Register
  • Log in

Create a free website or blog at WordPress.com.

  • Follow Following
    • F1 for Mainframe
    • Join 88 other followers
    • Already have a WordPress.com account? Log in now.
    • F1 for Mainframe
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar