Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
ganga79

New User

Joined: 16 Nov 2005
Posts: 23

 Posted: Thu Jan 22, 2009 9:41 am    Post subject: Pl/1 Answer required 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

dick scherrer

Site Director

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

 Posted: Thu Jan 22, 2009 9:45 am    Post subject: 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.
senthilnathanj

New User

Joined: 31 Jul 2007
Posts: 47
Location: chennai

Posted: Thu Apr 09, 2009 3:04 pm    Post subject:

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
dick scherrer

Site Director

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

 Posted: Thu Apr 09, 2009 8:04 pm    Post subject: Hello, Why is this?
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm Help required on sort kalakuntlavenkat DFSORT/ICETOOL 11 Sun Nov 15, 2015 8:55 am Formatting a output to required form ... LOKESH DAIVAM All Other Mainframe Topics 2 Thu Aug 13, 2015 12:14 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us