sort data /Production runner

Discussions about tools to complement CSPro data processing
Forum rules
New release: CSPro 8.0
Post Reply
hashim

sort data /Production runner

Post by hashim »

Please see the code below of the sort data in the Csro tools. this code can be used to sort data on any cspro file if we include the parameter on inputData and outputData on Production runner. the problem is when you have sort data
[Run Information]
Version=CSPro 6.1
AppType=Sort

[Files]
Application=.\DATA.ssf
InputData=..\Data.DAT
OutputData=..\DATA SORT\Data.srt
Listing=.\DATA.ssf.lst

[Parameters]
ViewListing=OnError
ViewResults=No

Problem on production runner
[Files]
Application=.\DATA.ssf
InputData=..\%%parameter%%
OutputData=..\DATA SORT\%%parameter%%
Listing=.\DATA.ssf.lst

after you have run on the first file the parameter is save the selected parameter which it will not allow you to select othe file for sorting
please assist me on this problem. this happen when you use more then one file to sort data on production runner
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: sort data /Production runner

Post by Gregory Martin »

Hello Hashim,

This is actually a bug related to the Sort Data tool. Unlike the other tools, it both reads and writes to the .pff file. This is something that we will fix in CSPro 6.2. The other tools open the .pff, read the contents, and execute whatever action. The Sort Data tool opens the .pff, reads the contents, and then writes out the .pff again. So it is always writing out a .pff with the first parameter that you selected. The key then is to rename your .pff so that it doesn't have the name of your .ssf file. So if you .ssf file is:

Sort.ssf

By default your .pff will be:

Sort.ssf.pff

Just rename your .pff to something different, like Sort.pff, and you'll see that the Production Runner and Sort Data will work together. See attached for an example of how it can work.
Attachments
Production Runner Sort.zip
(1.91 KiB) Downloaded 468 times
Post Reply