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 |
How to print output from openquery in as400 ?
steps involved in debugging and types of debugging modes?
what is difference between DSPFD and DSPFFD?please give me real senario with good example?
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what will happen two jobs have same name are submitted
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
RPG/400 faqs?
parameters cannot be passed in which one??
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?
5 Answers CitiGroup, Symphony,
How do you do indexing in a physical file?