troubleshooting Question

formatting RACF Listuser output

Avatar of pastaguy
pastaguy asked on
Scripting LanguagesProgrammingShell Scripting
4 Comments2 Solutions734 ViewsLast Modified:
i requested a user list and within the output the user record is split across two or three rows and no common delimiter that i could use to pull the data into a spreadsheet/database to analyze.  
here are three examples of user records as they appear in the output; based on the user having privileges or not, I'm getting 3 different record formats for users within the same output

USER=ASCHINT  NAME=S-ASCHINT STC         OWNER=DC        CREATED=01.190
 INSTALLATION-DATA=IBM 903361
USER=ATTDAEMN  NAME=S-BROWN.MATTHEW       OWNER=$MVSST    CREATED=10.064
 INSTALLATION-DATA=IBM 903361 897
 UID= 0000000000
USER=BMUC061  NAME=B-RICHARDT.NICK       OWNER=GP        CREATED=00.003
 ATTRIBUTES=OPERATIONS
 INSTALLATION-DATA=IBM 8A8348 897

need a script to make the above look like (structured column and row data)


user		name			owner		created		attributes	installation-data			UID	
ASCHINT		S-ASCHINT STC		DC		01.190				IBM 903361
ATTDAEMN	S-BROWN.MATTHEW 	$MVSST		10.064				IBM 903361 897				0000000000
BMUC061		B-RICHARDT.NICK		GP		00.003		OPERATIONS  	IBM 8A8348 897

Open in new window

user-data-sample.txt
ASKER CERTIFIED SOLUTION
aikimark
Get vaccinated; Social distance; Wear a mask

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2014

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros