Extra character at the end of file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Extra character at the end of file

Post by Raamc »

Hi All,

I am concatenating three files into a single file by using the windows COPY command. I am concatenating these in a basic routine. COPY command was executing sucessfully but one extra record with data as '->'is inserting at the end of the file.

Can any one have idea why this extra record has been inserted and is there any other way to remove this record?

My code is like below

NTCmdCmbN = "copy ":NewCHeader:" + ":NewCDataFe:" + ":NewCTrailer:" ":NewCFinalF

.........
Call DSExecute("NT", NTCmdCmbN, NewCoutp, NewCRetCode)


Data looks like below in the final file NewCFinalF
Hrameshcodingetc
Data111122wsdwe
T000003


I want to remove the last record which is having .


Please help.
Thanks,
Raamc
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Try adding in... what the heck is it... the "/B" option and see if that helps.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Post by Raamc »

Thanks Chulett,

That solved my problem.

Thank you very much..
Thanks,
Raamc
Post Reply