View previous topic :: View next topic
|
Author |
Message |
neha_cap
New User
Joined: 04 Dec 2012 Posts: 15 Location: pune
|
|
|
|
questions has been asked in interview:
1.In the static call, if there are changes in sub program then which program to compile first subprogram or main program??
2.How to change packed decimal data into numeric data thru SORT??
3.if the file has some records and if we want to add some more records then by defining it as (status)old then, is it executed or not?? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You notice that there is a forum for the interview questions ???
topic moved.
anyway the idea behind the forum is that You post also the answers You gave
in order to discuss them.
also You should post a better description of the questions asked ...
2) packed decimal is already NUMERIC
3) little/no sense at all |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
I will tell you that the answer to (1) is "it does not matter."
Even with the answer, can you explain why? |
|
Back to top |
|
|
neha_cap
New User
Joined: 04 Dec 2012 Posts: 15 Location: pune
|
|
|
|
.How to change packed decimal data into numeric data thru SORT??
i didnt answer because the interviewer is asking that if u want to display in 'HEX' format packed decimal data is not displayed u cannot understand the data so for the displaying purpose we can convert the packed decimal data into numeric data....
So, How can we do that using SORT??? |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
If you know how different data formats work, then the HEX version tells you everything. |
|
Back to top |
|
|
neha_cap
New User
Joined: 04 Dec 2012 Posts: 15 Location: pune
|
|
|
|
i know here my query is :
is there any command of sort thru which we can convert packed decimal data into numeric data????? |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
As Enrico said - packed decimal is one format of numeric data.
Non-numeric cannot be stored packed-decimal - it does not meet the definition.
Other numerics are binary, floating-point, display, and probably some others I don't use.
How long have you been doing mainframes?
Perhaps you mean "display"? |
|
Back to top |
|
|
neha_cap
New User
Joined: 04 Dec 2012 Posts: 15 Location: pune
|
|
|
|
When we talk abt Numeric data generally it is understood as in 'display' format so if any other types of numeric data we use we specifically mention abt that....here i have not mentioned bcoz i m talking abt Numeric data in 'display format' and my query is not whats the need of doing that n all....
my query is simple
how to convert 'packed decimal data'into numeric data which is in 'display format' .thru sort ?????????????? |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
i nt knw wh we is bt gd lck. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
topic locked for stupidity
one more like this one an You are out
clear enough ?
noo, not You Phil |
|
Back to top |
|
|
|