User Tools

Site Tools


vmsrtlexample

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vmsrtlexample [2014/09/16 14:41]
wikiadmin created
vmsrtlexample [2014/09/16 14:44] (current)
wikiadmin
Line 3: Line 3:
 === lib$cvt_from_internal_time,​ lib$convert_date_time,​ lib$free_date_time_context === === lib$cvt_from_internal_time,​ lib$convert_date_time,​ lib$free_date_time_context ===
  
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import (convert_date_string,​ free_date_time_context,​ from vms.rtl.lib import (convert_date_string,​ free_date_time_context,​
Line 21: Line 21:
 s, day = cvt_from_internal_time(LIB_K_DAY_OF_YEAR) s, day = cvt_from_internal_time(LIB_K_DAY_OF_YEAR)
 print 'We are the %d day of the year' % (day,) print 'We are the %d day of the year' % (day,)
-</code>+</file>
  
 === lib$cvt_vectim,​ lib$sys_asctim === === lib$cvt_vectim,​ lib$sys_asctim ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import cvt_vectim, sys_asctim from vms.rtl.lib import cvt_vectim, sys_asctim
Line 35: Line 35:
  
 print 'The text representation is:', resultant_string print 'The text representation is:', resultant_string
-</code>+</file>
  
 === lib$delete_logical,​ lib$get_logical,​ lib$set_logical === === lib$delete_logical,​ lib$get_logical,​ lib$set_logical ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import delete_logical,​ get_logical,​ set_logical from vms.rtl.lib import delete_logical,​ get_logical,​ set_logical
Line 56: Line 56:
 # Delete the previously defined logical # Delete the previously defined logical
 s = delete_logical('​MY_LOGICAL',​ '​LNM$JOB'​) s = delete_logical('​MY_LOGICAL',​ '​LNM$JOB'​)
-</code>+</file>
  
 === lib$delete_symbol,​ lib$get_symbol,​ lib$set_symbol === === lib$delete_symbol,​ lib$get_symbol,​ lib$set_symbol ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import delete_symbol,​ get_symbol, set_symbol from vms.rtl.lib import delete_symbol,​ get_symbol, set_symbol
Line 77: Line 77:
 # Delete the previously defined symbol # Delete the previously defined symbol
 s = delete_symbol('​MY_SYMBOL',​ LIB_K_CLI_LOCAL_SYM) s = delete_symbol('​MY_SYMBOL',​ LIB_K_CLI_LOCAL_SYM)
-</code>+</file>
  
 === lib$do_command === === lib$do_command ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import do_command from vms.rtl.lib import do_command
Line 87: Line 87:
 # it does not return control to the calling program. # it does not return control to the calling program.
 do_command('​SHOW USERS'​) do_command('​SHOW USERS'​)
-</code>+</file>
  
 === lib$fid_to_name === === lib$fid_to_name ===
-<code python>+<file python>
 #!python #!python
 from vms.rms import getrmsattr, RMSATTR_K_FID from vms.rms import getrmsattr, RMSATTR_K_FID
Line 98: Line 98:
 fn = fid_to_name('​sys$login',​fid)[1] fn = fid_to_name('​sys$login',​fid)[1]
 print 'The file name for this file ID is', fn print 'The file name for this file ID is', fn
-</code>+</file>
  
 === lib$get_accnam,​ lib$format_sogw_prot,​ lib$parse_access_code,​ lib$parse_sogw_prot === === lib$get_accnam,​ lib$format_sogw_prot,​ lib$parse_access_code,​ lib$parse_sogw_prot ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import (format_sogw_prot,​ get_accnam, parse_access_code,​ from vms.rtl.lib import (format_sogw_prot,​ get_accnam, parse_access_code,​
Line 143: Line 143:
 print '​Protection string: "​%s"'​ % (format_sogw_prot(protection_mask,​ print '​Protection string: "​%s"'​ % (format_sogw_prot(protection_mask,​
                                                     access_names=accnam)[1],​)                                                     access_names=accnam)[1],​)
-</code>+</file>
  
 === lib$get_common,​ lib$put_common === === lib$get_common,​ lib$put_common ===
Line 158: Line 158:
  
 === lib$getdvi === === lib$getdvi ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import getdvi from vms.rtl.lib import getdvi
Line 182: Line 182:
 # Free the event flag previously gotten. # Free the event flag previously gotten.
 free_ef(efn) free_ef(efn)
-</code>+</file>
  
 === lib$get_input === === lib$get_input ===
-<code python>+<file python>
 #!python #!python
 from vms.rtl.lib import get_input from vms.rtl.lib import get_input
Line 201: Line 201:
 else: else:
     print 'You have entered: "​%s"'​ % input     print 'You have entered: "​%s"'​ % input
-</code>+</file>
  
vmsrtlexample.txt ยท Last modified: 2014/09/16 14:44 by wikiadmin