× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dear all,
          I think this doubt is very similar to that of shabbir .
I am a novice to COBOL/400 programming and I have a very basic
    doubt.
I am trying to pass a character variable as parameter to a COBOL
    pgm
and in the procedure division I want to convert this character to
    a numeric
               data type.
               In RPG I remember we could do a MOVE A  B without any error
even if A is a character variable with length (say 4) and B is a
    numeric
               variable of attribute (4 ,0).
                 For eg. suppose A = '1234'
move A B -> in RPG would have resulted in B to have a value 1234.On the contrary the same operation would result in a dec
      data
                error in COBOL.Can anybody help me do this in COBOL.
    Thanks in anticipation,
    Regards,
    shijith

_________________________________________________________________
Tried the new MSN Messenger? It?s cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.