Here, I thought it is possible to make the overlay position(In the above line it is 15) dynamically. It is always value of field from position 11 to 4 plus 14. So I thought there might some other thing which I can do, to make it dynamically. But It seems, not.
Also it would be helpful if you can help me in similar requirement. Actually that is my actual requirement.
I want to generate a output file like the following from the input file given below:
I mean, the first 9 bytes are Key and I want to generate a bit map kind of thing using the values given in field position 10-13. If the same key has two rows with values 2 and 3, then I want to generate a single row with the key value and bitmap like .11.................
Hope I made myself clear about my requirement. Please let me know whether it is possible using DFSORT, so that I can avoid writing one COBOL program for this kind of requirement.
Here, I thought it is possible to make the overlay position(In the above line it is 15) dynamically. It is always value of field from position 11 to 4 plus 14. So I thought there might some other thing which I can do, to make it dynamically.
You could do that using DFSORT's arithmetic functions to calculate the overlay position and dynamically create a control statement with that position in it.
I could probably show you how to do what you want with multiple IFTHEN statements, but I really don't have time to work out the dynamic "method". Maybe Kolusu would have time, but he's taken the afternoon off, so it would be Monday before he got to it. I'll send him a note about it.
In the above sort card,
the character '1' is overlayed on position 15+01, if the value of position (11-15) is equals 02. And the same character '1' is overlayed on position 15+02 , if the value of postition (11-15) equals 03 and so on....
The overlay character is constant and only the overlay character position is varying based on the values in position 11-15.
So I just wanted to know, is there any possibility to write one line of sort card to handle this changing overlay position instead of writing multiple IFTHEN's. Hope i made myself clear about what i meant by "Dynamic".
Kindly let me know if there is any possibilty. Just a curiosity to know this :-)