Get document data (-GDOC) command The -GDOC command returns data from a document in memory for the given document identifier. -GDOC command syntax -GDOC doc_ID doc_ID doc_ID indicates the document identifier of a document to be fetched from memory.