Skip to content

Steps


Write to Sequential Dataset

Use this step to write input text to a sequential dataset.

INFO

To create a GDG version add (+1) along with GDG base. An output property DatasetName will contain the actual GDG version dataset name that is created and can be referred in successive steps of the process.

NameTypeDescriptionRequired
Source TypeEnumeration: TEXT / DATASET / FILE / ${p?:dataset.writer.source.type}Source of data for writing into Output sequential dataset. Select DATASET to write from a PDS member or sequential dataset, FILE to write from a USS file, or TEXT to write text to output sequential dataset.Yes
Source ValueStringText or PDS member or Sequential Dataset or USS File to be written into a Sequential dataset. If the single quotation marks are omitted, the user’s data set prefix from the TSO profile is automatically appended to the front of the data set name. Add encoding of USS File after a comma(,). For example – /path/to/file,UTF-8. If no file encoding is specified, file is considered to be in IBM-1047 encoding. Multiple files or datasets can be passed separated by a newline.Yes
Dataset NameStringName of a sequential dataset to write input text.Yes
AppendBooleanSelect to append input text in the data set.No
Allocate Data SetStringSpecify TRUE to allocate a sequential data set with passed parameters.No
Delete Existing Data SetStringSpecify TRUE to delete the sequential data set if already exist before allocation.No
Volume SerialStringLeave blank to use the system default volume.No
Space UnitsEnumeration: TRACKS / CYLINDERSSpecify the dataset space units. For example, Tracks or CylindersYes
Average Record UnitEnumeration: – – – / K / M / USelect a unit to use when allocating average record length. The unit U specifies single-record units (bytes). K specifies thousand-record units (kilobytes). M specifies million-record units (megabytes). (- – -) specifies the system default value.No
Primary QuantityStringSpecify the primary quantity in average record units.Yes
Secondary QuantityStringSpecify the secondary quantity in average record units.Yes
Record FormatEnumeration: FB / F / VB / V / FBA / VBA / FBM / FM / VBM / VMSpecify the record format.Yes
Record LengthStringSpecify the record length.Yes
Block SizeStringSpecify the number of bytes of data to place in each block, based on the record length.Yes