 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CL400 parameters</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 12:21:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: The Most-Watched IT Questions: October 11, 2011 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97655</link>
		<dc:creator>The Most-Watched IT Questions: October 11, 2011 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 11 Oct 2011 13:10:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-97655</guid>
		<description><![CDATA[[...] 9. Can you give some insight into CL/400 parameters? [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 9. Can you give some insight into CL/400 parameters? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97276</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 30 Sep 2011 23:07:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-97276</guid>
		<description><![CDATA[&lt;pre&gt;RTVOBJD OBJ(&amp;FILNAM/&amp;FROMLIB) OBJTYPE(*LIB)&lt;/pre&gt;
I would expect that statement to result in a ’INVALID OBJ NAME’ message almost every time.

Tom]]></description>
		<content:encoded><![CDATA[<pre>RTVOBJD OBJ(&amp;FILNAM/&amp;FROMLIB) OBJTYPE(*LIB)</pre>
<p>I would expect that statement to result in a ’INVALID OBJ NAME’ message almost every time.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97252</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Fri, 30 Sep 2011 12:49:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-97252</guid>
		<description><![CDATA[Get rid of the CRTDUPOBJ as it has no value after th eCPYF.
The only thing I see is if the FROMFILE is a multimbr file and TOFILE already exist and is not a multimbr file, you will fail.
If that is not it, you need to check the joblog]]></description>
		<content:encoded><![CDATA[<p>Get rid of the CRTDUPOBJ as it has no value after th eCPYF.<br />
The only thing I see is if the FROMFILE is a multimbr file and TOFILE already exist and is not a multimbr file, you will fail.<br />
If that is not it, you need to check the joblog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97248</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 30 Sep 2011 11:38:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-97248</guid>
		<description><![CDATA[Doesn&#039;t work??? Please be specific.What is in the job log?

If the CPYF works, the CRTDUPOBJ is unnecessary and will throw an error.

Phil]]></description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work??? Please be specific.What is in the job log?</p>
<p>If the CPYF works, the CRTDUPOBJ is unnecessary and will throw an error.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srfnhmd1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97242</link>
		<dc:creator>srfnhmd1</dc:creator>
		<pubDate>Fri, 30 Sep 2011 05:19:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-97242</guid>
		<description><![CDATA[*************** Beginning of data ***************************************
             PGM        PARM(&amp;FILNAM &amp;FROMLIB &amp;TOLIB &amp;STATUS)            
             DCL        VAR(&amp;FILNAM)   TYPE(*CHAR) LEN(10)               
             DCL        VAR(&amp;FROMLIB)  TYPE(*CHAR) LEN(10)               
             DCL        VAR(&amp;TOLIB)    TYPE(*CHAR) LEN(10)               
             DCL        VAR(&amp;STATUS)   TYPE(*CHAR) LEN(1)                
             DCL        VAR(&amp;NEWNAM)   TYPE(*CHAR) LEN(10) VALUE(PF001)  
             DCL        VAR(&amp;IR)       TYPE(*CHAR) LEN(3)                
             DCLF       FILE(PF001)                                      
/*===================================================================*/  
/* CHECK PARAMATERS                                                  */  
/*===================================================================*/  
 FILNAM:     IF        COND(&amp;FILNAM *EQ &#039; &#039;) THEN(DO)                    
                                SNDMSG    MSG(&#039;ERROR NO FILNAME&#039;) TOUSR(*REQUESTER)         
                                GOTO      CMDLBL(END)                                       
                                ENDDO                                                       
                                                                         
 FROMLIB:    IF        COND(&amp;FROMLIB *EQ &#039; &#039;) THEN(CHGVAR +              
                                   VAR(&amp;FROMLIB) VALUE(&#039;*LIBL&#039;))                  
CHKOBJ:     RTVOBJD   OBJ(&amp;FILNAM/&amp;FROMLIB) OBJTYPE(*LIB)              
            MONMSG    MSGID(CPF0000) EXEC(DO)                          
            SNDMSG    MSG(&#039;INVALID OBJ NAME&#039;) TOUSR(*REQUESTER)        
            GOTO      CMDLBL(END)                                      
            ENDDO                                                      
                                                                       
TOLIB:      IF        COND(&amp;TOLIB *EQ &#039; &#039;) THEN(DO)                    
                  SNDMSG    MSG(&#039;TOLIB IS EMPTY&#039;) TOUSR(*REQUESTER)          
                  GOTO      CMDLBL(END)                                      
                  ENDDO                                                      
                                                                       
                  RTVOBJD   OBJ(&amp;TOLIB) OBJTYPE(*LIB)                        
                  MONMSG    MSGID(CPF0000) EXEC(DO)                          
                  SNDMSG    MSG(&#039;TOLIB IS INVALID&#039;) TOUSR(*REQUESTER)        
                  GOTO      CMDLBL(END)                                      
                  ENDDO                                                      
                                                                       
            CHGVAR    VAR(&amp;NEWNAM) VALUE(%SST(&amp;FILNAM 1 8) +           
                          *TCAT &#039;*&#039;)                                   
            CHKOBJ     OBJ(&amp;TOLIB/&amp;NEWNAM) OBJTYPE(*FILE)              
            MONMSG     MSGID(CPF0000) EXEC(DO)                           
            SNDMSG     MSG(&#039;OBJ NOT FOUND&#039;) TOUSR(*REQUESTER)            
            GOTO       CMDLBL(END)                                       
            ENDDO                                                        
                                                                         
STATUS:     IF        COND(&amp;STATUS *EQ &#039;Y&#039;) THEN(CHGVAR +                
                       VAR(&amp;STATUS) VALUE(&#039;*YES&#039;))                       
            ELSE      DO                                                 
            IF        COND(&amp;STATUS *EQ &#039;N&#039;) THEN(CHGVAR +                
                      VAR(&amp;STATUS) VALUE(&#039;*NO&#039;))                         
            ENDDO                                                        
                                                                        
                                                                       
NEXT:       RCVF                                                         
            MONMSG CPF0864 EXEC(GOTO END)                                
            RTVMBRD    FILE(&amp;FROMLIB/&amp;FILNAM) FILEATR(&amp;IR)               
            IF        COND(&amp;IR *EQ *PF) THEN(DO)                         
             CPYF       FROMFILE(&amp;FROMLIB/&amp;FILNAM) +                          
                          TOFILE(&amp;TOLIB/&amp;NEWNAM) FROMMBR(*ALL) +              
                          TOMBR(*FROMMBR) MBROPT(*REPLACE) +                  
                          CRTFILE(*YES)                                       
             CRTDUPOBJ  OBJ(&amp;FILNAM) FROMLIB(&amp;FROMLIB) OBJTYPE(*ALL) +        
                           TOLIB(&amp;TOLIB) NEWOBJ(&amp;NEWNAM)                      
             ENDDO                                                            
             GOTO      CMDLBL(NEXT)                                           
                                                                              
END:         ENDPGM                                                           



(In the above pgm i have written for copying for *pf alone but , its not workin. suggest if any code change is required)]]></description>
		<content:encoded><![CDATA[<p>*************** Beginning of data ***************************************<br />
             PGM        PARM(&amp;FILNAM &amp;FROMLIB &amp;TOLIB &amp;STATUS)<br />
             DCL        VAR(&amp;FILNAM)   TYPE(*CHAR) LEN(10)<br />
             DCL        VAR(&amp;FROMLIB)  TYPE(*CHAR) LEN(10)<br />
             DCL        VAR(&amp;TOLIB)    TYPE(*CHAR) LEN(10)<br />
             DCL        VAR(&amp;STATUS)   TYPE(*CHAR) LEN(1)<br />
             DCL        VAR(&amp;NEWNAM)   TYPE(*CHAR) LEN(10) VALUE(PF001)<br />
             DCL        VAR(&amp;IR)       TYPE(*CHAR) LEN(3)<br />
             DCLF       FILE(PF001)<br />
/*===================================================================*/<br />
/* CHECK PARAMATERS                                                  */<br />
/*===================================================================*/<br />
 FILNAM:     IF        COND(&amp;FILNAM *EQ &#8216; &#8216;) THEN(DO)<br />
                                SNDMSG    MSG(&#8216;ERROR NO FILNAME&#8217;) TOUSR(*REQUESTER)<br />
                                GOTO      CMDLBL(END)<br />
                                ENDDO                                                       </p>
<p> FROMLIB:    IF        COND(&amp;FROMLIB *EQ &#8216; &#8216;) THEN(CHGVAR +<br />
                                   VAR(&amp;FROMLIB) VALUE(&#8216;*LIBL&#8217;))<br />
CHKOBJ:     RTVOBJD   OBJ(&amp;FILNAM/&amp;FROMLIB) OBJTYPE(*LIB)<br />
            MONMSG    MSGID(CPF0000) EXEC(DO)<br />
            SNDMSG    MSG(&#8216;INVALID OBJ NAME&#8217;) TOUSR(*REQUESTER)<br />
            GOTO      CMDLBL(END)<br />
            ENDDO                                                      </p>
<p>TOLIB:      IF        COND(&amp;TOLIB *EQ &#8216; &#8216;) THEN(DO)<br />
                  SNDMSG    MSG(&#8216;TOLIB IS EMPTY&#8217;) TOUSR(*REQUESTER)<br />
                  GOTO      CMDLBL(END)<br />
                  ENDDO                                                      </p>
<p>                  RTVOBJD   OBJ(&amp;TOLIB) OBJTYPE(*LIB)<br />
                  MONMSG    MSGID(CPF0000) EXEC(DO)<br />
                  SNDMSG    MSG(&#8216;TOLIB IS INVALID&#8217;) TOUSR(*REQUESTER)<br />
                  GOTO      CMDLBL(END)<br />
                  ENDDO                                                      </p>
<p>            CHGVAR    VAR(&amp;NEWNAM) VALUE(%SST(&amp;FILNAM 1 8) +<br />
                          *TCAT &#8216;*&#8217;)<br />
            CHKOBJ     OBJ(&amp;TOLIB/&amp;NEWNAM) OBJTYPE(*FILE)<br />
            MONMSG     MSGID(CPF0000) EXEC(DO)<br />
            SNDMSG     MSG(&#8216;OBJ NOT FOUND&#8217;) TOUSR(*REQUESTER)<br />
            GOTO       CMDLBL(END)<br />
            ENDDO                                                        </p>
<p>STATUS:     IF        COND(&amp;STATUS *EQ &#8216;Y&#8217;) THEN(CHGVAR +<br />
                       VAR(&amp;STATUS) VALUE(&#8216;*YES&#8217;))<br />
            ELSE      DO<br />
            IF        COND(&amp;STATUS *EQ &#8216;N&#8217;) THEN(CHGVAR +<br />
                      VAR(&amp;STATUS) VALUE(&#8216;*NO&#8217;))<br />
            ENDDO                                                        </p>
<p>NEXT:       RCVF<br />
            MONMSG CPF0864 EXEC(GOTO END)<br />
            RTVMBRD    FILE(&amp;FROMLIB/&amp;FILNAM) FILEATR(&amp;IR)<br />
            IF        COND(&amp;IR *EQ *PF) THEN(DO)<br />
             CPYF       FROMFILE(&amp;FROMLIB/&amp;FILNAM) +<br />
                          TOFILE(&amp;TOLIB/&amp;NEWNAM) FROMMBR(*ALL) +<br />
                          TOMBR(*FROMMBR) MBROPT(*REPLACE) +<br />
                          CRTFILE(*YES)<br />
             CRTDUPOBJ  OBJ(&amp;FILNAM) FROMLIB(&amp;FROMLIB) OBJTYPE(*ALL) +<br />
                           TOLIB(&amp;TOLIB) NEWOBJ(&amp;NEWNAM)<br />
             ENDDO<br />
             GOTO      CMDLBL(NEXT)                                           </p>
<p>END:         ENDPGM                                                           </p>
<p>(In the above pgm i have written for copying for *pf alone but , its not workin. suggest if any code change is required)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97207</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 29 Sep 2011 16:05:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-97207</guid>
		<description><![CDATA[Now it&#039;s time for you to write some code.  Send us issues, questions, etc.]]></description>
		<content:encoded><![CDATA[<p>Now it&#8217;s time for you to write some code.  Send us issues, questions, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97204</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:51:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-97204</guid>
		<description><![CDATA[When you do the CRTDUPOBJ for the logicals, be sure to have the new library at the beginning of your library list.
One standard many companies use is to use the same name for the PF and LF with just haveing a different suffix
Something like 
myfilePF
myfileLF
myfileLFx
If you do something like this, you can set you rlibrary list and then do 
CRTDUPOBJ myfile* *LIBL *FILE newlibrary
This will do all with one instruction]]></description>
		<content:encoded><![CDATA[<p>When you do the CRTDUPOBJ for the logicals, be sure to have the new library at the beginning of your library list.<br />
One standard many companies use is to use the same name for the PF and LF with just haveing a different suffix<br />
Something like<br />
myfilePF<br />
myfileLF<br />
myfileLFx<br />
If you do something like this, you can set you rlibrary list and then do<br />
CRTDUPOBJ myfile* *LIBL *FILE newlibrary<br />
This will do all with one instruction</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97201</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:26:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-97201</guid>
		<description><![CDATA[I think you would
1. use CRTDUPOBJ to create the physhical file in the new library
2. use DSPDBR to find the logical files to an outfile
3. use CRTDUPOBJ to create the logicals.
Phil]]></description>
		<content:encoded><![CDATA[<p>I think you would<br />
1. use CRTDUPOBJ to create the physhical file in the new library<br />
2. use DSPDBR to find the logical files to an outfile<br />
3. use CRTDUPOBJ to create the logicals.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srfnhmd1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl400-9/#comment-97198</link>
		<dc:creator>srfnhmd1</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:03:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-97198</guid>
		<description><![CDATA[Please let me know with an example code????]]></description>
		<content:encoded><![CDATA[<p>Please let me know with an example code????</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.043 seconds using memcached
Object Caching 379/385 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 13:15:19 -->