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 |
What is the purpose of record level identifier?
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
what is plat file?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
i would like to know under what circumstance the object will get locked on AS400.
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
How can we make use of SETLL operation in CL?
In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening
What is the Record Address file. How can we use it in RPG program?