public function GetSPLF($SplfName , $SplfNbr, $JobNmbr, $JobName, $JobUser, $TMPFName='')
    {
        $this->clearError();
        if ($TMPFName != '') {
            $this->TMPFName = $TMPFName;
        }

        // @todo under the flag for current Object???
        $crtf = "CRTDUPOBJ OBJ(ZSF255) FROMLIB(" . $this->ToolkitSrvObj->getOption('HelperLib') . ") OBJTYPE(*FILE) TOLIB($this->TmpLib) NEWOBJ($this->TMPFName)";
        $this->ToolkitSrvObj->ClCommandWithCpf($crtf); // was ClCommand

        // clear the temp file
        $clrpfm = "CLRPFM $this->TmpLib/$this->TMPFName";
        $this->ToolkitSrvObj->ClCommandWithCpf($clrpfm); // these all were CLCommand but we need CPFs.

        // copy spooled file to temp file
        $cmd = sprintf ("CPYSPLF FILE(%s) TOFILE($this->TmpLib/$this->TMPFName) JOB(%s/%s/%s) SPLNBR(%s)",
            $SplfName, trim($JobNmbr), trim($JobUser), trim($JobName), $SplfNbr);

        $this->ToolkitSrvObj->ClCommandWithCpf($cmd);
        sleep(1);
        // read the data from temp file
        $Txt = $this->ReadSPLFData();

        // delete temp file
        $dltf   = "DLTF FILE($this->TmpLib/$this->TMPFName)";
        $this->ToolkitSrvObj->ClCommandWithCpf($dltf);

        return $Txt;
    }
public function GetSPLF($SplfName , $SplfNbr, $JobNmbr, $JobName, $JobUser, $TMPFName='')
    {
        $this->clearError();
        if ($TMPFName != '') {
            $this->TMPFName = $TMPFName;
        }

        // @todo under the flag for current Object???
        $crtf = "CRTDUPOBJ OBJ(ZSF255) FROMLIB(" . $this->ToolkitSrvObj->getOption('HelperLib') . ") OBJTYPE(*FILE) TOLIB($this->TmpLib) NEWOBJ($this->TMPFName)";
        $this->ToolkitSrvObj->ClCommandWithCpf($crtf); // was ClCommand

        // clear the temp file
        $clrpfm = "CLRPFM $this->TmpLib/$this->TMPFName";
        $this->ToolkitSrvObj->ClCommandWithCpf($clrpfm); // these all were CLCommand but we need CPFs.

        // copy spooled file to temp file
        $cmd = sprintf ("CPYSPLF FILE(%s) TOFILE($this->TmpLib/$this->TMPFName) JOB(%s/%s/%s) SPLNBR(%s)",
            $SplfName, trim($JobNmbr), trim($JobUser), trim($JobName), $SplfNbr);

        $this->ToolkitSrvObj->ClCommandWithCpf($cmd);
        sleep(1);
        // read the data from temp file
        $Txt = $this->ReadSPLFData();

        // delete temp file
        $dltf   = "DLTF FILE($this->TmpLib/$this->TMPFName)";
        $this->ToolkitSrvObj->ClCommandWithCpf($dltf);

        return $Txt;
    }
public function GetSPLF ( $ SplfName , $ SplfNbr , $ JobNmbr , $ JobName , $ JobUser , $ TMPFName = '' ) { $ this -> clearError ( ) ; if ( $ TMPFName != '' ) { $ this -> TMPFName = $ TMPFName ; } // @todo under the flag for current Object??? $ crtf = "CRTDUPOBJ OBJ(ZSF255) FROMLIB(" . $ this -> ToolkitSrvObj -> getOption ( 'HelperLib' ) . ") OBJTYPE(*FILE) TOLIB($this->TmpLib) NEWOBJ($this->TMPFName)" ; $ this -> ToolkitSrvObj -> ClCommandWithCpf ( $ crtf ) ; // was ClCommand // clear the temp file $ clrpfm = "CLRPFM $this->TmpLib/$this->TMPFName" ; $ this -> ToolkitSrvObj -> ClCommandWithCpf ( $ clrpfm ) ; // these all were CLCommand but we need CPFs. // copy spooled file to temp file $ cmd = sprintf ( "CPYSPLF FILE(%s) TOFILE($this->TmpLib/$this->TMPFName) JOB(%s/%s/%s) SPLNBR(%s)" , $ SplfName , trim ( $ JobNmbr ) , trim ( $ JobUser ) , trim ( $ JobName ) , $ SplfNbr ) ; $ this -> ToolkitSrvObj -> ClCommandWithCpf ( $ cmd ) ; sleep ( 1 ) ; // read the data from temp file $ Txt = $ this -> ReadSPLFData ( ) ; // delete temp file $ dltf = "DLTF FILE($this->TmpLib/$this->TMPFName)" ; $ this -> ToolkitSrvObj -> ClCommandWithCpf ( $ dltf ) ; return $ Txt ; }
multi user using!

@param $SplfName
@param $SplfNbr
@param $JobNmbr
@param $JobName
@param $JobUser
@param string $TMPFName
@return mixed|string
multi user using!