I have JobName and JobNo fields whch i want to pass into unix script as arguments.There are number of records for those two fields.
How can i pass JobName and JobNo to unix script ?
Pls suggest your ideas for same.
Pass arguments to Unix script
Moderators: chulett, rschirm, roy
Re: Pass arguments to Unix script
if it is unix specific, Meaning, you want to pass variable argument to a shell script, then it is possbile. check for $# and $@ to get the argument count and valueshhh wrote:I have JobName and JobNo fields whch i want to pass into unix script as arguments.There are number of records for those two fields.
How can i pass JobName and JobNo to unix script ?
Pls suggest your ideas for same.
I want to use server routine and after getting some job information from each job then want to pass info message to unix for searching the string so i can find Number of i/p records Number of O/p records, rejected records
Can you be more precise about what you want to do? It appears that you want to execute several jobs (why do you need to pass thei ...[/quote]
Can you be more precise about what you want to do? It appears that you want to execute several jobs (why do you need to pass thei ...[/quote]
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Do you have a consistent naming convention that allows you to identify where the "input", "output" and "reject" links occur? If so, you can use the DSGetLinkInfo() function to retrieve the link row counts.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
In every job design , we have put the same suffix string for ex. files names in first job are abc_SF, def_SF ,ghi_LKP ,jkl_LKP and second job these may aaa_SF,bbb_SF,ccc_SF,ddd_LKP,eee_LKP . I think we cann't use with DSGetLinkInfo(), because we dont have same naming convention except suffix string .
[quote="ray.wurlod"]Do you have a consistent naming convention that allows you to identify where the "input", "output" and "reject" links occur? If so, you can use the DSGetLinkInfo() function to retrieve the link row c ...[/quote]
[quote="ray.wurlod"]Do you have a consistent naming convention that allows you to identify where the "input", "output" and "reject" links occur? If so, you can use the DSGetLinkInfo() function to retrieve the link row c ...[/quote]
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Then you need to think long and hard about how to solve your requirement in a generic fashion.
How DO you define "Input rows"? How do you define "Output rows"? And so on.
Perhaps you could create an after job subroutine and pass it a list of the link names in the job for which you want row counts. That would be fairly easy to do.
How DO you define "Input rows"? How do you define "Output rows"? And so on.
Perhaps you could create an after job subroutine and pass it a list of the link names in the job for which you want row counts. That would be fairly easy to do.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.