how to move cursor to a particular field when position is
not known?
Answers were Sorted based on User's Feedback
Answer / kunti
If you wish to position the cursor to a specified field,
you can use the MARK option,
eg.
INPUT
MARK *#MAP.#ACTION
USING MAP 'IVCLNTM1'
and and to position to a
particular position within a specified field, you use the
MARK POSITION option.
DEFINE DATA LOCAL
1 #A (A10)
1 #B (N4)
1 #C (N4)
END-DEFINE
*
INPUT (AD=M) #A #B #C
IF #A = ’ ’
COMPUTE #B = #B + #C
RESET #C
REINPUT FULL ’Enter a value’ MARK POSITION 5 IN *#A
END-IF
END
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / satya
You may use #MARK and pass value POS(field-name) to it.
Like below,
#MARK := POS(field-name)
POS(field-name) will give you current position of this
variable on the map
| Is This Answer Correct ? | 4 Yes | 1 No |
What happens when you issue a ESCAPE ROUTINE in a program ? Will there be any compilation /Run time error.
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Would like to know if have an expecific command that returns a code or something about the execution of a CALLNAT. For example ... CALLNAT 'SUBPRG' [parameter] [parameter] ... [here comes a code or command that checks if the CALLNAT was successful]
Explain the data storage?
What is the difference between read(1) and read work file once?
ADABAS basic concepts. Like inverted list, address converter ,data storage
Explain the difference between external subroutine and subprogram?
Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?
What is a hyperdescriptor?
what r the quality process in development
How do you receive data passed through JCL parm parameter in a Natural program ? How Data definition is defined in the program?
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?