View previous topic :: View next topic
|
Author |
Message |
amdparsn
New User
Joined: 09 Feb 2009 Posts: 8 Location: Chennai
|
|
|
|
i declared a cobol variable like this??
77 WS-A-VAR PIC 999B999B99B9.
I tried passing numeric value to this field but unable process it. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Are you talking about IBM Enterprise COBOL? What is "B" stands for in the definition? I may sound dumb, but in last 5-years I've never used it. |
|
Back to top |
|
|
amdparsn
New User
Joined: 09 Feb 2009 Posts: 8 Location: Chennai
|
|
|
|
I used COBOL 390 to declare the field. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj, B stands for a blank (space). Before the slash was added as an edit symbol, dates were usually 9999B99B99 and after moving the date over the INSPECT REPLACING ALL SPACE BY '/' was used to add the slashes.
Amdparsn, you did not provide enough information for us to help you. If you move any 9-digit number to this field, it will be stored as shown. You cannot use this field for numeric operations due to the blanks -- this field is called "numeric edited" in the COBOL manuals, and it is essentially treated as an alphanumeric field by COBOL. If you tell us what you are trying to do with it, we may be able to help you more. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Gosh, how young they are.....
Like Robert pointed out, "but unable process it" doesn't provide much for us to go on..... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Robert, I compiled a code using that PIC yesterday using IBM Enterprise COBOL for z/OS 3.4.1 and there was no syntax errors, since then I'm following-up this topic like ...
Thanks for the explnation, that helps...
Have a good one, |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
CICS Guy wrote: |
Gosh, how young they are..... |
But I like to sit around You guys... |
|
Back to top |
|
|
|