ISPF Tips.
Forum rules
All of these Tips/Tuning-suggestions should be tested your own, at your shop, prior to use in Prod.
All of these Tips/Tuning-suggestions should be tested your own, at your shop, prior to use in Prod.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
18. To show 'PF Keys' at bottom of ISPF panel(s) - use command ‘PFSHOW ON’. To hide(remove) them, issue ‘PFSHOW OFF’.
There is another extension of PFSHOW is - PFSHOW TAILOR - it displays a panel that lets you specify the set of function keys (primary, alternate, or all) for which definitions are to be displayed and the number of keys per line to display in each function key definition line.
If you use PFSHOW, it toggles through the different forms of the function key area. The first time you enter the PFSHOW command (without parameters), the long form of the function key area is displayed. If you enter the command again, the short form is displayed. If you enter the command once again, the keys are removed from the display. Therefore, if you continue to enter the command, the different choices are toggled.
There is another extension of PFSHOW is - PFSHOW TAILOR - it displays a panel that lets you specify the set of function keys (primary, alternate, or all) for which definitions are to be displayed and the number of keys per line to display in each function key definition line.
If you use PFSHOW, it toggles through the different forms of the function key area. The first time you enter the PFSHOW command (without parameters), the long form of the function key area is displayed. If you enter the command again, the short form is displayed. If you enter the command once again, the keys are removed from the display. Therefore, if you continue to enter the command, the different choices are toggled.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
19. While you're in an EDIT mode and want to identify the changes that have been done since the last SAVE command was issued - issue “COMPARE SESSION” on the command line and take it from there.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
20. Find last occurrence of string "aaa":
The below command, when issued on command line, finds last occurrence of string aaa.
Again, note that the arguments are not positional and may be specified in any order desired - that means, “F LAST aaa” and “F aaa LAST” will behave same.
The below command, when issued on command line, finds last occurrence of string aaa.
Code: Select all
F LAST aaa
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
21. Finds first occurrence of string aaa within the lines labeled:
The below command, when issued on command line, Finds first occurrence of string aaa within the lines labeled .X and .Y.
Note that the arguments are not positional and may be specified in any order desired - that means, “F X. Y. aaa” and “F aaa X. Y.” will behave same.
The below command, when issued on command line, Finds first occurrence of string aaa within the lines labeled .X and .Y.
Code: Select all
F aaa X. Y.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
22. Find the previous occurrence of string "aaa":
The below command, when issued on command line, finds the previous occurrence of string "aaa".
It should be noted that the arguments are not positional and may be specified in any order desired - that means, “F PREV aaa” and “F aaa PREV” will behave same.
The below command, when issued on command line, finds the previous occurrence of string "aaa".
Code: Select all
F PREV aaa
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
23. Find hexadecimal values using ISPF commands :
The below command, when issued on command line, finds hexadecimal value ‘123C’
The below command, when issued on command line, finds hexadecimal value ‘123C’
Code: Select all
F X'123C'
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Website Team
- Posts: 102
- Joined: Sun May 12, 2013 12:33 am
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
Glad we had been helpful - and yup, Thanks for the feedback!
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
24. Following command will change all non-space characters to spaces in columns 15 through 18. One can amend it for your own requirement, as required:
Code: Select all
C P'^' ' ' 15 18 ALL
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
25. Following command changes all lower-case characters into upper case:
One can also use the line command ‘LC’ or ‘UC’, or as block commands ‘LCC’ and ‘UCC’ for this very purpose.
Code: Select all
C P'<' P'>' ALL
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
26. Following command changes the data to spaces between column 10 through 16. One can amend it as per his need:
Code: Select all
C P'=' ' ' 10 16 ALL
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: ISPF Tips.
27. 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.
However, if you precede the commands with '&", the command entered will not disappear and stay on the screen. For example:
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.
However, if you precede the commands with '&", the command entered will not disappear and stay on the screen. For example:
Code: Select all
COMMAND ===> &C 'TESTPROG' 'PRODPROG' SCROLL ===> CSR
****** ************************ TOP OF DATA **************
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. TESTPROG.
000003 DATE-WRITTEN. NOV 2013.
'
'
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: ISPF Tips.
28.There might be a scenario where you type in lot of things in view mode but later realise you need to save them.
There are two ways of saving the modified data in view mode
1.You could either CUT the data and come back in edit mode and paste and save it or
2.Use this command on command line
OR
There are two ways of saving the modified data in view mode
1.You could either CUT the data and come back in edit mode and paste and save it or
2.Use this command on command line
Code: Select all
REPL .ZF .ZL 'PS FILE NAME'
Code: Select all
REPL .ZF .ZL <PDS MEMBER NAME>
zprogrammer
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: ISPF Tips.
29.How to tag or comment a group of continuous data
Also This command you can use to comment a section or Para in cobol rather copy/paste
Code: Select all
****** ***************************** Top of Data ******************************
000100 Pandora
000200 Testing
000300 something
****** **************************** Bottom of Data ****************************
Code: Select all
****** ***************************** Top of Data ******************************
C''''' ' PADDED '
OO Pandora
Testing
OO something
****** **************************** Bottom of Data ****************************
Code: Select all
****** ***************************** Top of Data ******************************
000010 ' PADDED '
000100 Pandora ' PADDED '
000200 Testing ' PADDED '
000300 something ' PADDED '
****** **************************** Bottom of Data ****************************
zprogrammer
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: ISPF Tips.
30.Like REPL there is also CREATE
You could use as
Or
You could use as
Code: Select all
CRE .ZF .ZL <member name>
Code: Select all
CRE .ZF .ZL 'PS file name'
zprogrammer
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: ISPF Tips.
31.Text Flow command TF
Output
Code: Select all
****** ***************************** Top of Data ******************************
000100 TEST1,
000200 TEST2,
000300 TEST3,
000400 TEST4,
000500 TEST5,
000600 TEST6,
****** **************************** Bottom of Data ****************************
Code: Select all
****** ***************************** Top of Data ******************************
TF30 TEST1,
000200 TEST2,
000300 TEST3,
000400 TEST4,
000500 TEST5,
000600 TEST6,
****** **************************** Bottom of Data ****************************
Code: Select all
****** ***************************** Top of Data ******************************
000100 TEST1, TEST2, TEST3, TEST4,
000200 TEST5, TEST6,
****** **************************** Bottom of Data ****************************
zprogrammer
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Re: ISPF Tips - Two very handy ISPF commands
32. MOVE/COPY a line to multiple destinations(zOS 1.10 and above)
When you would like to MOVE/COPY a source line to multiple destination lines, you can suffix K to the A,B,O and OO commands. For example, to copy (CC) a block of COBOL code to multiple target destinations, you'd type AK, AK, AK,... line commands followed by A line command on the final destination.
Hiding excluded lines(zOS 1.6 and above)
While preparing a multi-step job or a large JCL, like a LOAD job, you may want to exclude lines and hide them as well. ISPF also has the HIDE command to hide excluded lines.
When you would like to MOVE/COPY a source line to multiple destination lines, you can suffix K to the A,B,O and OO commands. For example, to copy (CC) a block of COBOL code to multiple target destinations, you'd type AK, AK, AK,... line commands followed by A line command on the final destination.
Hiding excluded lines(zOS 1.6 and above)
While preparing a multi-step job or a large JCL, like a LOAD job, you may want to exclude lines and hide them as well. ISPF also has the HIDE command to hide excluded lines.
Last edited by Anuj Dhawan on Tue Mar 11, 2014 11:30 pm, edited 1 time in total.
Reason: Added the serial number "32".
Reason: Added the serial number "32".
-
- Global Moderator
- Posts: 838
- Joined: Wed Sep 11, 2013 3:57 pm
Re: ISPF Tips.
the TF command is one of the most unfriendly ones
NO permanent damage will be done ...
but most of the times the unwary user will have to CANCEL the edit session and start over again
if somebody feels that it is necessary to use it TURN RECOVERY ON
and the acronym TF does not mean Text Formatting, but Text Flow :ugeek:
NO permanent damage will be done ...
but most of the times the unwary user will have to CANCEL the edit session and start over again
if somebody feels that it is necessary to use it TURN RECOVERY ON
and the acronym TF does not mean Text Formatting, but Text Flow :ugeek:
z/OS V1R12.0 ISPF Edit and Edit Macros SC34-4820-09.
The TF (text flow) line command restructures paragraphs. This is sometimes necessary after deletions, ...
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute