词条 | Support programs for OS/360 and successors | ||||||||||||||||||
释义 |
This article discusses support programs included in or available for OS/360 and successors. IBM categorizes some of these programs as utilities[1]{{efn|subdivided into Data Set Utilities, System Utilities and Independent Utilities.}} and others as service aids;[2] the boundaries are not always consistent or obvious. Many, but not all, of these programs match the types in utility software. The following lists describe programs associated with OS/360 and successors. No DOS, TPF or VM utilities are included. History/Common JCLMany of these programs were designed by IBM users, through the group SHARE, and then modified or extended by IBM from versions originally written by a user. These programs are usually invoked via Job Control Language (JCL). They tend to use common JCL DD identifiers (in the OS, now z/OS operating systems) for their data sets:
Dataset utilitiesIDCAMSIDCAMS ("Access Method Services") generates and modifies Virtual Storage Access Method (VSAM) and Non-VSAM datasets. IDCAMS was introduced along with VSAM in OS/VS; the "Access Method" reference derives from the initial "VSAM replaces all other access methods" mindset of OS/VS. IDCAMS probably has the most functionality of all the utility programs, performing many functions, for both VSAM and non-VSAM files. The following example illustrates the use of IDCAMS to copy a dataset to disk. The dataset has 80-byte records, and the system will choose the block size for the output: In the example above, SYSIN control cards are coming from an in-stream file, but you can instead point to any sequential file or a PDS member containing control cards or a temporary data-set, if you wish. Example of using SYSIN files would be something like this: or this: IEBCOMPRIEBCOMPR compares records in sequential or partitioned data sets. The IEBCOMPR utility is used to compare two sequential or partitioned datasets. This data set comparison is performed at the logical record level. Therefore, IEBCOMPR is commonly used to verify that a backup copy of a data set is correct (exact match to the original). During processing, IEBCOMPR compares each record from each data set, one by one. If the records are unequal, IEBCOMPR lists the following information in the SYSOUT:
When comparing sequential data sets, IEBCOMPR considers the data sets equal if the following conditions are met:
For partitioned data sets, IEBCOMPR considers the data sets equal if the following conditions are met:
If ten unequal comparisons are encountered during processing, IECOMPR terminates with the appropriate message. Note: IEBCOMPR is not a very flexible or user-friendly compare program. It can't restrict the comparison to only certain columns, it can't ignore differences in white space, it doesn't tell you where in the record the difference occurs, and it halts after 10 differences. On the other hand, it is fast, and it is present on all IBM mainframes. So it is very useful when an exact match is expected, such as comparing load modules that have not been reblocked, or checking that a copy worked properly. For comparisons of programs or reports, the ISPF SuperC (ISRSUPC) compare program is often used instead. IEBCOPYIEBCOPY copies, compresses and merges partitioned data sets. It can also select or exclude specified members during the copy operation, and rename or replace members. Some of the tasks that IEBCOPY can perform include the following:
For the IEBCOPY utility, the required job control statements for a copy are as follows: The MYDD1 and MYDD2 DD statements are names chosen by the user for the partitioned input and output data sets, respectively; The defaults are SYSUT1 and SYSUT2. You can use any valid DDNAME for these two DD statements. These DDNAMEs are specified in the utility control statements to tell IEBCOPY the name of the input and output data sets. You only need one DD statement for a PDS to be compressed. IEBDGIEBDG ('Data Generator') creates test datasets consisting of patterned data. Control statements define the fields of the records to be created, including position, length, format, and initialization to be performed. IEBDG can use an existing dataset as input and change fields as specified in the control statements, for example replacing a name field by random alphabetic text. The contents of each field may be varied for each record, for example by rotating the characters in an alphanumeric field left or right for each subsequent record. Example: IEBEDITIEBEDIT selectively copies portions of JCL. An example of an IEBEDIT program: In this example, data set xxxxx.yyyyy.zzzzz should contain job(s) (which should include steps named STEP5, STEP10, and STEP15). This IEBEDIT routine copies the selected steps of the job onto the SYSUT2 output file (in this example, the internal reader. The syntax of the EDIT statement is:
Default: If START is omitted and only one EDIT statement is provided, the first job encountered in the input data set is processed. If START is omitted from an EDIT statement other than the first statement, processing continues with the next JOB statement found in the input data set.
When coded with TYPE=POSITION, STEPNAME specifies the first job step to be placed in the output data set. Job steps preceding this step are not copied to the output data set. When coded with TYPE=INCLUDE or TYPE=EXCLUDE, STEPNAME specifies the names of job steps that are to be included in or excluded from the operation. For example, STEPNAME=(STEPA,STEPF-STEPL,STEPZ) indicates that job steps STEPA, STEPF through STEPL, and STEPZ are to be included in or excluded from the operation. If STEPNAME is omitted, the entire input job whose name is specified on the EDIT statement is copied. If no job name is specified, the first job encountered is processed.
Default: The resultant output is listed in the message data set. See here for more info: IEBGENERIEBGENER copies records from a sequential dataset, or creates a partitioned dataset. Some of the tasks that IEBGENER can perform include the following:
An example of an IEBGENER program to copy one dataset to another: For straight copy tasks, the sort program can often do these faster than IEBGENER. Thus many mainframe shops make use of an option that automatically routes such tasks to the sort ICEGENER program instead of IEBGENER. On some systems it is possible to send email from a batch job by directing the output to the " It is also possible to attach files while sending the email from Mainframe. IEBIMAGEIEBIMAGE manipulates several types of definitions (AKA images) for the IBM 3800 laser printing subsystem and the IBM 4248 printer. Common uses are for forms control buffers (FCBs), character arrangement tables, character definitions and images of forms to be printed on the output along with the text, for company logos to be printed on the page, or just to print 'graybar' pages (alternating gray & white horizontal backgrounds, to match the previous greenbar paper). With this utility, many different forms or logos could be stored as images, and printed when needed, all using the same standard blank paper, thus eliminating the need to stock many preprinted forms, and the need for operators to stop the printer and change paper. IEBISAMIEBISAM unloads, loads, copies and prints ISAM datasets. Extracted from IBM manual SC26-7414-08 z/OS DFSMSdfp Utilities: The IEBISAM program is no longer distributed. Starting in z/OS V1R7, ISAM data sets can no longer be processed (created, opened, copied or dumped). ISAM data sets that are still in use must be converted to VSAM key-sequenced data sets. Prior to z/OS V1R7, you could use access method services to allocate a VSAM key-sequenced data set and copy an ISAM data set into it. IEBPTPCHIEBPTPCH ("PrinT and PunCH") prints or punches records from a sequential or partitioned dataset. Some of the tasks that IEBPTPCH can perform include the following:
Empty dataset check: If dataset to be checked is empty then RC=4 else 0. IEBTCRINRead records from a 2495 Tape Cartridge Reader. IEBUPDATChanges records in a sequential dataset or in a member of a partitioned dataset, replaced by, but not compatible with, IEBUPDTE. IEBUPDTEIEBUPDTE ("UPDaTE") incorporates changes to sequential or partitioned datasets. The UNIX Some programmers pronounce it "I.E.B. up-ditty". The IEBUPDTE utility is used to maintain source libraries. Some of the functions that IEBUPDTE can perform include the following:
IEBUPDTE is commonly used to distribute source libraries from tape to DASD. IEBUPDTE uses the same job control statements required by most IEB-type utilities. The only exceptions are as follow:
The job control used by IEUPDTE are as follows: Scheduler utilitiesIEFBR14{{Main|IEFBR14}}IEFBR14 is a dummy program, normally inserted in JCL when the only desired action is allocation or deletion of datasets. An example of an IEFBR14 step: The calling sequence for OS/360 contained the return address in Register 14. A branch to Register 14 would thus immediately exit the program. However, before and after executing this program, the operating system would allocate & deallocate datasets as specified in the DD statements, so it is commonly used as a quick way to set up or remove datasets. It consisted initially as a single instruction a "Branch to Register" 14. The mnemonic used in the IBM Assembler was BR and hence the name: IEF BR 14. IEF is, of course, the "prefix" of OS/360's "job management" subsystem. This single instruction program had an error in it — it didn't set the return code. Hence a second instruction had to be added to clear the return code so that it would exit with the correct status. There was an additional error reported and fixed by IBM on this now two instruction program. This error was due to the IEFBR14 program not being link-edited as reenterable (simultaneously usable by more than one caller). Some hackers have taken IEFBR14 and changed the BR 14 instruction to BR 15, thereby creating "the shortest loop in the world", as register 15 contains the address of the IEFBR14 module itself, and a BR 15 instruction would simply re-invoke the module, forever. System utilitiesThese utilities are normally used by systems programmers in maintaining the operation of the system, rather than by programmers in doing application work on the system. ICKDSFICKDSF ("Device Support Facility") installs, initializes and maintains DASD, either under an operating system, or standalone. IEHATLASAssign alternate tracks to defective tracks. IEHDASDRIEHDASDR (“Direct Access Storage Dump and Restore”), an older program not found in the current z/OS manuals, dumps datasets from disk to a printer or backup and restores them from backups. IEHDASDR was removed in MVS/XA.[3] IEHINITTIEHINITT ("INITialize Tape") initializes tapes by writing tape labels. Multiple tapes may be labeled in one run of the utility. IBM standard or ASCII labels may be written. An example of an IEHINITT program: This example will label 3 tapes on a 3490 magnetic tape unit. Each tape will receive an IBM standard label. The VOLSER will be incremented by one for each tape labeled. Each tape will be rewound and unloaded after being labeled. IEHIOSUPUpdate TTR links for type IV Supervisor Call (SVC) routines in SYS1.SVCLIB. Not applicable to OS/VS2 or later. IEHLISTIEHLIST is a utility used to list entries in a Partitioned Dataset (PDS) directory or to list the contents of a Volume Table of Contents (VTOC). The IEHLIST utility is used to list the entries contained in any one of the following:
An example of an IEHLIST program: This job will produce a formatted listing of the PDS directory of the PDS named xxxx.yyyy.zzzz. An example of an IEHLIST program to list a VTOC is very similar: IEHMOVEIEHMOVE moves or copies collections of data. However, DFSMS (System Managed Storage) environments are now common, and IBM does not recommend using the IEHMOVE utility in those. A move differs from a copy in that following a move the original data set is deleted, or scratched. Some of the tasks that IEHMOVE can perform include the following:
On the surface, IEHMOVE may seen redundant to the IEBGENER and IEBCOPY utilities. However, IEHMOVE is more powerful. The main advantage of using IEHMOVE is that you do not need to specify space or DCB information for the new data sets. This is because IEHMOVE allocates this information based on the existing data sets. Another advantage of IEHMOVE is that you can copy or move groups of data sets as well as entire volumes of data. Because of the ease in moving groups of data sets or volumes, the IEHMOVE utility is generally favored by systems programmers. A sample IEHMOVE job: The DD statements for IEHMOVE, other than SYSPRINT and SYSIN, refer to DASD or magnetic tape volumes instead of individual data sets. However, referencing volumes can pose a problem, since specifying The SYSUT1 DD statement specifies a DASD volume where three work data set required by IEHMOVE are allocated. You must specify unit and volume information for this DD statement. IEHMOVE was one of the first systems to be developed in PL/S. In this example, three sequential data sets (SEQSET1, SEQSET2, and SEQSET3) are moved from one disk volume to three separate disk volumes. Each of the three receiving volumes is mounted when it is required by IEHMOVE. The source data sets are not cataloged. Space is allocated by IEHMOVE. IEHPROGMIEHPROGM builds and maintains system control data. It is also used for renaming and scratching (deleting) a data set. Some of the tasks that IEHPROGM can perform include the following:
For cataloging: IFHSTATRSelect and format SMF records for tape errors. Independent UtilitiesThese programs do not run under the control of an operating system IBCDASDFormat direct access volumes and assign alternate tracks. IBCDMPRSDump and restore direct access volumes. IBCRCVRPAssign alternate tracks, recover and replace data. ICAPRTBLLoad Forms Control Buffer (FCB) and Universal Character Set (UCS) buffer on printer. Service AidsThese are utility program that IBM documents in service aids or diagnosis[4] manuals. The original OS/360 Service aids had names beginning with IFC and IM*, but IBM changed the naming convention to HM* for OS/VS1 and to AM* for OS/VS2. IBM did not change the IFC convention. IFCDIPOOInitializes the SYS1.LOGREC data set. IFCEREPOSummarizes and prints records from the SYS1.LOGREC error recording data set. GTF (Generalized Trace Facility)Traces selected system events such as SVC and I/O interruptions. IMAPTFLEGenerates JCL needed to apply to a PTF and/or applies the PTF. The functions of this program have been subsumed by SMP. IMASPZAPVerifies and/or replaces instructions and/or data in a load module or program object IMBLISTFormats and prints object modules, load modules, program objects and CSECT identification records. IMBMDMAPMaps load modules. The functions of this program have been subsumed by IMBLIST. IMCJQDMPStand-alone program to format and print the system job queue. Not applicable to MVS. IMCOSJQDFormat and print the system job queue. Not applicable to MVS. IMDPRDMPFormats and prints dumps, TSO swap data set, and GTF trace data. IMDSADMPStand-alone program to produce a high-speed or low-speed dump of main storage. Miscellaneous supporting programs{{anchor|IBM SORT}}SORTThe Sort/Merge utility is a program which sorts records in a file into a specified order, or merge pre-sorted files. It is very frequently used; often the most commonly used application program in a mainframe shop. Modern sort/merge programs also can select or omit certain records, summarize records, remove duplicates, reformat records, and produce simple reports. Sort/merge is important enough that there are multiple companies each selling their own sort/merge package for IBM mainframes. IBM's original OS/360 sort/merge program, 360S-SM-023, program name IERRCO00 (alias SORT), supported only IBM's first-generation direct-access storage devices (DASD){{efn|The manual lists capacity information for 2311 and 2314 disks and 2301 drum, but does not state that those are the only DASD supported.}} and tapes (2400). Support for second-generation disk drives was provided by IBM program products such as 5734-SM1 and the later 5740-SM1 (DFSORT, alias ICEMAN, also SORT). SORT is frequently executed as a stand-alone program, where it normally reads input from a file identified by DD The operation of SORT is directed by control statements, which are largely compatible among various IBM and third-party sort programs. The Keys can be any combination of EBCDIC or ASCII character data, zoned or packed-decimal, signed or unsigned fixed-point binary, or hexadecimal floating-point. Keys can be located anywhere in the record and do not have to be contiguous. Sorting can be specified on any combination of ascending and descending sequence by key.[5] The OS/360 sort program, IERRCO00, operates by dividing the input data into sections, sorting each section in main memory, and writing the sorted section to intermediate datasets on either direct-access storage devices (DASD) or magnetic tape. Final merge phases then merge the sections to produce the sorted output. SORT uses one of a number of techniques for distributing the sections among secondary storage devices. Usually SORT can choose the optimal technique, but this can be overridden by the user.[6] SORT has three techniques that can be used if the intermediate storage is tape, and two if disk.[7] The tape techniques are:
The disk techniques are:
LinkersOS/360 had only the Linkage editor, available in several configurations. DFSMSdfp added the Binder as an alternatives for load modules, and as the only option for program objects. Linkage EditorThe Linkage editor creates and replaces load modules in a partitioned data set from a combination of control cards, object modules other load modules. It can rename or replace a control section (CSECT) and perform several other miscellaneous functions. It was originally available in several configurations depending on storage requirement, but the E level Linkage Editor is no longer available and the F level Linkage Editor is now known simply as the Linkage Editor. In z/OS the Linkage Editor is only present for compatibility. BinderThe binder performs the same functions as the Linkage Editor. In addition, it supports a new format, the program object, which is the functional equivalent of a load module in Partitioned Data Set Extended (PDSE), with many additional capabilities. CompilersEach programming language used in a computer shop will have one or more associated compilers that translate a source program into a machine-language object module. Then the object module from the compiler must be processed by the linkage editor, IEWL, to create an executable load module. IGYCRCTL is a common example of a compiler; it is the compiler for the current IBM Enterprise COBOL for z/OS product. (There have been several previous IBM COBOL compilers over the years, with different names.) There are many other compilers for various other programming languages. IETASMAssembler (E) was intended for OS/360 running in very small machines. IEUASMAssembler (F) was intended for normal OS/360 installations. IFOX00Assembler (XF) was the system assembler for OS/VS1 and OS/VS2, replacing Assembler (E) and (F), although it was not fully compatible with them. IBM soon made Assembler (XF) the system assembler for DOS and VM as well. IEV90Assembler (H) and Assembler (H) Version 2 are program product assemblers that are generally faster than Assemblers E, F, and XF, although not fully compatible with any of them. ASMA90IBM High Level Assembler (HLASM) is essentially a new version of Assembler (H) Version 2 and is the only assembler that IBM supports on z/OS and z/VM. It replaces all of the older assemblers, although it is not fully compatible with them. System Modification Program (SMP){{main|SMP/E}}System Modification Program (SMP) is the vehicle for installing service on OS/360 and successors, replacing, e.g., stand-alone assembly, link edit and IMAPTFLE jobs. Originally an optional facility, it is mandatory for MVS/SP and later, and the program product version, SMP/E, is included in the more recent systems, e.g., z/OS. Notes{{Notelist}}References1. ^{{cite book |title = IBM System/360 Operating System: Utilities | edition = Twelfth | date = June 1970 | id = GC28-6586-11 | publisher = IBM Corporation | url = http://bitsavers.org/pdf/ibm/360/os/R19_Jun70/GC28-6586-11_Utilities_Rel_19_Jun70.pdf | mode = cs2}} {{cite book | title = OS Utilities - Program Numbers 360S-UT-506 360S-UT-507 | id = GC28-6586-15 | edition = Sixteenth | date = April 1973 | publisher = IBM Corporation | url = http://bitsavers.org/pdf/ibm/360/os/R21.7_Apr73/GC28-6586-15_OS_Utilities_Rel_21.7_Apr73.pdf | mode = cs2}} 2. ^{{cite book | title = IBM System/360 Operating System: Service Aids OS Release 21 | id = GC28-6719-2 | edition = Third | date = March 1972 | url = http://bitsavers.org/pdf/ibm/360/os/R21.0_Mar72/GC28-6719-2_Service_Aids_Rel_21_Mar72.pdf | publisher = IBM Corporation | mode = cs2}} 3. ^{{Cite web |url=http://bitsavers.trailing-edge.com/pdf/ibm/370/MVS_EA/GC28-1143-2_MVS_EA_Conversion_Notebook_May84.pdf |title=GC28-1143-2, MVS/XA Conversion Notebook, May 1984, page 1-1 |access-date=2014-11-23 |archive-url=https://web.archive.org/web/20141129045831/http://bitsavers.trailing-edge.com/pdf/ibm/370/MVS_EA/GC28-1143-2_MVS_EA_Conversion_Notebook_May84.pdf |archive-date=2014-11-29 |dead-url=yes |df= }} 4. ^{{cite book | title = z/OS MVS Diagnosis: Tools and Service Aids Version 2 Release 3 | id = GA32-0905-30 | date = July 20, 2018 | publisher = IBM Corporation | url = https://www-01.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R3ga320905/$file/ieav100_v2r3.pdf | mode = cs2}} 5. ^{{cite book|last1=IBM Corporation|title=DFSORT Application Programming Guide|url=http://publibz.boulder.ibm.com/epubs/pdf/ice2ca11.pdf|accessdate=March 28, 2017}} 6. ^{{cite book | title=OS Sort/Merge Program Program Number 360S-SM-023 OS~Release 21 | id = GC28-6543-8 | publisher = IBM Corporation | edition = Ninth | date = February 1973 | url = http://bitsavers.org/pdf/ibm/360/os/R21.0_Mar72/GC28-6543-8_OS_Sort_Merge_Rel_21_Feb73.pdf | quote = If you find that for a particular sort/merge application, the sort/merge program does not choose the most efficient technique, you can request sort to use another technique. | page = 17}} 7. ^{{cite book|last1=IBM Corporation|title=OS Sort/Merge Program Program Number 360S-SM-023 OS~Release 21|date=1973|url=http://bitsavers.org/pdf/ibm/360/os/R21.0_Mar72/GC28-6543-8_OS_Sort_Merge_Rel_21_Feb73.pdf|accessdate=April 2, 2018}} See also
External links
2 : IBM mainframe operating systems|Utility software |
||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。