You are here: Development Standards > Routines > General Routines > GENRSVCD.PUB

# GENRSVCD.PUB

GENRSVCD.PUB is a public program that will allocate a post cost. These codes are then saved to the RMRDx file. These are currently used in GL Transaction Inquiry, where the user can see what GL journal entries came from a particular post.

(Normal Entry Point)

This entry point will reserve a post code and return it to the calling program.

`0030 ENTER FILE[ALL],CODE$`

Variable | Description
FILE[ALL] | Standard file array
CODE$ | Template used in reserving a post code.

Exit Points | Explanation
EXIT | This callpoint does not normally return an error.

SET_TEMPLATE:

This entry point will set up the CODE$ template, which is used when reserving a post code.

`15005 SET_TEMPLATE:`
`15010 ENTER CODE$`

Variable | Description
CODE$ | Template returned to calling program

Exit Points | Explanation
EXIT | This callpoint does not normally return an error.

This chart breaks down the CODE$ template:

Field | Description
CODE:C(8*) | Post code reserved by GENRSVCD.PUB
DESCR:C(40*) | Description to use with reserved post code
ID:C(2*) | Application ID to use with reserved post code
OSSECH:N(2*) | Channel OSSE is opened on.