We continue to have bad data in files interfaced into Lawson via the 'importdb' command. The error output of importdb only goes to ladb.log, which is inaccessable to most users. I need a quick way to allow the user to detect and correct the bad data.
After giving it some thought, I decided that the best way would be at the copy step, first step taken in a multi-step job to use importdb to load GLTRANSREL and then bring in GL entries with GL165. I have the batch file scanning the input file for the bad data sequence, using 'grep', then create output based on what it finds.
The check to see if the grep output is zero or non-zero is working perfectly, and I can now ensure that a data file with bad data will throw the procedure into recovery at the copy step.
What I can't do is to display the output of the batch file in the log file. This is Windows (Windows Server 2012 R2). Does anyone have any experience in getting batch files to "talk" to the job log file, so that users may see what is going on? Is there a setting I have to check??