

Programmer Utilities › Introduction › Overview › Using List Processing
Using List Processing
Toolkit’s list processing capabilities give you significant leverage: many instructions can be executed as the result of a single request. For example:
To move a selected list of objects from one library to another you could:
- Create a list of objects using the Toolkit command Build Object List (YBLDOBJLST).
- Remove the ones you do not want using the Toolkit command Edit Object List (YEDTOBJLST).
- Use the Toolkit command Move Object (YMOVOBJ) to move the objects remaining in the list.
To stop and restart journalling a group of files (perhaps so as to carry out a physical file reorganization using the Reorganize Physical file command (RGZPFM). You could:
- Create a list of the files, using the Toolkit command Build Database File List (YBLDDBFLST).
- Trim the list if necessary, using the Toolkit Edit commands Database File List (YEDTDBFLST), the Filter Database List (YFLTDBFLST), or both.
- Then use the Toolkit command Execute Database File List (YEXCDBFLST), to stop journalling, reorganize the files, and then restart journalling.
If you expand your application, and wish to have additional files journalled, all you have to do is amend the list of files.
To recompile a group of programs that all reference a given program, you could:
- Use the Toolkit utility Scan Source (YSCNSRC) to build a list of the source members of the programs that call the program.
- Change the source, making use of the Toolkit Edit command Member List (YEDTMBRLST), to present each source member in turn for editing with the i OS utility Start SEU (STRSEU).
- Then use the Toolkit command Create Objects (YCRTOBJ), to recompile all of the changed source members.
Copyright © 2014 CA.
All rights reserved.
 
|
|