1.WHAT IS WRONG WITH THE CODE BELOW?
C CUSTNO CHAIN CUSTMAST
IF %ERROR

can any body find the wrong please?

2.What builtin function will you use to achieve the
following functionality?
C QTY IFLT *ZERO
C QTY MULT-1 QTY
ENDIF

Answers were Sorted based on User's Feedback



1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST ..

Answer / ajit

C CUSTNO CHAIN CUSTMAST
IF %ERROR

1) The position is incorrect.
2) If you mistakenly wrote incorrect position, then for %ERROR, you should use CHAIN(E).
3) Use EVAL %ABS(Name of the variable) for 2nd Q.

Is This Answer Correct ?    7 Yes 1 No

1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST ..

Answer / jaijo

1. CHAIN(E)has to be used and not chain.

2. %abs

Is This Answer Correct ?    5 Yes 1 No

1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST ..

Answer / ved dubey

1. The Position of opcode if is not valid...
2. %ABS can be used instead of this code

Is This Answer Correct ?    3 Yes 1 No

1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST ..

Answer / naveen chandra joshi

%error should nto be user with Chain opcode. %Found()/% Not
Found() is used with Chain opcode.

Is This Answer Correct ?    4 Yes 2 No

1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST ..

Answer / syam

A1. C CUSTNO CHAIN(E) CUSTMAST
A2. QTY = %ABS(QTY * -1)

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More RPG400 Interview Questions

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / member lock. I confused with the Lock type and Status values...Can any body please tell me ...

5 Answers  


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


what is difference between DSPFD and DSPFFD?please give me real senario with good example?

1 Answers  


What is the purpose of record level identifier?

0 Answers  






1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?

3 Answers   Cap Gemini,


How to read a record from file where there is multiple record occurrence is available?

1 Answers  


How do I link an existing logical file to it's Physical File without recompiling?

2 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

1 Answers  


Categories