User Tools

Site Tools


cdc:nos2.source:nam5871:np_info

NP$INFO

Table Of Contents

  • [00008] GET INFORMATION OF FILE TYPE.

Source Code

NP$INFO.txt
  1. *DECK NP$INFO
  2. *IF DEF,XFR
  3. IDENT NP$INFO
  4. ENTRY NP$INFO
  5. SST
  6. OPL XTEXT COMCMAC
  7.  
  8. ** NP$INFO - GET INFORMATION OF FILE TYPE.
  9. *
  10. * L.T. NGUYEN 84/04/11.
  11.  
  12.  
  13. ** NP$INFO RETURNS INFORMATION OF A FILE BEFORE TRANSFERRING
  14. * TAKE PLACE.
  15.  
  16. * CALL FORMAT
  17. * NP$INFO(FILENAM,STATUS)
  18. *
  19. * ENTRY - (A1) = PARAMETER LIST.
  20. * FILENAM = LFN OF FILE.
  21. *
  22. * PARAMETER LIST FORMAT
  23. * FILENAM - DISPLAY CODE FILE NAME, LEFT JUSTIFIED ZERO FILL.
  24. *
  25. * EXIT STATUS = STATUS OF FILE.
  26. * = ZERO, IF LEGAL FILE TYPE.
  27. * = NONZERO, IF FILE TYPE ERROR DETECTED.
  28. *
  29. * USES A - 1,2,5,6.
  30. * B - 1.
  31. * X - 1,2,4,5,6,7.
  32. *
  33. *
  34. * MACROS FILINFO.
  35.  
  36.  
  37. NP$INFO DATA 0 ENTRY/EXIT
  38. SX6 A1
  39. SA6 LIST ADDRESS OF PARAMS LIST
  40. SA2 X1 FILE NAME TO BE CHECK
  41. MX6 42
  42. SX3 50001B SET LENGTH OF PARAMETER LIST = 5
  43. BX6 X2*X6
  44. BX6 X3+X6
  45. SB1 1
  46. SA6 INFOT SET RETURN AREA FIRST WORD
  47. FILINFO A6 CALL MACRO
  48. SA1 LIST
  49. SA1 X1+1
  50. SA2 INFOT+1
  51. SA3 ILLTP1 GET PRIMARY FILE MASK
  52. BX6 X2*X3 MASK RESULT
  53. SX5 X6-6
  54. ZR X5,ENDT LEAVE IF PRIMARY FILE
  55. SA3 ILLTP
  56. BX6 X2*X3 MASK OUT THE ILLEGAL FILE TYPES
  57. ENDT SA6 X1 RETURN INFO TO CALLER
  58.  
  59. EQ NP$INFO RETURN
  60.  
  61. INFOT BSSZ 5 FILE INFORMATION RETURN AREA
  62. ILLTP CON 7S18+1S16+1S11+1S10+7S3
  63. ILLTP1 CON 1S2+1S1
  64. LIST BSSZ 1
  65. END
  66.  
  67. *ENDIF
cdc/nos2.source/nam5871/np_info.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator