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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we override a file during runtime in rpg?

673


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...

1296


What is ment by record level identifier?

641


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

744


what is kids-rpg?

655






How would display prime numbers using CL program?

5666


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.

1747


How many program bind in one module....

2105


do you use message subfiles? What are the necessary keywords required coding a message subfile?

675


What is difference between bind by copy and bind by reference?

1712


what is program status data structure?

1361


what is the difference between do while and do until?

686


what do you mean by an input subfile, what are the keywords required?

754


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

698


what is the procedure and explain about real time scenario.

1462