Given the following code, what is the value of RESULT?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++
D RESULT S 5 0
C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
Answers were Sorted based on User's Feedback
Answer / anuj
Agreed.. Should be 32.. see below
1. RESULT = (2 + 3 * 2) ** 2 / 2
2. RESULT = (8) ** 2 / 2
3. RESULT = 64 / 2 = 32.
Thanks.
| Is This Answer Correct ? | 18 Yes | 0 No |
why we do STRSRVJOB in batch debugging in as400
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
how do u find whether a record is locked or not??
Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.
i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
i'm working on progA , in that program i want to see the userids of the users who work on this program?
wat is curser?? and its types???
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
what is difference between DSPFD and DSPFFD?please give me real senario with good example?