CPY2DSS ( 1 ) USER COMMANDSCPY2DSS ( 1 )


NAME

cpy2dss - convert copybook to dss flat schema

SYNOPSIS

cpy2dss [ options ] [ file ... ]

DESCRIPTION

cpy2dss converts each copybook file operand to a dss flat schema file on the standard output. If no file operands are specified then the standard input is read.

Duplicate structure and field names are disambiguated by appending _count to the names, where count > 1. RENAMES and level 88 fields are ignored.

OPTIONS

-b, --bytemask

Output a single line where each character represents the type of the corresponding byte in the physical representation of a copybook record, where 0 means PIC and n means COMP-n.
-c, --codeset=codeset

Set the string codeset name. The default value is ebcdic-m.
-C, --comp=from:to

Convert COMP-from to COMP-to.
-d, --delimiter=delimiter

Set the --text field delimiter character. XML &name; and #decimal; forms are accepted. The default value is |.
-D, --terminator=terminator

Set the --text record terminator character. XML &name; and #decimal; forms are accepted. The default value is &newline;.
-e, --escape=delimiter

Set the --text field escape character. XML &name; and #decimal ; forms are accepted. The default value is off.
-k, --keep

Keep original names. Otherwise non-identifier characters are converted to _.
-l, --little-endian|le

Little-endian binary integer encoding.
-o, --offsets

Output the name, offset, size, number of elements and type of each member, one per line, on the standard output. Scalar fields have 0 elements.
-q, --quote=quote

Set the --text field quote begin character. If --end-quote is not specified then it is the same as --quote. XML &name; and #decimal; forms are accepted. The default value is ".
-Q, --end-quote=quote

Set the --text field quote end character. If --quote is not specified then it is the same as --end-quote. XML &name; and #decimal; forms are accepted. The default value is ".
-r, --reclen|record-length=reclen

Sets the physical record format to be fixed with a record length of reclen bytes.
-s, --sized-struct

Check for embedded size/data structures. On by default; -s means --nosized-struct .
-t, --text

Generate a field-delimited newline-terminated text schema using the local codeset.
-T, --regress

Massage output for regression testing.
-v, --variable

If --notext is on then records are variable length, delimited by the --terminator character. If --text is on then the size field --sized structures is omitted from the output.

IMPLEMENTATION

version

cpy2dss (AT&T Research) 2007-02-20
author

Glenn Fowler <gsf@research.att.com>
copyright

Copyright © 2003-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html