how do I do concatenation in rpg iv, like I do in cl?



how do I do concatenation in rpg iv, like I do in cl?..

Answer / maha

' '+%trim()+' '

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


How can you delete records form a file in rpg without using "Delete" OPCODE?

7 Answers  


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


Please help me, I have created window subfile,I have created Footer with same lengh and postion of window SFL. When I call the pgm, first is shows only Footer and then it shows subfile records.This time Footer is not showsing ..plz hel me how can i do it...? Sameple DDS and RPG: A R WIN1 SFL A*%%TS SD 20090130 165346 MUNSHIJ REL-V4R2M0 5769- PW1 A FLD001 1Y 0B 4 3EDTCDE (Z) A ATFILE R O 4 7REFFLD (QWHFDBAS/ATFILE LIB/LIBF- A ILE) A R WINCTL SFLCTL (WIN1) A*%%TS SD 20090202 123459 MUNSHIJ REL-V4R2M0 5769- PW1 A ALTNAME ('y') A SFLSIZ (0004) A SFLPAG (0004) A WINDOW (FOOTER) A ROLLUP (27) A ROLLDOWN (28) A CF12 (12 'Cancel') A 50 SFLDSP A N51 SFLDSPCTL A 51 SFLCLR A 1 2'Select Option,Press enter' A 2 3'1= Select' A R FOOTER A* A WINDOW(8 31 9 43) A 8 4'F12 = Cancel' A R DUMMY ASSUME A 24 10' ' in RPG: Dow *IN12 = *Off Write Footer Fxfmt WInCTL

2 Answers  


steps for debugging two rpg programs????

4 Answers  






I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


How can we change element of compile time array?Can we do so

1 Answers   TCS,


How we will read call stack?

4 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


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

0 Answers  


How can we know running job is batch or interactive?

0 Answers  


Categories