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
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 |
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 |
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 |
Answer / syam
A1. C CUSTNO CHAIN(E) CUSTMAST
A2. QTY = %ABS(QTY * -1)
| Is This Answer Correct ? | 2 Yes | 6 No |
Can more than one subfile record be displayed on one line?
As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks
Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.
How to select highest score of each subject or how to select highest income of every month?
how to retrieve RRN value in RPGLE program
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?
while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue
i would like to know under what circumstance the object will get locked on AS400.
How do you find whether a record is locked or not?