IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Interview Questions on JCL and COBOL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
neha_cap

New User


Joined: 04 Dec 2012
Posts: 15
Location: pune

PostPosted: Fri Dec 21, 2012 5:10 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 21, 2012 5:12 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Dec 21, 2012 6:53 pm
Reply with quote

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
View user's profile Send private message
neha_cap

New User


Joined: 04 Dec 2012
Posts: 15
Location: pune

PostPosted: Fri Dec 21, 2012 6:59 pm
Reply with quote

.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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Dec 21, 2012 7:02 pm
Reply with quote

If you know how different data formats work, then the HEX version tells you everything.
Back to top
View user's profile Send private message
neha_cap

New User


Joined: 04 Dec 2012
Posts: 15
Location: pune

PostPosted: Fri Dec 21, 2012 7:04 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Dec 21, 2012 7:07 pm
Reply with quote

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
View user's profile Send private message
neha_cap

New User


Joined: 04 Dec 2012
Posts: 15
Location: pune

PostPosted: Fri Dec 21, 2012 7:14 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Dec 21, 2012 7:16 pm
Reply with quote

i nt knw wh we is bt gd lck.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 21, 2012 7:34 pm
Reply with quote

topic locked for stupidity

one more like this one an You are out

clear enough ?

noo, not You Phil icon_cool.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top