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

How do you find whether a job is a batch job or interactive?

4 Answers  


can we perform CHAIN operation on Subfile record format....?

4 Answers  


steps for debugging two rpg programs????

4 Answers  


What is the length of Signature?

3 Answers   UST,


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,






how do u track msg in cl pgm???

1 Answers   CTS,


difference between CHAIN and READE?

8 Answers   HCL,


what is batch debug in as400?

3 Answers  


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

0 Answers  


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?

7 Answers  


Categories