Hi...
Thanks a lot for all the idea's
Its almost done... but .....
I am doing this to generate the level Numbers for Jobs to run in the unix server.. The input we have is the job name and it Predecessor Job Name
Small change required..
Have a look at the picture i have inserted..
If the Input is like this
A 0
B 0
C 0
D 0
E A
E B
E C
F E
G E
H E
I G
Z H
Z D
its perfect and works great..
But the same input and change in order..
A 0
B 0
C 0
D 0
E A
E B
E C
Z H
Z D
F E
G E
H E
I G
currupts the output.. gets me
A 0 1
B 0 1
C 0 1
D 0 1
E A 2
E B 2
E C 2
Z H 2
Z D 2
F E 3
G E 3
H E 3
I G 4
Just for the Pictorial view see the file i uploaded...
we have almost 1200 Jobs and it very tedious todo it..
Please Help...
Expected Out put
A 0 1
B 0 1
C 0 1
D 0 1
E A 2
E B 2
E C 2
Z H 4
Z D 4
F E 3
G E 3
H E 3
I G 4
We also have a file where it shows the Job and its Successor..
IF it could be of any use...
It like this
A E
B E
C E
D Z
E F
E G
E H
G I
H Z
I NULL
Z NULL