|
| ||||||
|
This wizard saves time by creating a large group of filters to convert mainframe data to CSV (comma-separated), Tab-delimited, Pipe-delimited or fixed-width data. If you need the final output in XML, follow this filter with a Convert CSV to XML filter. Copybook data is accepted in a number of formats - see below. TextPipe handles fields and groups with a fixed number of repeats (e.g. OCCURS 8 TIMES. or OCCURS 6 INDEXED BY TN-IDX.), it cannot handle data with OCCURS fields which depend on another field (e.g. OCCURS DEPENDING ON FIELDXXX). To use this wizard, simply paste (or use the right-click menu to load) your copybook data, then click the [Build] button. When you click the [Build] button, TextPipe first pre-processes the copybook:
TextPipe then generates a series of filters:
If TextPipe does not generate filters correctly, please send your copybook to us. If you have an SAS copybook, then first use the filter mainframe\SAS to mainframe copybook.fll to convert it to the format above. Output FormatYou can choose if TextPipe outputs CSV (comma-separated) data, Tab delimited, Pipe-delimited or Fixed width data. If you need the final output in XML, you can use the Convert CSV to XML filter. If TextPipe encounters an invalid packed or zoned decimal digit or sign field, it will output 'x' in the field to indicate an invalid value. If a packed or zoned field contains just spaces, TextPipe will output a blank field. Assume adjacent COMP fields are overlappedOdd-length COMP fields have half-bytes (nybbles) of unused data. Some compilers overlap adjacent COMP fields in files to save space. Check this option if your files contains overlapped COMP fields. Your copybook must show the positions of every packed field and any extra filler COMP fields added by your compiler, as the location of these is system-dependant. Trim leading spaces and zeroes from the output fileBy default, TextPipe leaves leading spaces, zeros and even '+' signs on numerics. Check this option to remove them to save space in the output file. Only handle numeric fieldsCheck this option if you only wish to expand packed decimal fields for a target application that understands EBCDIC. You will still need to disable the EBCDIC to ASCII conversion filter at the end of the filter list. Copybook Formats Accepted (*)(*) TextPipe will also process variations on these types. Note: If your copybook has group REDEFINE or OCCUR clauses, you must use an indented layout like that below.
01 EMP-RECORD.
03 EMP-ID PIC 9(6).
03 EMP-NAME PIC X(30).
03 EMP-JOIN-DATE.
05 EMP-JOIN-DATE-YY PIC 9(4).
05 EMP-JOIN-DATE-MM PIC 9(2).
05 EMP-JOIN-DATE-DD PIC 9(2).
03 EMP-BASIC-SALARY PIC 9(12)V99.
05 EMP-JOIN-DATE-YY PIC X(4).
05 EMP-JOIN-DATE-MM PIC X(2).
05 EMP-JOIN-DATE-DD PIC X(2).
05 EMP-JOIN-DATE-YY PIC 999.
05 EMP-JOIN-DATE-MM PIC X.
05 EMP-JOIN-DATE-DD PIC XXX.Note: The Position in Record column is entirely optional, all TextPipe needs is the field name and definition.
FILE RECORD LAYOUT
FIELD POSITION
DATA ELEMENT DEFINITION IN RECORD
RECORD CD 1 AN 1
PURCHASE REQUEST NUMBER 14 AN 2-15
PR LINE ITEM NUMBER 6 AN 16-21
QUANTITY 5 P 22-26
UNIT OF ISSUE 2 AN 27-28
STANDARD UNIT PRICE 5 P 29-33
FUND CLASS CODE 3 AN 34-36
STOCK NUMBER 15 AN 37-51
S/P 1 AN 52
OUTPUT ROUTING CODE 2 AN 53-54
OWNR/PURP 1 AN 55If your copybook is in this format: Pos Type Name then use the filter mainframe\convert copybook format.fll to convert it to the format above.
|
|
Contact
Us
Support
Community
Tutorials and User Guides (online) |