to remove first line from mutiple files
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 89
- Joined: Sat Jul 24, 2010 11:33 pm
Remember: I'm using 7x, not 8x, so if 8x is different I'll be wrong... That said, may I state the obvious?
The sequential file stage(s) that read(s) the file(s) will simply ignore (as in not pass through the output link) the first record. It doesn't matter what's in that record. The attribute in this case has a misleading name.
The sequential file stage that writes a file can have different attributes.
![Smile :)](./images/smilies/icon_smile.gif)
The sequential file stage(s) that read(s) the file(s) will simply ignore (as in not pass through the output link) the first record. It doesn't matter what's in that record. The attribute in this case has a misleading name.
The sequential file stage that writes a file can have different attributes.
![Smile :)](./images/smilies/icon_smile.gif)
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
Did you get this working?
It has been bugging me, I finally got a chance to dig thru the 8.5 docs and see how it was explained. Turns out... poorly.
For an Output (reading) link:
First Line is Column Names
Specifies that the first line of the file contains column names. This property is false by default.
For an Input (writing) link:
First Line is Column Names
Specifies that the first line of the file contains column names. This property is false by default.
Gee, that's helpful and really highlights the difference between the two.
Still surprised it's just a boolean value, Informatica has a "Records to skip" option that I can set to 0, 1 or any other appropriate number... just had a file with two header records, no automatic way to handle that in DataStage.
It has been bugging me, I finally got a chance to dig thru the 8.5 docs and see how it was explained. Turns out... poorly.
For an Output (reading) link:
First Line is Column Names
Specifies that the first line of the file contains column names. This property is false by default.
For an Input (writing) link:
First Line is Column Names
Specifies that the first line of the file contains column names. This property is false by default.
Gee, that's helpful and really highlights the difference between the two.
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Still surprised it's just a boolean value, Informatica has a "Records to skip" option that I can set to 0, 1 or any other appropriate number... just had a file with two header records, no automatic way to handle that in DataStage.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 89
- Joined: Sat Jul 24, 2010 11:33 pm
-
- Participant
- Posts: 89
- Joined: Sat Jul 24, 2010 11:33 pm