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.