?? TITLE := 'NOS/VE :  BASIC ACCESS METHOD' ??
MODULE amm$put_next;
?? RIGHT := 110 ??

*copyc amh$also

?? NEWTITLE := 'Global Declarations Referenced By This Module', EJECT ??
?? PUSH (LISTEXT := ON) ??
*copyc amc$condition_code_limits
*copyc ame$improper_file_id
*copyc amt$call_block
*copyc amt$fap_layer_number
*copyc amt$fap_pointer
?? POP ??
*copyc baf$task_file_entry_p
*copyc amp$call_fap_access_condition
*copyc osp$set_status_abnormal
?? OLDTITLE ??
?? NEWTITLE := '  [XDCL] AMP$PUT_NEXT', EJECT ??

*copyc amh$put_next

  PROCEDURE [XDCL, #GATE] amp$put_next ALIAS 'amxputn'
    (    file_identifier: amt$file_identifier;
         working_storage_area: ^cell;
         working_storage_length: amt$working_storage_length;
     VAR byte_address: amt$file_byte_address;
     VAR status: ost$status);


    CONST
      interface_name = 'AMP$PUT_NEXT',
      fap_layer_number = 0;

    VAR
      call_block: amt$call_block,
      file_instance_p: ^bat$task_file_entry;

    status.normal := TRUE;
    file_instance_p := baf$task_file_entry_p (file_identifier);
    IF file_instance_p = NIL THEN
      osp$set_status_abnormal (amc$access_method_id, ame$improper_file_id, interface_name, status);
      RETURN; {----->
    IFEND;

    call_block.operation := amc$put_next_req;

    call_block.putn.working_storage_area := working_storage_area;
    call_block.putn.working_storage_length := working_storage_length;
    call_block.putn.byte_address := ^byte_address;

    file_instance_p^.fap_control_information.first_fap.access_method^
          (file_identifier, call_block, fap_layer_number, status);

    IF NOT status.normal THEN
      amp$call_fap_access_condition (file_identifier, fap_layer_number, call_block, file_instance_p^, status);
    IFEND;

  PROCEND amp$put_next;
?? OLDTITLE ??
MODEND amm$put_next;
