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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

586


how can I predict the performance of my cgis?

646


the maximum number of subfiles that can be active for a single file is ____ .

1180


what are the basic features of seu?

611


where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1116






In 'o' Specs What Is The Opcode For Write?

700


how do u compile rpgle program?

618


How Many Specs Are There In Rpg & Which Are They?

682


how to write *pssr ?

637


What is dynslt?

782


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3145


what are the three types of keywords associated with printer file ?

1010


In Which Specs Arrays, Tables & Constants Are Defined?

701


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

929


which of the following operations does not zero the field flda defined as 4,0?

701