Page 2 of 2

Re: How to Implement in Cobol

PostPosted: Thu Feb 21, 2008 10:32 pm
by CICS Guy
A, Could you please post the exact requirement? Because I tried to provide an answer and it is not working for you. CICS Guy.

Re: How to Implement in Cobol

PostPosted: Thu Feb 21, 2008 11:19 pm
by dick scherrer
Hello,

Also could you please post why you believe that the previous code will not work as intended? (Just out of curiosity )
i believe the 9(02) definitions should be 9(03).

Re: How to Implement in Cobol

PostPosted: Fri Feb 22, 2008 3:16 pm
by arunprasad.k
Dick, Yes, I have to used 9(03) if I have to run for 165 occurances. But my sample code has just 3 occurances, so 9(02) can very well accomodate it. Do you still find some errors in my code? I tested my code for all possibility and it is working good.

William Thompson, I asked for the exact code not because I don't know how to build on the logic given by CG, but because I have a few concerns.

CICS Guy, First of all it is not my requirement!! I invited myself just to solve the problem.

If we have input like

_First_Line_
_Second_Line_


Output of the code will have
_First_Line__Second_Line

But it should have been
First_Line_Second_Line


'_' denotes spaces.

Anyway, thank you all guys, Arun. :P

Re: How to Implement in Cobol

PostPosted: Fri Feb 22, 2008 8:49 pm
by dick scherrer
You're welcome :)

d