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 |
Explain the difference between external subroutine and subprogram?
difference between escape(top or bottom) and escape immediate(top or bottom?
COuld you please let me know along with a sample on how are you going to remove duplicates from the file that is being read. Thanks Sam
Explain control variable in online screens?
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?
A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
can i see the copy book length using file-aid ?
what is the difference between read and find ?
Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
What happens when you issue a ESCAPE ROUTINE in a program ? Will there be any compilation /Run time error.