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 |
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
I want to add 10 days in current date. how it is possible in CL program...?
What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file
1.The questions have given an array declaration and move operation then this statement is correct or not?
what is the necessary keyword needed to scroll subfile records?
What is I90(Insure 90)?
WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
what is the rpg system?
what is file information data structure?
What is the OPEN and CLOSE accesspath?