Sie sind auf Seite 1von 3

IEBGENER

SYSIN
U can include control statements that let you modify format of the input records
by re-arranging fields or converting data to different formats. For e.g a Zoned decimal
that appears in one input record location can be converted to packed-decimal and placed
in a different output record location.
u can also use IEBGENER to print a data set simply by allocating the output file as a
SYSOUT data set. But there are 3 problems:
1. IEBGENER does not realize that it is writing data to the SYSOUT data set, so
it pays no attention to the page divisions.
2. IEBGENER cannot print unprintable data (like packed decimal fields).
3. IEBGENER truncates any excess characters, If the input records are too lont
to be printed in a single line.
IEBCOPY
Control statements:
The COPY statement
COPY OUTDD=ddname,INDD=ddname[,ddname]
OUTDD specifies the ddname of the data set to be created.
INDD specifies the ddnames of one or more input files.
The SELECT statement
SELECT MEMBER=member[,member]
MEMBER specifies the names of one or more members to be included.
The EXCLUDE statement
EXCLUDE MEMBER=member[,member]
MEMBER specifies the names of one or more members to be excluded.
IEHMOVE control statements
The COPY and MOVE statements:
{ DSNAME=data-set-name}
{COPY } { PDS=library-name
}
{MOVE} { DSGROUP=name
}
,TO=unit=serial

[,FROM=unit=serial]
[,UNCATLG]
[,RENAME=new-name]
[,EXPAND=number]
DSNAME: Specifies the input data set name(Sequential)
PDS: Specifies the input data set name(Partitioned)
DSGROUP: Specifies one or more data set name qualifiers used to identify a data set
Group. All data sets on the volume named with the same qualifiers are
Copied or moved.
TO: Specifies the output volume
FROM: Specifies the Input volume
UNCATLG: Uncatalogs the input file
RENAME: specifies the name of the output file if different from the input file.
EXPAND: specifies a number of additional directory blocks to be inserted into the
Directory of a PDS
The SELECT and EXCLUDE statements are the same as in IEBCOPY.
NOTE!!! You cannot code a SELECT and EXCLUDE statements together. You can
use only one or the other.
IEUPDATE control statements
The ADD statement:
./ ADD NAME=name[,LIST=ALL]
The CHANGE statement
./ CHANGE NAME=name[,LIST=ALL]
The REPLACE statement
./REPL NAME=name[,LIST=ALL]
The NUMBER statement
./ NUMBER [ SEQ1={number|ALL}]
[,SEQ2=number]
[,NEW1=number]
[,INCR=number]
[,INSERT=YES]
The DELETE statement
./ DELETE SEQ1=number,SEQ2=number

Explanation:
NAME: names of the members to be processed
LIST: When LIST=ALL is specified, each updated member is listed along with the
Control statements. If LIST is omitted, only the control statements and the
Updates records are listed.
SEQ1: number of the first record the NUMBER and DELETE statement applies to.
Not valid if SEQ1=ALL is coded.
SEQ2: number of the last record the NUMBER and DELETE statement applies to.
Not valid if SEQ1=ALL is coded.
NEW1: starting number for the updated member.
INCR: increment used when renumbering records
INSERT: If INSERT=YES, the data records that follow are inserted in the updated
Library.

Das könnte Ihnen auch gefallen