Cannot get output from DSExecute
Posted: Tue Mar 31, 2009 11:29 am
Hi all,
we are using below server routine to get the number of records of a dataset:
But we are not getting the number of records as Output...
If we run the routine with the >>test.txt the file is created with the number or records.
We have tried also get the output with a Execute Command stage in a Sequencer with the next output:
executecommand..JobControl (@ExeCommand): Executed: dsrecords.exe D:\Dummy.ds
Reply=0
Output from command ====>
Can anyone tell us what's wrong on the routine?
Thanks in advance.
we are using below server routine to get the number of records of a dataset:
Code: Select all
CALL DSExecute ( "NT", "dsrecords":PathDataset, Output, RetCode )
If RetCode = 0 Then
Ans = Output
End Else
Ans = "ERROR"
End
If we run the routine with the >>test.txt the file is created with the number or records.
Code: Select all
CALL DSExecute ( "NT", "dsrecords":PathDataset:" [b]>>test.txt[/b]", Output, RetCode )
executecommand..JobControl (@ExeCommand): Executed: dsrecords.exe D:\Dummy.ds
Reply=0
Output from command ====>
Can anyone tell us what's wrong on the routine?
Thanks in advance.