Hello All,
Currently, I am provided with a fixed flat file. The flat file has a header and trailer record. The records which are not the header/trailer need to be packed in the CFF Stage.
- Job design: Seq. File -> Transformer -> Sort -> CFF
- The records are brought in as one column 'A' varchar 1000
- I split the records up based up character position and length.
- I am removing the header/trailer records from the file with a constraint in the Transformer Stage. These records should not be packed.
What is the best way to insert the header/trailer records back into the file output?
Please advise, thank you.
Jared Z.
Header/Trailer Insert
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 246
- Joined: Mon Jun 30, 2008 3:22 am
- Location: New York
- Contact:
Jared, I'd like to know more about the seq file. You say it has a header and trailer, but I wonder why you aren't using CFF to read it.
In the meantime, don't drop them. Create header and trailer links out of the transformer and funnel them back between the sort and CFF output stage. Funnel lets you specify the order.
In the meantime, don't drop them. Create header and trailer links out of the transformer and funnel them back between the sort and CFF output stage. Funnel lets you specify the order.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Jared, that helps. No second-guessing intended, I just hoped to help.
Parsing each record in the transformer is a good approach, I've used it many times.
Parsing each record in the transformer is a good approach, I've used it many times.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872