Can any body give the code for this quesition?
Using the following details write C-Spec code to set Name
to"AMMU LABS SYSTEM"
D NAME1 S 10 INZ('AMMU')
D NAME2 S 10 INZ('LABS')
D NAME3 S 10 INZ('SYSTEM')
D NAME S 20
Answers were Sorted based on User's Feedback
Answer / vijay
Minor change in above answer, you have to put %trim.
C EVAL NAME = %trim(NAME1) + ' ' + %trim(NAME2)
+ ' ' + %trim(NAME3)
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / sudhir
Vijay is correct.... That field lenghts declared for
variables are not exact as of the initial value assigned.
Hence extra spaces will be added. If the variables are
declared of size exactly as the value, then Syam's code can
be used.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / syam
Hi Vijay.....no need of %trim, no leading or trailing
blanks in name1 or name2 or name3.
%trim is required if ' AMMU' or 'LABS '
| Is This Answer Correct ? | 0 Yes | 5 No |
1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
How do you code file / field renames in ILE RPG?
Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?
what are the key words you must use when using a subfile?
what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
are there any useful c runtime apis that I can call from rpg iv?
Difference between creating a report using Printer file and WRKQRY(Query Report) ?
1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF
What is the Record Address file. How can we use it in RPG program?
Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.