Thanks All For your Suggestions, Starting with i have no idea how you can do in Basic,Now i have couple of options to try my solution..
Thanks All
Datastage Basic WriteSeq
Moderators: chulett, rschirm, roy
The point is always use WEOFSEQ will be required if you are opening an existing file. If you fail to use it, you could potentially have a "merged" effect of what you just wrote with what already existed in the file. This is absolutely an issue if you write fewer characters to the file than what currently exists.
The question is whether you do it right after opening an exisitng file for writing, or after you're finished. Unless we get a definitive answer as to the flavour (
for Ray) of the engine, you're probably better off using WEOFSEQ per Mike and Craigs recommendation, which is right after opening for update.
I'm leaving my code as it is, I'm pretty sure I tested this and wrote the appropriate logic for DS. But I have been known to be wrong...![Shocked :shock:](./images/smilies/icon_eek.gif)
The question is whether you do it right after opening an exisitng file for writing, or after you're finished. Unless we get a definitive answer as to the flavour (
![Wink :wink:](./images/smilies/icon_wink.gif)
I'm leaving my code as it is, I'm pretty sure I tested this and wrote the appropriate logic for DS. But I have been known to be wrong...
![Shocked :shock:](./images/smilies/icon_eek.gif)
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 81
- Joined: Wed Jul 14, 2004 3:18 am
- Location: Johannesburg, South Africa
- Contact:
Being one to do things the blunderingly ignorant way at times, what about just using cat and a pre-created text file with the headings?
Code: Select all
cat HeadingRow.txt SingleDataRow.txt > Output.txt; rm SingleDataRow.txt
Morney le Roux
There are only 10 kinds of people: Those who understand binary and those who don't.
There are only 10 kinds of people: Those who understand binary and those who don't.