Is it possible to declare a GDA for an external subroutine?
Answer Posted / jamil ahmad
YES. A GDA can be used in an external subroutine. Thats
where a GDA comes in real handy. I personally rather use a
subprogram but developers use subroutine and like it. You
dont have to pass any parameter but you must use the GDA.
Upon returning from the subroutine you can interrogate the
glbal fields for your edits. Here is an example of an
external subroutine (chopped off to fit here): (I didnt
write this but use it all the time, works perfect)
DEFINE DATA
GLOBAL USING DSLGLOB
LOCAL
1 #NAME (A15) INIT <' '>
1 REDEFINE #NAME
2 #ARRAY (A1/15)
1 #X (N2)
1 #LENGTH (N2)
1 #BLANK (A1) INIT <'N'>
END-DEFINE
***********************************************
DEFINE SUBROUTINE NAME-EDIT
***********************************************
ETC ETC
END-SUBROUTINE
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
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?
How to create 1 ddm that fetches 3 adabas files simultaneously?
Tell me can we update with histogram?
What is a hyperdescriptor?
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
How converted the natural coding for adabas
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Can we see the copy book length using file-aid?
Explain the difference between external subroutine and subprogram?
What is the difference between escape(top or bottom) and escape immediate(top or bottom?
Explain adabas basic concepts. Like inverted list, address converter ,data storage?
Explain control variable in online screens?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
How to find occurrence of mu and pe fields in a file?
What is a hyperdescriptor? How does it work?