DIFFERENCE BETWEEN BINDING LANG AND BIND DIR WHEN USING IN
SERVICE PGM...when using binding directory service pgm is
necessary?
Answers were Sorted based on User's Feedback
Answer / syam
Binder Language : Set of commands (STRPGMEXP, EXPORT, and
ENDPGMEXP) to define the signature for a service program.
These commands (source type BND) are not executable.
Binding Directory : An object that contains a list of names
of modules and service programs that the binder may need
when creating an ILE program or service program. A binding
directory is not a repository of the modules and service
programs; instead, it allows the binder to refer to them by
name and type.
Binding : The process of creating a callable program by
packaging ILE modules and resolving symbols passed between
those modules.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / sumit gupta
Binding Language concept is involved in Service program.
This is used when we export procedures and attach when we
create service program or when update service program.
Binding language contains certain keywords like STRPGMEXP,
ENDPGMEXP, EXPORT
STRPGMEXP is used when signature is hardcoded or *current
or *previous is specified on PGMLVL.
ENDPGMEXP is used to end the STRPGMEXP
EXPORT is used to export the symbolic name of module
(procedure)
Binding directory is used to to attach many modules and
service program.
It depends whether service program is neccessary or not, if
your binding directory contains all the procedures which
are also present in service program then no need to using
service program.
Cheers
| Is This Answer Correct ? | 5 Yes | 0 No |
OVRDBF FILE(xxx) TOFILE(libl/filename) share(*yes) In which scenario is share(*yes) used? could any one explain with an example?
what are the three line types in rlu ?
How to reverse a string using RPG?
what does opcode post do ?
can you explain the difference between spacea,spaceb,skipa and skipb. I'm new to learning about as400 and printer files. can any one give me an example using source code showing the difference that occurs between using these 4 keywords. A-Physical file PF004 source UNIQUE R RR STUNAM 10 ROLLNU 5 0 MARKS 3 0 SEX 6 K ROLLNU 4 records present in PF004 are STUNAM ROLLNU MARKS SEX KAVYA 12,344 55 FEMALE MADHAVAN 14,579 60 MALE RAMYA 14,785 70 FEMALE KRISHNAN 14,988 72 MALE B-Printer File PRINT1 source A R HEADER A 10 3'STUNAM' A 10 20'ROLLNU' A 10 30'MARKS' A 10 40'SEX' A R DETAIL A SPACEB(1) A STUNAM 10 3 A ROLLNU 5 0 20 A MARKS 3 0 30 A SEX 6 40 A R FOOTER A SPACEB(1) A 20'END OF REPORT' C-RPG/400 Program PRTTPG source FPF004 I F E DISK FPRINT1 O E PRINTER C WRITE HEADER C READ PF004 60 C *IN60 DOWEQ *OFF C WRITE DETAIL C READ PF004 60 C ENDDO C WRITE FOOTER C SETON LR D-spooled file result set Display Spooled File File . . . . . : PRINT1 Page/Line 1/10 Control . . . . . Columns 1 - 130 Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+.... 6....+....7....+....8....+....9....+....0....+....1....+.... 2....+....3 STUNAM ROLLNU MARKS SEX KAVYA 12344 055 FEMALE MADHAVAN 14579 060 MALE RAMYA 14785 070 FEMALE KRISHNAN 14988 072 MALE END OF REPORT Bottom F3=Exit F12=Cancel F19=Left F20=Right F24=More keys I have changed from SPACEB to SPACEA now in my printer file source E-Changed PRINT1 Source A R HEADER A 10 3'STUNAM' A 10 20'ROLLNU' A 10 30'MARKS' A 10 40'SEX' A R DETAIL A SPACEA(1) A STUNAM 10 3 A ROLLNU 5 0 20 A MARKS 3 0 30 A SEX 6 40 A R FOOTER A SPACEA(1) A 20'END OF REPORT' F-Spooled file Result Set after keyword change Display Spooled File File . . . . . : PRINT1 Page/Line 1/10 Control . . . . . Columns 1 - 130 Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+.... 6....+....7....+....8....+....9....+....0....+....1....+.... 2....+....3 KAVYAM 12344U 055KS FEMALE MADHAVAN 14579 060 MALE RAMYA 14785 070 FEMALE KRISHNAN 14988 072 MALE END OF REPORT Bottom F3=Exit F12=Cancel F19=Left F20=Right F24=More keys Overprinting not displayed.
what is OUTFILE?what is the uses and disadvantage? where we can use this?
when are the referential constraints executed?
which cl command is used to trap error messages during program execution?
What is file information data structure(infds) in as400?
What is left outer join?
what is the purpose of putovr (put with explicit override) keyword?
maximum number of subfiles that can defined in a rpg program for one display file is?