Im traying to get out put of this below mention simple
logic code.But im geting out of different.(im trying with
my laptop trhough my company server.
DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400')
DCL &FIELD2 *CHAR 10
CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1)
Can you tell me the value of field2 after excuted of CHGVAR
command.
Answers were Sorted based on User's Feedback
1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?
what are the key words you must use when using a subfile?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?
How would display prime numbers using CL program?
How to create a key field for a logical file inside RPG?
There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented
i would like to know under what circumstance the object will get locked on AS400.
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 can we know running job is batch or intractive ? i need all the possibilites.........plz help me
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.