Bonjour Sam01,
Tu aurais avantage à utiliser la fonction SYSDSN qui te rend les messages suivants :
1 2 3 4 5 6 7 8 9 10
| OK
MEMBER SPECIFIED, BUT DATASET IS NOT PARTITIONED
MEMBER NOT FOUND
DATASET NOT FOUND
ERROR PROCESSING REQUESTED DATASET
PROTECTED DATASET
VOLUME NOT ON SYSTEM
UNAVAILABLE DATASET
INVALID DATASET NAME, data-set-name:
MISSING DATASET NAME |
La fonction s'appelle de la manière suivante :
x = SYSDSN("'mon.dsname'")
Sinon tu trouveras ci après la liste des SYSREASON délivrés par LISTDSI (pompée sur la doc IBM de REXX) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
| +------------------------------------------------------------------------+
¦ Table 7. LISTDSI reason codes ¦
+------------------------------------------------------------------------¦
¦ Reason code ¦ Description ¦
+-----------------+------------------------------------------------------¦
¦ 0 ¦ Normal completion. ¦
+-----------------+------------------------------------------------------¦
¦ 1 ¦ Error parsing the function. ¦
+-----------------+------------------------------------------------------¦
¦ 2 ¦ Dynamic allocation processing error. ¦
+-----------------+------------------------------------------------------¦
¦ 3 ¦ The data set is a type that cannot be processed. ¦
+-----------------+------------------------------------------------------¦
¦ 4 ¦ Error determining UNIT name. ¦
+-----------------+------------------------------------------------------¦
¦ 5 ¦ Data set not cataloged. ¦
+-----------------+------------------------------------------------------¦
¦ 6 ¦ Error obtaining the data set name. ¦
+-----------------+------------------------------------------------------¦
¦ 7 ¦ Error finding device type. ¦
+-----------------+------------------------------------------------------¦
¦ 8 ¦ The data set does not reside on a direct access ¦
¦ ¦ storage device. ¦
+-----------------+------------------------------------------------------¦
¦ 9 ¦ DFHSM migrated the data set. NORECALL prevents ¦
¦ ¦ retrieval. ¦
+-----------------+------------------------------------------------------¦
¦ 11 ¦ Directory information was requested, but you lack ¦
¦ ¦ authority to access the data set. ¦
+-----------------+------------------------------------------------------¦
¦ 12 ¦ VSAM data sets are not supported. ¦
+-----------------+------------------------------------------------------¦
¦ 13 ¦ The data set could not be opened. ¦
+-----------------+------------------------------------------------------¦
¦ 14 ¦ Device type not found in unit control block (UCB) ¦
¦ ¦ tables. ¦
+-----------------+------------------------------------------------------¦
¦ 17 ¦ System or user abend occurred. ¦
+-----------------+------------------------------------------------------¦
¦ 18 ¦ Partial data set information was obtained. ¦
+-----------------+------------------------------------------------------¦
¦ 19 ¦ Data set resides on multiple volumes. ¦
+-----------------+------------------------------------------------------¦
¦ 20 ¦ Device type not found in eligible device table ¦
¦ ¦ (EDT). ¦
+-----------------+------------------------------------------------------¦
¦ 21 ¦ Catalog error trying to locate the data set. ¦
+-----------------+------------------------------------------------------¦
¦ 22 ¦ Volume not mounted. ¦
+-----------------+------------------------------------------------------¦
¦ 23 ¦ Permanent I/O error on volume. ¦
+-----------------+------------------------------------------------------¦
¦ 24 ¦ Data set not found. ¦
+-----------------+------------------------------------------------------¦
¦ 25 ¦ Data set migrated to non-DASD device. ¦
+-----------------+------------------------------------------------------¦
¦ 26 ¦ Data set on MSS (Mass Storage) device. ¦
+-----------------+------------------------------------------------------¦
¦ 27 ¦ No volume serial is allocated to the data set. ¦
+-----------------+------------------------------------------------------¦
¦ 28 ¦ The ddname must be one to eight characters. ¦
+-----------------+------------------------------------------------------¦
¦ 29 ¦ Data set name or ddname must be specified. ¦
+-----------------+------------------------------------------------------¦
¦ 30 ¦ Data set is not SMS-managed. ¦
+-----------------+------------------------------------------------------¦
¦ 31 ¦ ISITMGD macro returned with bad return code and ¦
¦ ¦ reason code. Return code and reason code can be ¦
¦ ¦ found in message IKJ58431I, which is returned in ¦
¦ ¦ variable &SYSMSGLVL2. ¦
+-----------------+------------------------------------------------------¦
¦ 32 ¦ Unable to retrieve SMS information. DFSMS/MVS has ¦
¦ ¦ incorrect level. ¦
+-----------------+------------------------------------------------------¦
¦ 33 ¦ Unable to retrieve SMS information. DFSMS/MVS is not ¦
¦ ¦ active. ¦
+-----------------+------------------------------------------------------¦
¦ 34 ¦ Unable to retrieve SMS information. OPEN error. ¦
+-----------------+------------------------------------------------------¦
¦ 35 ¦ Unexpected error from DFSMS/MVS internal service ¦
¦ ¦ IGWFAMS. ¦
+-----------------+------------------------------------------------------¦
¦ 36 ¦ Unexpected error from the SMS service module. ¦
+-----------------+------------------------------------------------------¦
¦ 37 ¦ Unexpected error from DFSMS service IGGCSI00. ¦
+------------------------------------------------------------------------+ |
Et je pense qu'en testant le SYSREASON 13 tu auras une solution correcte à ta question.
Partager