IFDEQ (HLI function)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The conventions used on this page are described in Function call notation conventions.

Summary

Description
The IFDEQ call (DEQUEUE) dequeues a resource previously specified in a call to IFENQ.
Thread type
multiple cursor IFSTRT, single cursor IFSTRT
IFCALL function number
38

Syntax

IFDEQ(RETCODE,RESOURCE)

Compile-only form
Not available
Execute-only form
Not available

Specify the parameters in the syntax order shown above.

Parameter Description
RETCODE [O,i,r]The Model 204 return code is the required first parameter. The code is a binary integer value.
RESOURCE [I,s,r] The resource is a required input parameter that specifies the name of the previously enqueued resource to be dequeued. Specify a short character string, up to 32 characters in length. You can specify any data in the input string except for 32 bytes of binary zeroes.

Coding example (COBOL)

WORKING-STORAGE SECTION. 01 CALL-ARGS. 05 RETCODE PIC 9(5) COMP SYNC. 05 RNAME PIC X(9) VALUE "CUSTFILE;". . . . PROCEDURE DIVISION. . . . CALL "IFDEQ" USING RETCODE, RNAME.