7.78 INSERT

Note: Usage options

The INSERT command is used to insert fields into a new record in a file.

Portability Considerations

Refer to parameters: AUTOCOMMIT and TO_FILE .

Also See

7.78.1 INSERT Parameters

7.78.2 INSERT Comments / Warnings

7.78.3 INSERT Examples

                                                         Required


  INSERT ------- FIELDS ------- field name  field attributes --->

                                |           |               | |

                                |            --- 7 max -----  |

                                |*ALL                         |

                                |*ALL_REAL                    |

                                |*ALL_VIRT                    |

                                |*INCLUDING                   |

                                |*EXCLUDING                   |

                                |expandable group             |

                                |                             |

                                |----- 1000 max for RDMLX-----|

                                 ----- 100 max for RDML ------


             >-- TO_FILE ------ file name . *FIRST ------------->

                                            library name


 -----------------------------------------------------------------

                                                         Optional


             >-- IO_STATUS ---- *STATUS ------------------------>

                                field name


             >-- IO_ERROR ----- *ABORT ------------------------->

                                *NEXT

                                *RETURN

                                label


             >-- VAL_ERROR ---- *LASTDIS ----------------------->

                                *NEXT

                                *RETURN

                                label


             >-- ISSUE_MSG ---- *NO ---------------------------->

                                *YES


             >-- RETURN_RRN --- *NONE -------------------------->


             >-- CHECK_ONLY --- *NO ---------------------------->

                                *YES


             >-- AUTOCOMMIT --- *FILEDEF -----------------------|

                                *YES

                                *NO