GLob subcommand—Toggle expansion of metacharacters

Purpose

Use the GLob subcommand to toggle globbing (the expansion of metacharacters in file names) for the MDelete, MGet, and MPut subcommands.

Format

Read syntax diagramSkip visual syntax diagramGLob

Parameters

There are no parameters for this subcommand.

Examples

Assume that the files m1 and m1* exist in the directory /u/user33/mpp1.

 Command:
pwd
 >>> PWD
 257 "/u/user33/mpp1" is the HFS working directory
 
 Command:
lpwd
 Local directory name set to hierarchical file /u/user33
 
 Command:
prompt
 Interactive mode is off
 Command:
mget m1*
 >>> PORT 9,67,113,57,4,43
 200 Port request OK.
 >>> NLST m1*
 125 List started OK
 250 List completed successfully.
 >>> PORT 9,67,113,57,4,44
 200 Port request OK.
 >>> RETR m1
 125 Sending data set /u/user33/mpp1/m1
 250 Transfer completed successfully.
 200 bytes transferred in 0.050 seconds.  Transfer rate 4.00 ...
Kbytes/sec.
 >>> PORT 9,67,113,57,4,45
 200 Port request OK.
 >>> RETR m1*
 125 Sending data set /u/user33/mpp1/m1*
 250 Transfer completed successfully.
 200 bytes transferred in 0.020 seconds.  Transfer rate 10.00 ...
Kbytes/sec. 
 Command:
delete /u/user33/m1
 >>> DELE /u/user33/m1
 250 /u/user33/m1 deleted.
 
 Command:
delete /u/user33/m1*
 >>> DELE /u/user33/m1*
 250 /u/user33/m1* deleted.
 
 Command:
glob
 Globbing off
 
 Command:
mget m1*
 >>> PORT 9,67,113,57,4,46
 200 Port request OK.
 >>> RETR m1*
 125 Sending data set /u/user33/mpp1/m1*
 250 Transfer completed successfully.
 200 bytes transferred in 0.010 seconds.  Transfer rate 20.00 ...
Kbytes/sec.

With globbing off, at most one file will match the pattern. Also, the NLST command is not sent to look for pattern matches.

Usage

GLob acts as a toggle that turns metacharacter expansion on or off. By default, GLob is on.

Context

For more information about globbing, see the z/OS UNIX System Services User's Guide.