Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Automatic version incrementation with convention NONE

Member “test” is always added to the library under the same name, but with a different method of inclusion.

/start-lms

//modify-logging-parameters logging=*maximum -----------------------------  (1) 

//open-library library=bsp10.bib,mode=*update ----------------------------  (2)

LIBRARY IS CLEARED AND PREPARED

//show-type-attributes type=s --------------------------------------------  (3)

INPUT  LIBRARY= :1OSQ:$USER.BSP10.BIB
TYPE      = S
SUPER-TYPE = *NONE

BASE-TYPE  = S
CONVENTION = *NONE

INIT-ELEM-P= *NONE

ADMINISTRAT= *NONE

STORAGE    = *NONE        WR-CONTROL = *NONE

//add-element to-element=(element=test(version=*increment),type=s) -------  (4)

input1

*END

INPUT  SYSDTA
OUTPUT LIBRARY= :1OSQ:$USER.BSP10.BIB

OUTPUT ELEMENT= (S)TEST/001(0001)/2013-03-01

        ADD (S)TEST/001(0001)/2013-03-01

(1)

In addition to error messages, positive acknowledgments are also logged.

(2)

Library BSP10.BIB is opened for reading and writing; no S-type member is present.

(3)

Display type attributes for member type S as a check. Member type S has the convention NONE.

(4)

Create the first member via *SYSDTA. The member is created under type S with the name “test” through automatic version incrementation.

//add-element to-element=(element=test(version=*increment),type=s) -------   (5)  

input2

*END

INPUT  SYSDTA
OUTPUT ELEMENT= (S)TEST/002(0001)/2013-03-01

        ADD (S)TEST/002(0001)/2013-03-01

//add-element to-element=(element=test(version=a001),type=s) -------------   (6)

input3

*END

INPUT  SYSDTA
OUTPUT ELEMENT= (S)TEST/A001(0001)/2013-03-01

        ADD (S)TEST/A001(0001)/2013-03-01

//add-element to-element=(element=test(version=*increment,base=a*),type=s) - (7)

input4

*END

INPUT  SYSDTA
OUTPUT ELEMENT= (S)TEST/A002(0001)/2013-03-01

        ADD (S)TEST/A002(0001)/2013-03-01

//add-element to-elem=(elem=test(version=*highest-existing),type=s), -
//           write-mode=*any ---------------------------------------------   (8)

input5

*END

INPUT  SYSDTA
OUTPUT ELEMENT= (S)TEST/002(0002)/2013-03-01

        ADD (S)TEST/002(0002)/2013-03-01 , OUTPUT REPLACED

//show-element-attributes ------------------------------------------------   (9)

INPUT  LIBRARY= :1OSQ:$USER.BSP10.BIB
TYP NAME VER  (VAR#) DATE        NAME VER  (VAR#) DATE
(S) TEST A001 (0001) 2013-03-01   TEST A002 (0001) 2013-03-01
(S) TEST 001  (0001) 2013-03-01   TEST 002  (0002) 2013-03-01
      4 (S)-ELEMENT(S) IN THIS TABLE OF CONTENTS

//end --------------------------------------------------------------------  (10)

(5)

Maintain the sequence with *INCREMENT, i.e. a second member with the same name and type but with a version incremented by one is created.

(6)

Explicit creation of version A001.

(7)

Create a further member through automatic version incrementation; the member is based on the version with prefix A*.

(8)

Overwrite the highest version with type S and name “test”.

(9)

Directory of library BSP10.BIB.

(10)

Terminate the LMS run.