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...


Hi i have one question In my srvpgm one module ADDM is there
now i want to add new module i.e SUBM , please answer me IN
STEPS how to write bndlanguage and how it was attach to SRVPGM

Answers were Sorted based on User's Feedback



Hi i have one question In my srvpgm one module ADDM is there now i want to add new module i.e SUBM ..

Answer / mohan

HI,

NOT POSSIBLE TO ADD NEW MODULE TO THE EXISTING SERVICE
PROGRAM. ONLY UPDATE POSSIBLE FOR THE EXITING SERVICE PGM.
USING UPDSRVPGM COMMAND WE CAN UPDATE ANY MODULE IN SERVICE PGM.
IF U WANT TO ADD NEW MODULE,THEN U RECREATE THE SERVICE PGM.

BINDER LANGUAGE:
1)IT IS USED FOR EXPORT ONLY PROCEDURES IN MODULE.
2)SUPPOSE IN UR MODULE CONTAIN 5 PROCEDURES,IF U WANT TO USE
ONLY 2 PROCEDURES THEN WE USE BINDER LANGUAGE.
3)GENERATE NEW SIGNATURES IT IS USED.

STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('PROCEDURE1)
EXPORT SYMBOL('PROCEDURE2')
ENDPGMEXP

PRESS F6 ON COMMAND LINE,THEN GIVE SOURCE MEMBER NAME,SOURCE
TYPE GIVE ANY NAME LIKE "BND".U CAN WRITE ABOVE CODE INTO
THIS SOURCE FILE AND SAVE IT.NO NEED TO COMPILE.

WHEN U CREATE SERVICE PGM,
CRTSRVPGM + F4 ---> NAME
LIB
MODUE1
MODULE2

AFTER FILL THE MODULES, U CAN SPECIFY
EXPORT *SRCFILE
SRCFILE NAME OF THE SOURCE FILE
MBR BND(SOURCE MEMBER NAME)

BND IS THE NAME OF SOURCE MEMBER NAME, TO SAVED THE ABOVE
CODE IN THAT MEMBER.

THESE ARE STEPS FOR CREATING SIGNATURE USING BINDER LANGUAGE
FOR SERVICE PROGRAM.

IF u want to generate new signature,that creating new pgm
object,this need 3 procedures,
so just edit the above BND file like below

STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('PROCEDURE1)
EXPORT SYMBOL('PROCEDURE2')
EXPORT SYMBOL('PROCEDURE3')
ENDPGMEXP

ENDPGMEXPSTRPGMEXP PGMLVL(*PRV)
EXPORT SYMBOL('PROCEDURE1)
EXPORT SYMBOL('PROCEDURE2')
ENDPGMEXP

after edit above file,again u recompile the service program
only.and this *SRVPGM object add to newly created pgm object.
No need to compile all your programs which are using this
service program

THANKS
Mohan

Is This Answer Correct ?    5 Yes 1 No

Hi i have one question In my srvpgm one module ADDM is there now i want to add new module i.e SUBM ..

Answer / radha sammangi

Hi,

For this change your Binding language source like below..

STRPGMEXP PGMLVL(*CURRENT)

EXPORT SYMBOL('ADDM')
EXPORT SYMBOL('SUBM')

ENDPGMEXP

STRPGMEXP PGMLVL(*PRV)

EXPORT SYMBOL('ADDM')

ENDPGMEXP

After this just recreate your service program.No need to compile all your programs which are using this service program.

Thanks
Radha

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More IBM AS400 AllOther Interview Questions

What is difference between CAT, TCAT, BCAT?

1 Answers  


can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com

0 Answers   HCL,


How to create files dynamically without DDS?

1 Answers  


how many files can be defined in f specs?

2 Answers   IBM,


What is a library list ?

1 Answers  


Hello friends, i am having 1 year experience in AS/400. Can any one send me the as400 interview questions to my email id:nagaraju20087@gmail.com

1 Answers  


What Does Lokup Does In Tables & Arrays?

0 Answers   IBM,


What is Multi-format logical file?

1 Answers  


How can a data area be locked after being updated?

1 Answers  


What are Control level indicators?

1 Answers  


How do you set the keywords SFLSIZ and SFLPAG if you want the subfile to dynamically expand?

1 Answers  


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

0 Answers   IBM,


Categories