COMP OR COMP-3: WHICH IS FASTER?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 1:12 pm

COMP-3 REQUIRES LESS STORAGE SPACE.
BECAUSE COMP-3 IS PACKED DECIMAL.
packed decimal is a method used in computing to store more in less space.
characters are stored in binary in their ascii representation.
ex: 1 = ascii(49)decimal
we can store two numbers(only numbers) in the same space.
example:
ascii 49=number 4 and 9





practice makes man perfect:
Deepak kumar
mainframe trainer(applied labs)
india.
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Re: COMP OR COMP-3: WHICH IS FASTER?

 

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby prino » Sun Apr 22, 2012 1:46 pm

A mainframe trainer who thinks mainframes uses ASCII. Pity your students...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 1:53 pm

prino,
u does not understand the core logic.
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 1:58 pm

i does not say mainframe stores in ascii value.
i want to say that it stores each digit held in binary form in a nibble



Deepak kumar
mf trainer
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 2:00 pm

i say it change 49 to binary.
means:
ascii value of 1 is 49 and 49 is changed to binary and then stores in mf



mf trainer
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby enrico-sorichetti » Sun Apr 22, 2012 2:06 pm

no it is You that do not / are unwilling to understand

in IT using the proper terminology is essential for good communication!
Your poor understanding of proper MAINFRAME terminology
throws serious doubts on the quality of the training You give

when talking about MAINFRAME You can talk about EBCDIC/char representations and HEX values

the ascii word has very little place in the MAINFRAME world
and certainly none in MF training :mrgreen:
Last edited by enrico-sorichetti on Sun Apr 22, 2012 2:07 pm, edited 1 time in total.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby BillyBoyo » Sun Apr 22, 2012 2:07 pm

Deepak kumar25 wrote:COMP-3 REQUIRES LESS STORAGE SPACE.
BECAUSE COMP-3 IS PACKED DECIMAL.
packed decimal is a method used in computing to store more in less space.
characters are stored in binary in their ascii representation.
ex: 1 = ascii(49)decimal
we can store two numbers(only numbers) in the same space.
example:
ascii 49=number 4 and 9





practice makes man perfect:
Deepak kumar
mainframe trainer(applied labs)
india.



This is just rubbish. Even taking the language barrier into account.

Prino makes the point about ASCII, which you deny and then continue to bring it into the conversation.

It is clear that you do not know how data is stored or described on a mainframe. You don't know the difference between decimal, hexadecimal, binary, ASCII or EBCDIC.

If I were you, wanting to "advertise" yourself or your company, I'd keep quiet about things I knew just enough about to be completely wrong about them. Any "trainees" going through your hands should get a full refund and payments for "damages".
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 2:21 pm

BillyBoyo wrote:
Deepak kumar25 wrote:COMP-3 REQUIRES LESS STORAGE SPACE.
BECAUSE COMP-3 IS PACKED DECIMAL.
packed decimal is a method used in computing to store more in less space.
characters are stored in binary in their ascii representation.
ex: 1 = ascii(49)decimal
we can store two numbers(only numbers) in the same space.
example:
ascii 49=number 4 and 9





practice makes man perfect:
Deepak kumar
mainframe trainer(applied labs)
india.



This is just rubbish. Even taking the language barrier into account.

Prino makes the point about ASCII, which you deny and then continue to bring it into the conversation.

It is clear that you do not know how data is stored or described on a mainframe. You don't know the difference between decimal, hexadecimal, binary, ASCII or EBCDIC.

If I were you, wanting to "advertise" yourself or your company, I'd keep quiet about things I knew just enough about to be completely wrong about them. Any "trainees" going through your hands should get a full refund and payments for "damages".
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby BillyBoyo » Sun Apr 22, 2012 2:24 pm

Re: COMP OR COMP-3: WHICH IS FASTER?


Note the actual question in the Subject.

The "answer" provided?
COMP-3 REQUIRES LESS STORAGE SPACE


Is this true? COMP PIC 9(9) requires four bytes.

COMP-3 PIC 9(9) requires five bytes.

So, no, not true (at least no complete) and not relevant to the question.

characters are stored in binary in their ascii representation


So, what about thigs which aren't "characters", how they they stored?

What does "in binary in their ascii representation" even begin to mean?

And what does this mean:

ex: 1 = ascii(49)decimal
we can store two numbers(only numbers) in the same space.
example:
ascii 49=number 4 and 9


You'd almost think that you meant to store the number one, but got two other numbers instead.

Plain rubbish from start to finish.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: COMP OR COMP-3: WHICH IS FASTER?

Postby Deepak kumar25 » Sun Apr 22, 2012 2:28 pm

HOW DATA IS INTERNALLY STORED USING PACKED DECIMAL??
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post