Answer to question 1

All locate targets produce the results as stated in the question assignment !

For those that didn't come to this conclusion, we suggest to try them out again.  Verify however that you don't use a PROFILE XEDIT or other macro that changes the behaviour of XEDIT...

Pointing seems not very well known by some users. It is a very useful feature of XEDIT.  Therefore, let's review it briefly:

If you use the .xyz command on the prefix of a line, then XEDIT remembers that line as 'pointed to' by label xyz.  This label can, from then on, be used as a target specification in all commands that accept targets as parameters.  You can for example issue the command locate .xyz command (or just .xyz for short) from the command line to go to the pointed line.

Another case where the label can be used is for example:

    change /-/+/.xyz *

This will change all minus signs into plus signs starting from the current line up to the target which is the line pointed by .xyz, and this even in backward direction if the pointed line is prior to the current line !

You can also label a line via the [set] point .label  command.  It labels the current line and is handier to use in XEDIT macros.

This feature is especially useful when editing large files or procedures, where you could for example label your subroutines (a pointing label can have from 1 to 8 characters, except via the prefix where you only have the place for 4 characters).

It's a pity that XEDIT doesn't remember the labels or pointers when you leave XEDIT.  It may be a good exercise to write a macro that replaces the standard FILE, SAVE or QUIT commands, and does the save of the labels in GLOBALV variables.  When the same file is edited later, the labels are restored via the PROFILE XEDIT.  Who is coming up with a new goodie that does this ?

In practice, we personally use pointing as follows:

The DELALL XEDIT  goodie uses the pointing technique.  This macro allows you to delete all records that contain a certain string.

Use the backward navigation button of your browser to return to the lesson text.