View previous topic :: View next topic
|
Author |
Message |
Pollyannaish
New User
Joined: 09 Jul 2005 Posts: 31 Location: Pune, India
|
|
|
|
Hi
Can someone let me know how to do this.
Step1. Get the count of number of record in the input file while shorting.
Step2. Pass the number of records to the program in this step using parm.
I am unable to find a way to get the count in a variable which can be passed to the next step.
Prem |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Hi Prem,
Pollyannaish wrote: |
Step1. Get the count of number of record in the input file while shorting.
Step2. Pass the number of records to the program in this step using parm. |
Via the parm, I don't know, but I'd think you could output from sort a file one one small record containing the count of the input. One way might be to, on input add a counting filed of "0000001" and a small constant sort key of, say "X" and sort on the "x" and sum into the count. Same key, only one out, a little reformat on output and that would work. There are probably better ways, wait and see what else pops up.
Bill |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
Pollyannaish
New User
Joined: 09 Jul 2005 Posts: 31 Location: Pune, India
|
|
|
|
Thanks Frank and William,
I did it using the method suggested. Still I want if that option could be achieved that way I wanted it to be.
Needs some brainstorming...
Regads,
Prem |
|
Back to top |
|
|
|