Page 1 of 1

How to locate changed line in JCL

PostPosted: Mon Oct 14, 2013 12:35 pm
by Chits
Hi,

I have changed some parameters in JCL using 'C ALL <<string>>'. This command changed some lines in JCL.
Now I have to directly go to that line, don't want to do multiple times F8/page down. Also I don't know the line number. How would I proceed?

Thanks,
Chits

Re: How to locate changed line in JCL

PostPosted: Mon Oct 14, 2013 1:31 pm
by prino
And what does executing an ISPF editor command on a member have to do with JCL?

Re: How to locate changed line in JCL

PostPosted: Mon Oct 14, 2013 3:09 pm
by Stefan
As executing a CHANGE command flags the affected lines with ==CHG> you can use the LOCATE primary command to position to these special lines. Simply type "l chg".
If it is important to check the changes immediately and the number of changes is not so high I would do it in a slightly different way: First issue a "FIND ALL" command. Then enter a simple CHANGE command without using the ALL option. This causes the editor to change the first occurrence of the string and to scroll down the view so that the affected line is the second line on the screen. Now you might inspect the effect of the data change before continuously pressing the F6 key which usually is assigned to the RCHANGE editor command.

Re: How to locate changed line in JCL

PostPosted: Tue Oct 15, 2013 1:05 am
by Pedro
An alternate approach:

then
C 'a'  'b' ALL

The result is that only your changed lines are shown. You can issue L5 or F5 line commands to see adjacent lines.

Stefan, "FIND ALL" does not do what you imply it does. I think the user should issue RESET in your scenario.