T.R | Title | User | Personal Name | Date | Lines |
---|
4174.1 | | CLUSTA::HALL | Bill Hall - ACMS Engineering - ZKO2-2 | Wed May 28 1997 09:05 | 4 |
|
See note 3910.
Bill
|
4174.2 | | KERNEL::PULLEY | Come! while living waters flow | Tue Jun 03 1997 06:40 | 11 |
| I checked note 3910 particularly .2 before & just now.
I can't see a Cobol header file with the definiton in so I'm assuming
I need to move it in as in the Macro example.
I don't really know how to make Cobol understand about that external
constant.
Is it defined in acmshr as a longword?
Do I just need to define a pic s9(9) comp value external
ACMS$K_PROC_PROCEDURE_ID, and move that into the s9(4) field?
The arguments sizes aren't different on the Alpha are they?
|
4174.3 | | OHMARY::HALL | Bill Hall - ACMS Engineering - ZKO2-2 | Tue Jun 03 1997 10:06 | 7 |
|
From a previous example just posted by UTRTSC::WDEBAKKER,
01 acms$k_proc_procedure_id PIC S9(09) COMP VALUE EXTERNAL acms$k_proc_procedure_id.
Bill
|
4174.4 | | KERNEL::PULLEY | Come! while living waters flow | Tue Jun 03 1997 10:49 | 41 |
| Thanks,
Got it going with defining that long word & moving it into the word.
E.g.:-
IDENTIFICATION DIVISION.
PROGRAM-ID. SDM005.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 RET_STATUS PIC S9(09) COMP.
01 TASK_NAME PIC X(30) VALUE "SDT15_SOD_GROUP_WORKSPACE_TASK".
01 APPL_NAME PIC X(09).
01 PROCEDURE_ID PIC S9(18) COMP.
01 eakppi PIC S9(09) COMP VALUE EXTERNAL
ACMS$K_PROC_PROCEDURE_ID.
01 GPI_ITEM_LIST.
03 FILLER PIC S9(04) COMP VALUE 8.
03 akppi PIC S9(04) COMP.
03 POINTER VALUE REFERENCE PROCEDURE_ID.
03 FILLER PIC S9(09) COMP VALUE 0.
03 FILLER PIC S9(09) COMP VALUE 0.
01 WS-CREATION-TIME PIC X(56) VALUE SPACES.
01 CALL_ARGUMENTS.
03 ARG_COUNT PIC S9(09) COMP VALUE 3.
03 FILLER PIC S9(09) COMP VALUE 0.
03 FILLER PIC S9(09) COMP VALUE 0.
03 FILLER PIC S9(09) COMP VALUE 0.
PROCEDURE DIVISION.
R-01-SDM005-ROOT SECTION.
P01-10-BEGIN-SDM005-ROOT.
move eakppi to akppi.
CALL "ACMS$GET_PROCEDURE_INFO" USING OMITTED,
BY DESCRIPTOR TASK_NAME,
BY DESCRIPTOR APPL_NAME,
BY REFERENCE GPI_ITEM_LIST
GIVING RET_STATUS.
STOP RUN.
P01-99-END-SDM005-ROOT.
EXIT.
That works on the VAX as well so they are even happier.
|