Setting Up and Using DSLIST Customizations and Shared Lists

The Data Set List Utility (Option 3.4) is the "home base" for many mainframe professionals. It's where you find, manage, and organize your files. But did you know you can customize it to fit your workflow? ISPF allows you to change how datasets are displayed, sort them by various attributes, and create "Personal Lists" (also known as Reference Lists) to quickly access frequently used groups of datasets.

This tutorial goes beyond the basics of 3.4 to explore the customization options that can make your daily tasks faster and more efficient.

Customizing the DSLIST View

When you display a list of datasets in Option 3.4, the default view might not show all the information you need, or it might show too much. You can tailor this view using the menu bar at the top of the screen.

The Menu Bar

At the top of the DSLIST panel, you will see a menu bar with options like File, View, Options, and Help. You can access these by pressing F10 (Actions) or by clicking them if your emulator supports it.

View Options

The View menu allows you to toggle between different display formats. Each view serves a specific purpose and shows different levels of detail about your datasets. Understanding when to use each view can significantly improve your productivity.

Short View

The Short view displays only the essential information: dataset name, volume serial number, and the command area (where you can enter line commands). This view is ideal when you need to quickly scan through many datasets or when you're working on a terminal with limited screen space. The Short view minimizes scrolling and allows you to see more datasets at once, making it perfect for rapid navigation and selection.

Use Short view when you know the dataset names and just need to locate them quickly, or when you're performing bulk operations on multiple datasets where detailed attributes aren't necessary. The reduced information density means faster screen refreshes and less visual clutter.

Long View

The Long view expands the display to include technical dataset attributes that are crucial for understanding dataset characteristics. In addition to the dataset name and volume, Long view shows:

  • Record Format (RECFM): Indicates how records are organized in the dataset. Common values include FB (Fixed Block), VB (Variable Block), F (Fixed), and V (Variable). This tells you whether records are fixed-length or variable-length, and whether they're blocked or unblocked.
  • Logical Record Length (LRECL): Shows the length of each logical record in bytes. This is important when working with programs that read or write to the dataset, as they need to know the record length.
  • Block Size (BLKSIZE): Displays the physical block size used for storage. Larger block sizes can improve I/O performance but may waste space if records don't fill blocks efficiently.
  • Data Set Organization (DSORG): Shows whether the dataset is a Partitioned Data Set (PO), Sequential (PS), or VSAM (VS).

Use Long view when you need to understand dataset characteristics for programming, when allocating similar datasets, or when troubleshooting dataset-related issues. The additional attributes help you make informed decisions about dataset usage and compatibility.

Total View

The Total view is essential for storage management and capacity planning. It displays space allocation statistics that help you understand how datasets are consuming storage resources. The Total view shows:

  • Allocated Tracks/Cylinders: The total amount of space reserved for the dataset. This is the space that has been allocated but may not all be in use.
  • Used Tracks/Cylinders: The actual amount of space containing data. The difference between allocated and used space represents wasted or available space.
  • Percentage Used: A quick indicator showing what percentage of allocated space is actually in use. High percentages (over 90%) indicate datasets that may need more space soon.
  • Extents: Shows how many extents (contiguous blocks of storage) the dataset occupies. Many extents can indicate fragmentation and may impact performance.

Use Total view when managing storage capacity, identifying datasets that are running out of space, finding datasets with excessive unused allocation (wasted space), or when planning storage migrations. This view is particularly valuable for system administrators and when performing storage cleanup activities.

The Total view requires additional processing time because ISPF must calculate space usage, so it may be slightly slower than Short or Long views, especially with large numbers of datasets. However, the storage management benefits usually outweigh the minor performance impact.

Sorting the List

By default, ISPF sorts datasets alphabetically by name (ascending order). However, you can sort by any displayed column to organize datasets according to your current needs. Sorting is a powerful way to group related datasets or identify patterns in your data.

To sort, type the SORT command on the Command line followed by the column name. You can also specify sort direction:

text
1
2
3
4
5
6
7
Command ===> SORT VOL (Sorts by Volume Serial - ascending) Command ===> SORT VOL D (Sorts by Volume Serial - descending) Command ===> SORT CRE (Sorts by Creation Date - oldest first) Command ===> SORT CRE D (Sorts by Creation Date - newest first) Command ===> SORT REF (Sorts by Last Referenced Date) Command ===> SORT SIZE (Sorts by Allocated Size - smallest first) Command ===> SORT SIZE D (Sorts by Allocated Size - largest first)

Sorting by Volume Serial (VOL)

Sorting by Volume Serial groups all datasets that reside on the same physical volume together. This is useful when you need to identify which datasets are on a specific DASD volume, which is important for volume management, migration planning, or when troubleshooting volume-related issues. If you're preparing to migrate data from one volume to another, sorting by volume helps you see all datasets that need to be moved together.

Volume-based sorting also helps identify datasets that might benefit from being moved to faster storage devices or when planning storage consolidation. In large environments, datasets may be spread across many volumes, and volume sorting helps you understand the distribution.

Sorting by Creation Date (CRE)

Sorting by Creation Date organizes datasets chronologically, showing when each dataset was originally created. This is valuable for identifying old datasets that might be candidates for archival or deletion, or for finding recently created datasets during troubleshooting. When investigating issues, knowing when datasets were created can help establish timelines and identify what changed when.

Use ascending order (oldest first) to find legacy datasets that may no longer be needed, or descending order (newest first) to see recently created datasets that might be related to current work or recent changes. This sorting is particularly useful during audits or when performing data lifecycle management.

Sorting by Last Referenced Date (REF)

Sorting by Last Referenced Date shows when each dataset was last accessed, read, or modified. This is one of the most powerful sorting options for storage management and cleanup activities. Datasets with very old reference dates (months or years old) are often candidates for archival or deletion, as they may no longer be actively used.

Pro Tip: Sorting by REF (Last Referenced) is an excellent way to find "stale" datasets that haven't been used in a long time, or to quickly find the files you were working on yesterday. Many organizations use REF date sorting to identify datasets that haven't been accessed in over a year for potential archival.

This sorting method helps with capacity management by identifying unused datasets that are consuming storage space. However, be cautious: some datasets may be referenced programmatically or by batch jobs without updating the reference date, so always verify before deleting based solely on reference dates.

Sorting by Size (SIZE)

Sorting by Allocated Size helps you identify the largest datasets, which are often the best candidates for space optimization or compression. Large datasets consume significant storage resources, and identifying them helps prioritize storage management efforts. Use descending order to see the largest datasets first, which is useful when you need to free up space quickly.

Conversely, sorting by size in ascending order helps identify very small datasets, which might be candidates for consolidation or might indicate incomplete or test datasets. Understanding size distribution helps with capacity planning and identifying datasets that might benefit from reorganization.

Other Sorting Options

Depending on your ISPF configuration and the view mode you're using, you may be able to sort by other columns such as Data Set Organization (DSORG), Record Format (RECFM), or other displayed attributes. Experiment with different sort options to find the organization method that works best for your workflow.

Remember that sorting affects only the current display. When you exit and return to DSLIST, it will revert to the default alphabetical sort unless you've saved your preferences in your ISPF profile. Some ISPF configurations allow you to set a default sort order that persists across sessions.

Options Menu

The Options menu provides toggles for specific information that can be displayed or hidden regardless of your current view mode. These options give you fine-grained control over what information appears in your dataset list, allowing you to customize the display to match your immediate needs.

Display Expiration Date

The Display Expiration Date option adds a column showing when each dataset is scheduled to expire. Dataset expiration dates are set when datasets are allocated and are used by automated storage management systems to identify datasets that can be automatically deleted or archived. This option is crucial for storage administrators who need to monitor dataset lifecycles and ensure important datasets don't expire unexpectedly.

When enabled, you'll see expiration dates in a format like YYYY/DDD (year and day of year). Datasets without expiration dates will show as blank or "NONE". Use this option when reviewing datasets before their expiration dates approach, when planning dataset retention, or when investigating why datasets were automatically deleted by storage management systems.

Understanding expiration dates helps you make informed decisions about dataset retention. If you see a dataset with an expiration date approaching and you still need it, you'll need to extend the expiration date using TSO ALLOCATE or dataset utility commands before the expiration occurs.

Display Total Tracks

The Display Total Tracks option forces ISPF to calculate and display space allocation information even when you're not in Total view mode. This gives you space information while maintaining the simpler display format of Short or Long views. This is useful when you need space information occasionally but don't want the overhead of Total view all the time.

When enabled, you'll see allocated tracks, used tracks, and percentage used for each dataset. This option requires additional processing time because ISPF must calculate space usage for each dataset, so there may be a slight delay when displaying large lists. However, the space information is invaluable for storage management tasks.

Use this option when you need to quickly identify datasets that are consuming excessive space or when you're trying to find datasets with available space. It's particularly useful when working in Short or Long view but needing occasional space information without switching views.

Compress Data Set List

The Compress Data Set List option removes blank lines, separators, and extra spacing from the dataset list display. This allows you to fit more datasets on each screen, reducing the need for scrolling and making it easier to see more datasets at once. The compressed view maximizes screen real estate while maintaining readability.

When enabled, the list becomes more compact with datasets displayed closer together. This is especially useful when working with large lists of datasets or when you have limited screen space. The compressed format makes it easier to scan through many datasets quickly and perform bulk operations.

However, some users find the compressed format harder to read, especially when datasets have similar names. If you prefer more visual separation between datasets, you may want to leave this option disabled. The choice is largely a matter of personal preference and depends on your specific workflow needs.

Additional Options

Depending on your ISPF version and configuration, the Options menu may include additional toggles such as displaying catalog information, showing dataset attributes in different formats, or controlling how certain columns are displayed. Explore the Options menu in your environment to discover all available customization features.

Most option settings are saved in your ISPF user profile, so they persist across sessions. Once you configure the options to match your preferences, you won't need to set them again unless you want to change them. This makes it easy to establish a personalized workflow that matches your daily tasks.

Working with Personal Lists (Reflist)

One of the most underused productivity features in ISPF is the Personal List (also referred to as Reference List or Reflist).

Imagine you work on three different projects. Project A has 5 datasets starting with PROJ.A.*. Project B has datasets starting with DEPT.HR.*. Instead of typing these patterns every time, you can save them into lists named "PROJA" and "PROJB".

Creating a Personal List

Creating a Personal List is straightforward and takes just a few steps. The process saves your current dataset list (whatever is currently displayed in DSLIST) into a named list that you can retrieve later. Here's the detailed process:

Step 1: Navigate to Option 3.4 (Data Set List Utility) from the ISPF Primary Option Menu. You can access this by typing 3.4 from the command line or selecting it from the menu.

Step 2: Display the datasets you want to include in your Personal List. You can do this by entering a dataset name pattern in the "Dsname Level" field (e.g., USERID.* to see all your datasets) and pressing Enter. Alternatively, if you want to save the currently displayed list, you can leave the "Dsname Level" field as it is.

Step 3: Once your desired datasets are displayed, access the Reflist function. You can do this in two ways:

  • Use the menu bar: Press F10 (Actions) or click on the menu bar, then select Reflist followed by Save Data Set List.
  • Use the command line: Type REFLIST on the command line and press Enter. This opens the Reference List management dialog.

Step 4: In the Reference List dialog, you'll see options to manage your lists. Select the option to create a new list or save the current list. You'll be prompted to enter:

  • List Name: A short, memorable name for your list (e.g., MYWORK, PROJECTA, DAILY). List names are typically limited to 8 characters and should be descriptive enough to remind you of the list's purpose.
  • Description: An optional longer description that explains what the list contains or when to use it. This helps you remember the list's purpose later, especially if you create many lists.

Step 5: Confirm the save operation. ISPF will save the list to your user profile dataset, making it available for future use. You'll receive a confirmation message when the list is successfully saved.

Important Note: The Personal List saves the dataset names that are currently displayed, not the search pattern you used to find them. This means if you later add new datasets that match the original pattern, they won't automatically appear in the saved list. You'll need to update the list manually by saving it again with the new datasets displayed.

Retrieving a Personal List

Retrieving a saved Personal List is even simpler than creating one. Once you've saved lists, you can quickly access them to display your frequently used datasets without having to remember complex dataset name patterns or search through large catalogs.

Step 1: Navigate to Option 3.4 (Data Set List Utility). You can be on any screen within ISPF; you don't need to be in a specific view.

Step 2: Access the Reflist function. You can do this by:

  • Using the menu bar: Press F10 (Actions) or click the menu bar, then select Reflist.
  • Using the command line: Type REFLIST on the command line and press Enter.

Step 3: In the Reference List dialog, you'll see a list of all your saved Personal Lists. Each list will show its name and description (if you provided one). Navigate through the list using standard ISPF navigation (arrow keys, page up/down, or by typing the list name).

Step 4: Select the list you want to retrieve. You can do this by placing the cursor on the desired list and pressing Enter, or by typing the list name and pressing Enter. The selection method depends on your ISPF configuration and personal preferences.

Step 5: Your DSLIST screen will now populate with only the datasets that were saved in that Personal List. The datasets are displayed exactly as they were when you saved the list, including any sorting or filtering you had applied at that time.

This is powerful because the datasets in a Personal List don't have to share a common naming pattern or any other relationship. You can have completely unrelated datasets like SYS1.PARMLIB (a system library), USER.TEST.COBOL (a user test dataset), and PROD.APPLICATION.DATA (a production dataset) all in the same list. This flexibility allows you to create lists based on your workflow needs rather than technical constraints.

Pro Tip: You can create multiple Personal Lists for different purposes. For example, you might have a "DAILY" list for datasets you use every day, a "PROJECTA" list for all datasets related to a specific project, and a "TROUBLESHOOT" list for datasets you frequently need when investigating issues. Organizing your lists by purpose makes them more useful and easier to manage.

Refmode: List vs. Execute

When you select a Personal List, ISPF's behavior depends on the Refmode setting associated with that list. Refmode determines what happens when you retrieve a Personal List - whether it simply displays the datasets or immediately performs an action on them. Understanding Refmode helps you use Personal Lists more effectively for different scenarios.

List Mode (Default)

List Mode is the default and most commonly used mode. When you retrieve a Personal List in List Mode, ISPF opens the list of datasets in the standard DSLIST view, displaying them exactly as if you had searched for them manually. This allows you to:

  • Browse datasets by placing B (Browse) in the command area next to dataset names
  • Edit datasets by placing E (Edit) in the command area
  • Delete datasets using D (Delete) command
  • Perform any other standard DSLIST operations on the datasets
  • Sort, filter, or further customize the displayed list

List Mode gives you full control over what you do with the datasets in your Personal List. You can work with them individually, perform bulk operations using line commands, or simply review them. This mode is ideal for most use cases where you want flexibility in how you interact with the datasets.

Use List Mode when you need to work with datasets interactively, when you want to perform different operations on different datasets in the list, or when you're not sure exactly what you'll need to do with the datasets. It's the safest and most flexible option.

Execute Mode

Execute Mode is more specialized and immediately executes a predefined command against all datasets in the Personal List when you retrieve it. Instead of displaying the datasets for you to work with, Execute Mode runs the command automatically, which can save time for repetitive tasks.

When you retrieve a Personal List in Execute Mode, ISPF doesn't show you the DSLIST screen. Instead, it processes each dataset in the list according to the command associated with the list. The specific behavior depends on what command is configured, but common uses include:

  • Automatically browsing all datasets in sequence
  • Running a specific TSO command against each dataset
  • Performing batch operations on the list members

Execute Mode is useful when you have a well-defined, repetitive task that you perform regularly on the same set of datasets. For example, if you need to check the contents of the same set of datasets every morning, you could create a Personal List in Execute Mode that automatically opens them for browsing.

Caution: Execute Mode can be powerful but also potentially dangerous if misconfigured. Make sure you understand what command will execute before setting a list to Execute Mode, especially if the list contains production datasets. Always test Execute Mode lists with test datasets first.

Setting and Changing Refmode

You can set or change the Refmode for a Personal List in the Reflist management dialog. When creating or editing a list, you'll see an option to set the Refmode. Most users leave lists in List Mode (the default) unless they have a specific need for Execute Mode functionality.

To change Refmode for an existing list, open the Reflist dialog, select the list you want to modify, and choose the edit or modify option. You can then change the Refmode setting and save your changes. The new Refmode will take effect the next time you retrieve that list.

Remember that Refmode is a property of each individual Personal List, so different lists can have different Refmode settings. You might have some lists in List Mode for flexible use and others in Execute Mode for automated tasks.

Shared Lists

While ISPF doesn't have a "cloud sync" feature to instantly share lists with other users, "Shared Lists" in the mainframe context usually refers to making dataset lists accessible to multiple applications or users via system libraries.

Importing/Exporting Lists

You can export a Personal List to a physical dataset. This allows you to send that dataset to a colleague, who can then import it into their profile.

  • To Export: Use the REFLIST dialog, select a list, and choose the "Save to Data Set" option.
  • To Import: Use the "Retrieve from Data Set" option.

Using ISPF Library Management Services

Advanced users can write REXX scripts that use ISPF Library Management services (like LMINIT, LMOPEN) to read shared datasets containing list information and dynamically build DSLIST views for a team. This is common in large shops where a team needs access to a standard set of 50+ control libraries.

Explain Like I'm 5: Personal Lists

Imagine you have a giant toy box (The Mainframe) with thousands of toys (Datasets).

Usually, to find your toys, you have to shout "Show me all the Red Trucks!" (Typing RED.TRUCKS.*).

Personal Lists are like having a special backpack. You can put your favorite Red Truck, your Blue Ball, and your Green Soldier in the backpack.

Next time you want to play, you don't have to search the whole box. You just open your backpack (Open the Personal List), and all your favorite toys are right there, ready to go!

Frequently Asked Questions

Best Practices for DSLIST Customization

Following best practices helps you get the most value from DSLIST customizations and Personal Lists. These recommendations are based on real-world usage patterns and can help you avoid common pitfalls while maximizing productivity.

View Selection Best Practices

  • Use Short View for Navigation: When you're just trying to find and select datasets quickly, Short view is fastest. Switch to Long or Total view only when you need the additional information.
  • Use Total View Regularly: Make it a habit to periodically view your datasets in Total view to monitor space usage. This helps you catch storage issues before they become problems.
  • Match View to Task: If you're allocating new datasets, use Long view to see attributes of similar datasets. If you're managing storage, use Total view. If you're just browsing, use Short view.

Sorting Best Practices

  • Sort Before Saving Lists: When creating Personal Lists, sort the datasets in the order you'll most often need them. The sort order is preserved when you save the list.
  • Use REF Sorting for Cleanup: Regularly sort by Last Referenced date to identify unused datasets. This is one of the most effective ways to find candidates for archival or deletion.
  • Sort by Size for Capacity Management: When trying to free up space, sort by size in descending order to see the largest datasets first, which offer the biggest opportunities for space recovery.

Personal List Best Practices

  • Use Descriptive Names: Name your Personal Lists clearly so you remember their purpose months later. Names like "DAILY", "PROJECTA", or "TROUBLESHOOT" are better than "LIST1", "LIST2".
  • Keep Lists Current: Update Personal Lists when datasets are added, deleted, or renamed. Outdated lists can be confusing and lead to errors.
  • Don't Over-create Lists: While Personal Lists are useful, having too many can become unmanageable. Create lists for frequently used, stable groups of datasets rather than temporary collections.
  • Use Descriptions: Always add descriptions when creating lists. Future you will thank present you for the context.
  • Review Lists Periodically: Periodically review your Personal Lists and delete ones you no longer use. This keeps your list management clean and efficient.

Options Menu Best Practices

  • Enable Expiration Dates for Storage Management: If you're responsible for storage management, keep expiration dates displayed to monitor dataset lifecycles.
  • Use Compress for Large Lists: When working with many datasets, enable the Compress option to see more datasets per screen and reduce scrolling.
  • Toggle Options as Needed: Don't feel you need to enable all options all the time. Turn on options when you need the information they provide, and turn them off when you don't to improve performance.

Practice Exercises

Master DSLIST customization with these hands-on exercises. Complete them in order, as each builds on concepts from the previous one:

Exercise 1: Exploring View Options

Objective: Understand the differences between view modes and when to use each.

Steps:

  • Navigate to Option 3.4 and display your datasets (you can use your user ID as a pattern, e.g., USERID.*)
  • Switch to Short view and note what information is displayed. Count how many datasets you can see on one screen.
  • Switch to Long view and compare. Note the additional attributes shown (RECFM, LRECL, BLKSIZE, DSORG).
  • Switch to Total view and observe the space information. Identify which dataset uses the most space.
  • Switch back to Short view and note how the display changes.

Reflection: Which view would you use for daily navigation? Which view helps you understand dataset characteristics? Which view helps with storage management?

Exercise 2: Mastering Sorting

Objective: Learn to use sorting to organize and analyze datasets effectively.

Steps:

  • In Option 3.4, display your datasets in Total view.
  • Use SORT SIZE D to sort by size in descending order. Identify your three largest datasets and note their sizes.
  • Use SORT CRE D to sort by creation date (newest first). Find your most recently created dataset.
  • Use SORT CRE (without D) to sort by creation date (oldest first). Find your oldest dataset.
  • Use SORT REF D to sort by last referenced date. Identify datasets you haven't accessed recently (these appear at the bottom if sorted descending, or top if sorted ascending).
  • Use SORT VOL to sort by volume. Count how many different volumes your datasets are spread across.

Reflection: Which sort order is most useful for your daily work? Which helps you identify datasets that might be candidates for cleanup?

Exercise 3: Creating and Using Personal Lists

Objective: Create Personal Lists and understand how they improve productivity.

Steps:

  • In Option 3.4, display a small set of datasets (3-5 datasets you use regularly).
  • Sort them in the order you prefer (perhaps by name or by last referenced date).
  • Create a Personal List named DAILY with a description like "Datasets I use every day".
  • Exit Option 3.4 completely (return to the Primary Option Menu).
  • Return to Option 3.4 and use the REFLIST command to retrieve your DAILY list.
  • Verify that the same datasets appear in the same order as when you saved the list.
  • Add a new dataset to your daily workflow, then update the DAILY list by saving it again with the new dataset included.

Reflection: How much time does using a Personal List save compared to typing dataset name patterns? How could you organize multiple Personal Lists for different purposes?

Exercise 4: Exploring Options Menu

Objective: Understand how Options menu settings affect the display and when to use them.

Steps:

  • In Option 3.4, display your datasets in Short view.
  • Enable "Display Total Tracks" from the Options menu. Note how the display changes.
  • Disable "Display Total Tracks" and enable "Display Expiration Date". Observe the new column.
  • Enable "Compress Data Set List" and note how many more datasets fit on the screen.
  • Disable "Compress Data Set List" and compare the display spacing.
  • Experiment with different combinations of options to find your preferred configuration.

Reflection: Which options provide information you actually use? Which options improve your productivity? Which options can you leave disabled to improve performance?

Exercise 5: Complete Workflow Integration

Objective: Combine all customization features into an efficient workflow.

Steps:

  • Create a Personal List for a project you're working on (name it something like PROJECT1).
  • Configure your preferred view mode, sort order, and options menu settings.
  • Save these settings (they should persist in your profile).
  • Exit ISPF completely and log back in.
  • Return to Option 3.4 and retrieve your PROJECT1 list.
  • Verify that your view preferences are still set as you configured them.
  • Use the sorted, customized list to perform a real task (browse a dataset, edit a member, etc.).

Reflection: How does having a customized, saved list improve your efficiency? What other workflows could benefit from Personal Lists?

Test Your Knowledge

1. Which command is used to open the Reference List manager dialog?

  • LIST
  • REFLIST
  • SAVELIST
  • GETLIST

2. In DSLIST, what does the "Total View" typically display?

  • Only dataset names
  • Dataset names and their allocated space (tracks/cylinders)
  • Dataset names and their creation dates
  • Dataset names and their last reference dates

3. How can you sort a dataset list by Volume Serial?

  • Type SORT VOL on the command line
  • Right-click the Volume column
  • Type ORDER VOL
  • It is not possible to sort by Volume

4. Where are your Personal Lists stored?

  • In a temporary memory buffer
  • In your ISPF User Profile dataset
  • In the system master catalog
  • On a shared network drive

5. What option in the DSLIST "Options" menu allows you to see the expiration date of datasets?

  • Show Dates
  • Display Expiration Date
  • Display Catalog Information
  • View Details

Related Concepts