Usage Example - Operation: 'SD IC ..'


Save register variables in In-core Document file



Usage Example - Operation: 'UD IC ..'


UnSave register variables from In-core Document file


Procedure used: sdic.spi


.OPERATION: [a] = 30 ;   Set [a] to: 30
.OPERATION: [b] = 45 ;   Set [b] to: 45
.OPERATION: [c] = 60 ;   Set [c] to: 60
..  
.OPERATION: [x] = 14 ;   Set [x] to: 14
.OPERATION: [y] = 28 ;   Set [y] to: 28
.OPERATION: [z] = 100 ;   Set [z] to: 100
..  
..  
.OPERATION: SD IC NEW ;   Save comment in doc. file
.INCORE DOCUMENT ARRAY: ic_doc_1 ;   New in-core doc file name (new)
.NUMBER OF REGISTERS & KEYS ALLOWED: 3, 50 ;   3 reg. and up to 50 keys
..  
.OPERATION: SD IC 1,[a],[b],[c] ;   Save reg. values in in-core doc file
.DOCUMENT FILE: ic_doc_1 ;   In-core doc file (existing)
..  
.OPERATION: SD IC 2,[x],[y],[z] ;   Save reg. values in in-core doc file
.DOCUMENT FILE: ic_doc_1 ;   In-core doc file (existing)
..  
.OPERATION: UD IC 2,[i],[j] ;   Get reg. values from in-core doc file
.DOCUMENT FILE: ic_doc_1 ;   In-core doc file (existing)
..  
.OPERATION: SD IC COPY ;   Copy in-core doc file to disk
.INCORE DOCUMENT ARRAY: ic_doc_1 ;   In-core doc file (existing)
.OUTPUT DOCUMENT FILE: doc_sdiccopy ;   Doc file (output)
..  
.OPERATION: UD IC 2,[xo],[yo] ;   Get reg. values from disk doc file
.DOCUMENT FILE: pkd_doc ;   Doc file (input)
..  
.OPERATION: UD ICE ;   Finished with this in-core doc. file
.DOCUMENT FILE: ic_doc_1 ;   In-core doc file (removed)



INPUT DOCUMENT FILE
pkd_doc
OUTPUT DOCUMENT FILE
(From: 'SD IC COPY')
doc_sdiccopy