com.ibm.as400.access

Class LogicalDataArea

  • All Implemented Interfaces:
    Serializable


    public class LogicalDataArea
    extends DataArea
    implements Serializable
    The LogicalDataArea class represents a logical data area on the system.

    The following example demonstrates the use of LogicalDataArea:

    // Prepare to work with the system named "My400".
    AS400 system = new AS400("My400");
    
    // Create a LogicalDataArea object.
    QSYSObjectPathName path = new QSYSObjectPathName("MYLIB", "MYDATA", "DTAARA");
    LogicalDataArea dataArea = new LogicalDataArea(system, path.getPath());
    
    // Create the logical data area on the system using default values.
    dataArea.create();
    
    // Clear the data area.
    dataArea.clear();
    
    // Write to the data area.
    dataArea.write(true);
    
    // Read from the data area.
    boolean data = dataArea.read();
    
    // Delete the data area from the system.
    dataArea.delete();
    
    See Also:
    Serialized Form