Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a hyperdescriptor?

932


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

991


Explain why do we use file-aid for seqential files?

1067


What is data trace system 2.0 used for?

5638


Explain the address converter?

1000


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

1003


Explain adabas basic concepts. Like inverted list, address converter ,data storage?

986


What is the quality process in development?

1079


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

968


What is cobol coding sheet?

1225


How to find occurrence of mu and pe fields in a file?

885


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

1077


How to create 1 ddm that fetches 3 adabas files simultaneously?

923


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

895


Explain how are you going to remove duplicates from the file that is being read?

999