PROLIB command examples

This section provides several PROLIB command examples.

The following example creates a standard procedure library called app.pl in your current directory:

prolib app.pl -create

The following example adds all the r-code files in the current directory that begin with the letters "sys" to the standard procedure library app.pl. In this example, the r-code files are in a directory, so the operating system processes the wild card argument, as shown:

prolib app.pl -add sys*.r

The following example deletes all members ending with the letters "dev.r" from the standard procedure library app.pl and lists all of the members in the library. In this example, the members are in the app.pl library, so PROLIB processes the wild card argument. This requires escaping the *dev.r argument. Your operating system might use different techniques to escape wild cards. On UNIX, this means placing quotes around it, as shown:

prolib app.pl -delete "*dev.r" -list

The following example replaces the members appmenu.r and apprept.r in the standard procedure library app.pl, then compresses the library to free up unused disk space:

prolib app.pl -replace appmenu.r apprept.r -compress

The following example creates a standard procedure library called app.pl in your current directory, adds all the r-code files in the current directory that begin with the letters "sys" to the library app.pl, and generates a memory-mapped procedure library called app_map.pl:

prolib app.pl -create -add sys*.r -makeshared app_map.pl