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
 

 

Pl/1 Answer required

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
ganga79

New User


Joined: 16 Nov 2005
Posts: 23

PostPosted: Thu Jan 22, 2009 9:41 am    Post subject: Pl/1 Answer required
Reply with quote

Hi Guys,

Please let me know the answer for the below question

DCL A CHAR(4) INIT('10.5')
DCL B DEC FIXED(7,1) INIT(10.5)

B=A +B

OPTIONS:

A. conversion is raised
b. erorr is raised
c. no condition is raised and the value of B is 21
d.No condition is raised and the value of B is 20.5
e.No condition is raised and the value of B is 20

Regards,
Ganga
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 22, 2009 9:45 am    Post subject:
Reply with quote

Hello,

What happens when you try this on your system?

Put that bit of code in any small program and try it. If you do not understand what happens, post your source via copy/paste, what the result is also via copy/paste and your question about what happened.

Someone here will be able to clarify.
Back to top
View user's profile Send private message
senthilnathanj

New User


Joined: 31 Jul 2007
Posts: 47
Location: chennai

PostPosted: Thu Apr 09, 2009 3:04 pm    Post subject:
Reply with quote

Hi ganga,


Code:
DCL A CHAR(4) INIT('10.5')
DCL B DEC FIXED(7,1) INIT(10.5)

B=A +B

d.No condition is raised and the value of B is 20.5
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Apr 09, 2009 8:04 pm    Post subject:
Reply with quote

Hello,

Why is this?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    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
No new posts FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm
No new posts Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm
No new posts Help required on sort kalakuntlavenkat DFSORT/ICETOOL 11 Sun Nov 15, 2015 8:55 am
No new posts Formatting a output to required form ... LOKESH DAIVAM All Other Mainframe Topics 2 Thu Aug 13, 2015 12:14 pm


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