How to fetch items in OPEN/ checked-out state from Dimensions


I am currently working on Dimensions 2009 R2 client. I have to write a UNIX script to fetch all the items from dimensions that are in OPEN/Checked-out state. I have studied about creating baselines and tried creating a baseline for such items. But, I got an error that this template id doesn't exist. Since I am just a developer and not an administrator in Dimensions client, I am not sure if it needs to do anything with configuration settings. Can you please help?