I need to read a falt file, create a XML file and XML File should be encoded to base64 before sending out/ftp.
Please let me know how we do this in datastage? even if you have done anyother encodeing(other than base64) please let me know tooo.
Thanks for the help.
Encode
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard.
I assume "falt file" is a typo. Use Sequential File stage, XML Output stage, External Target stage. In the External Target stage execute your uuencode command and direct its output into a file, then run a script to FTP this whereever it needs to go. Optionally delete/move the data file when done.
I assume "falt file" is a typo. Use Sequential File stage, XML Output stage, External Target stage. In the External Target stage execute your uuencode command and direct its output into a file, then run a script to FTP this whereever it needs to go. Optionally delete/move the data file when done.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Do it in an after-job subroutine. Your job writes the header and body separately. The after-job subroutine encodes the body and (possibly) cats the head and body together. The result is then transferred.
You can use DataStage BASIC code or shell script. Doesn't matter.
You can use DataStage BASIC code or shell script. Doesn't matter.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.