Gadi, Value clause will help only for the first MOVE command. His problem is definitely A not numeric as Cobol uses ZAP=Zero target with PD and ADD PACK.
Itschak -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of גדי בן אבי Sent: Tuesday, September 05, 2006 3:16 PM To: [email protected] Subject: Re: COBOL variable conversion The problem is that Cobol initializes the comp-3 variable with binary zeroes which is an illegal value for a packed decimal field. If you add a 'value 0' clause to the variable definition, everything will be ok. Gadi -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Daniel A. McLaughlin Sent: Tuesday, September 05, 2006 2:13 PM To: [email protected] Subject: Re: COBOL variable conversion If you are moving 3 numerics into a defined variable of 4 characters, doesn't it move right justified? Wouldn't that leave a blank as the first character, thus causing the S0C7? Not a COBOL programmer, just a thought. Daniel McLaughlin ZOS Systems Programmer Crawford & Company PH: 770 621 3256 * ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

