how to move cursor to a particular field when position is
not known?

Answers were Sorted based on User's Feedback



how to move cursor to a particular field when position is not known?..

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

how to move cursor to a particular field when position is not known?..

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 move cursor to a particular field when position is not known?..

Answer / dd

*#INOUTAC.. toposition cursor dynamically

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Natural Interview Questions

Explain the difference between external subroutine and subprogram?

0 Answers  


difference between escape(top or bottom) and escape immediate(top or bottom?

3 Answers   CTS,


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

2 Answers   TCS,


Explain control variable in online screens?

0 Answers  


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?

3 Answers   JPMorgan Chase,






A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?

9 Answers  


Explain difference between escape(top or bottom) and escape immediate(top or bottom?

0 Answers  


can i see the copy book length using file-aid ?

2 Answers   TCS,


what is the difference between read and find ?

2 Answers   IBM,


Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.

1 Answers  


What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

0 Answers  


What happens when you issue a ESCAPE ROUTINE in a program ? Will there be any compilation /Run time error.

2 Answers   Shaam,


Categories