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



Im traying to get out put of this below mention simple logic code.But im geting out of different.(..

Answer / swetha p rao

value is '0 '

Is This Answer Correct ?    11 Yes 0 No

Im traying to get out put of this below mention simple logic code.But im geting out of different.(..

Answer / rashmimalpani

value of field 2 will be 0

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More RPG400 Interview Questions

what is file information data structure?

1 Answers   IBM,


When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?

5 Answers   Mphasis,


HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....

1 Answers   HCL, Mind Tree,


How can we override a file during runtime in rpg?

0 Answers  


How Commitment and Roll back control is used in as400, explain with real time senario ???

2 Answers   Acolite, HSBC,






What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.

2 Answers   IBM,


1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?

4 Answers   Virtusa,


I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


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

6 Answers   CTS,


1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?

3 Answers  


Categories