diff --git a/lib/oar/scripting.rb b/lib/oar/scripting.rb
index <HASH>..<HASH> 100644
--- a/lib/oar/scripting.rb
+++ b/lib/oar/scripting.rb
@@ -51,6 +51,10 @@ module OAR
       Script.job
     end # def:: job
 
+    def oarstat
+      Script.oarstat
+    end # def:: oarstat
+
   end # module:: Scripting
 end # module:: OAR
 
diff --git a/lib/oar/scripting/script.rb b/lib/oar/scripting/script.rb
index <HASH>..<HASH> 100644
--- a/lib/oar/scripting/script.rb
+++ b/lib/oar/scripting/script.rb
@@ -57,6 +57,10 @@ class OAR::Scripting::Script
     @@steps
   end # def:: self.steps
 
+  def self.oarstat
+    @@oarstat ||= JSON.parse(%x[oarstat -f -j @@job[:id] -J])[@@job[:id]]
+  end # def:: self.oarstat
+
   def self.execute
     @@steps.sort! { |a,b| a[:order] <=> b[:order] }
     @@steps.each do |step|
Add oarstat method executed only one time and only if necessary