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

How to receive data passed through jcl parm parameter in a natural program?

0 Answers  


What is the difference between READ BY ISN and FIND

2 Answers  


What is the difference between read(1) and read work file once?

0 Answers  


How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

0 Answers  


How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.

4 Answers  


Explain how many work file we can code in jcl?

0 Answers  


what type of files we use in file-aid

1 Answers   Tech Mahindra,


differnce between read work file 1 and read work file once? why we are using work file once?

4 Answers  


Can you explain control variable in online screens?

0 Answers  


Can we see the copy book length using file-aid?

0 Answers  


difference between fetch , call and callnat

3 Answers   IBM,


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

9 Answers  


Categories