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 |
How to create 1 ddm that fetches 3 adabas files simultaneously?
difference between fetch , call and callnat
Is it possible to declare a GDA for an external subroutine?
How to receive data passed through jcl parm parameter in a natural program?
What is STACK in Natural? How we can use it in Program? Give me Eg.?
ADABAS basic concepts. Like inverted list, address converter ,data storage
How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?
Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same
Suppose you are processing an input file in a natural program and you want the program to fail if the file is empty. What command you use in natural to force it to fail?
If the number of parameter is more than the expected then NAT0919 error is displayed. How many parameter are allowed in a CALL and CALLNAT statement?
can i see the copy book length using file-aid ?
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?