Why so many jobs for a qshell command?
Posted on 2005-03-15
I've created a command, thanks to the help of some of the experts here, that retrieves the record count of a .csv file in the IFS. When I call this command interactively, I don't have any problems. But if I call the command from a program running in batch, all heck breaks loose. I get 5 different jobs that start, which causes my command to fail because the subsystem we run it in only allows a total of 4 jobs to run at a time. I'll post the QSH command that I run at the end of this post. The questions I have are as follows:
1. Why so many Jobs for this command?
2. Is there a way I can limit the number of Jobs a QSH command starts?
Here is the command I run.
QSH CMD('datarea -w /qsys.lib/mylib.lib/ifsrcdcnt.dtaara `cat file.csv | wc -l`')
Any help will be appreciated.