wizardofzos / pyracf

RACF parsing for the rest of us...
Apache License 2.0
7 stars 8 forks source link

UID and GID values are fixed length, 10 character, with leading 0, making it harder to read/use the values #41

Open rob-vh opened 1 month ago

rob-vh commented 1 month ago

The unload file has UID values stored as fixed length, leading zero, numbers:

_NAME
ADCDA      0000990008
ADCDB      0000990009
ADCDMST    0000000000
ASH        0000000000
BILLA      0000000100
              ...    
ZOSCAGL    0000009081
ZOSCSRV    0000009082
ZOSMFAD    0000990007
ZOSUGST    0000009080
9735       0000000100

This makes it harder to get a list of all users with UID 0, because you have to be careful count the number of characters.

r.userOMVS.loc[r.userOMVS.USOMVS_UID=='0000000000'] vs r.userOMVS.loc[r.userOMVS.USOMVS_UID=='0']

We could strip the leading zeros in correlate(). Objections?