Is there any way to overwrite the parameter with row values?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That's the problem, they want all records for the key to be written to the same file, not just the last one which is what they are currently getting via the Folder stage. I thought the Folder did all records automatically, so either there's a bug in their version, it has somehow been implemented incorrectly or I'm completely wrong in my recollection.
Worst case, you may need to write them all out to a single file and then split them up in some sort of scripted post process (csplit comes to mind on UNIX), that or (if you have the skillz) you could write a BASIC routine to do that. It could open the original file, read the records, name the output file based on a column name and close / reopen the output file whenever that values changes.
![Confused :?](./images/smilies/icon_confused.gif)
Worst case, you may need to write them all out to a single file and then split them up in some sort of scripted post process (csplit comes to mind on UNIX), that or (if you have the skillz) you could write a BASIC routine to do that. It could open the original file, read the records, name the output file based on a column name and close / reopen the output file whenever that values changes.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
So, folder stage files should include all the rows for that key. Right?
If this is a bug in this 7.5 version, how about in version 8 as I have plan to upgrade our existing version to version 8.
I never have this BASIC routine but I will try it![Sad :(](./images/smilies/icon_sad.gif)
Or do we have any way to use the FileName that I read from folder stage as my output file name in the same job???
For example:
ODBC stage ->Transformer -> Folder -> Tranasformer-> Sequential File
Sequential File name will get from Folder stage File name.
Is it possible???
Thank you so much for your time,
If this is a bug in this 7.5 version, how about in version 8 as I have plan to upgrade our existing version to version 8.
I never have this BASIC routine but I will try it
![Sad :(](./images/smilies/icon_sad.gif)
Or do we have any way to use the FileName that I read from folder stage as my output file name in the same job???
For example:
ODBC stage ->Transformer -> Folder -> Tranasformer-> Sequential File
Sequential File name will get from Folder stage File name.
Is it possible???
Thank you so much for your time,
Dear All,
My problem has been solved by writing BASIC routine function in order to write all the records for spcific order file.
Thank you so much for all of your participating, time and effort to help me![Smile :-)](./images/smilies/icon_smile.gif)
Thank u,
ICE
My problem has been solved by writing BASIC routine function in order to write all the records for spcific order file.
Thank you so much for all of your participating, time and effort to help me
![Smile :-)](./images/smilies/icon_smile.gif)
Thank u,
ICE
chulett wrote:That's the problem, they want all records for the key to be written to the same file, not just the last one which is what they are currently getting via the Folder stage. I thought the Folder did all records automatically, so either there's a bug in their version, it has somehow been implemented incorrectly or I'm completely wrong in my recollection.![]()
Worst case, you may need to write them all out to a single file and then split them up in some sort of scripted post process (csplit comes to mind on UNIX), that or (if you have the skillz) you could write a BASIC routine to do that. It could open the original file, read the records, name the output file based on a column name and close / reopen the output file whenever that values changes.