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 |
The natural file converted to PDF file if Yes then explain ?
what r the quality process in development
syntax for all WRITE COMMAND in natural language
difference between escape(top or bottom) and escape immediate(top or bottom?
Explain the address converter?
Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.
How do you receive data passed through JCL parm parameter in a Natural program ? How Data definition is defined in the program?
What is data trace system 2.0 used for?
What exactly is a hyperdescriptor? How does it work?
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?
difference between fetch , call and callnat
What is the difference between READ BY ISN and FIND