How to set on/off a group of indicators in a single statement?

Answer Posted / sulthan

I cannot recollect completely. I will explain with an example.

C MOVE '00000' *IN(21).

this will set indicators from 21 to 25( total 5 zeroes from
21) to 0's.

Note: It is MOVEA or MOVE, not sure.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Chain operation copies the record's data to the input buffer for the program?

1082


How can we know running job is batch or interactive?

657


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2052


How to declare the pull button in AS/400..

1883


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

717






What is a record lock error?

1268


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1463


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


When it is desirable to describe files Internally?

1189


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

688


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

710


What is the purpose of record level identifier?

728


what is the rpg system?

668


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1020


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5413