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

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

990


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

1113


What is cobol coding sheet?

1297


Explain the data storage?

1060


Explain difference between read work file 1 and read work file once? Why we are using work file once?

1020


What is a hyperdescriptor?

1003


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

1043


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

1268


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?

1145


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

943


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

1171


Explain how many work file we can code in jcl?

1047


The natural file converted to PDF file if Yes then explain ?

3210


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

1086


Tell me can we update with histogram?

1237