Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Interview Questions on JCL and COBOL

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Interview Questions on JCL and COBOL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Dec 21, 2012 5:12 pm    Post subject: Reply to: Interview Questions on JCL and COBOL
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

Active Member


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

PostPosted: Fri Dec 21, 2012 6:53 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Fri Dec 21, 2012 7:02 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Fri Dec 21, 2012 7:07 pm    Post subject:
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    Post subject:
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

Active Member


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

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Dec 21, 2012 7:34 pm    Post subject: Reply to: Interview Questions on JCL and COBOL
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.    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us