<?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"
	>
<channel>
	<title>Comments on: DDS with temporary name for Physical file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/dds-with-temporary-name-for-physical-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-with-temporary-name-for-physical-file/</link>
	<description></description>
	<pubDate>Fri, 27 Nov 2009 23:47:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Lenny2113</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-with-temporary-name-for-physical-file/#comment-62115</link>
		<dc:creator>Lenny2113</dc:creator>
		<pubDate>Thu, 09 Apr 2009 20:21:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-62115</guid>
		<description>Martin, Phil : 

Thank you for your help.  My background is mainframe where JCL is used instead of CL...
I am not sure how this can be done.  Please pardon my ignorance.

If in my CL program I do RUNSQLSTM command should the source for CREATE VIEW be in a specific file type?

This is a code from my CL program which defines physical file called &#38;WKPF: 

             CRTPF      FILE(QS36F/&#38;WKPF) SRCFILE(LENNYTEST/QDDSSRC) + 
                          SRCMBR(G4TENSWK) OPTION(*NOSRC *NOLIST) +    
                          LVLCHK(*NO)                                  
             [B]RUNSQLSTM  SRCFILE(LENNYTEST/QDDSSRC) SRCMBR(CRTQRY1)    [/B] 
/*           CRTLF      FILE(QS36F/&#38;WKLF) SRCFILE(LENNYTEST/QDDSSRC) + 
                          SRCMBR(G4TENSLF)                */           
/*                                                        */           
/*                                                        */           
In  CREATE VIEW statement can I code symbolic parameters which are given value in my CL program?

CREATE VIEW &#38;WKLF    -- (parameter is supplied from CL)
 AS SELECT     COMPNY, 
                            PROJNO,
                            BLDNUM,
                           UNTNUM
FROM &#38;WKPF ; 


This is my logical file that I need to replace by  "create view" 
A          R G4TENSR                   PFILE(G4TENSWK)  
A*                                                      
A          K COMPNY                                     
A          K PROJNO                                     
A          K BLDNUM                                     
A          K UNTNUM                                     


Thank you !
Lenny</description>
		<content:encoded><![CDATA[<p>Martin, Phil : </p>
<p>Thank you for your help.  My background is mainframe where JCL is used instead of CL&#8230;<br />
I am not sure how this can be done.  Please pardon my ignorance.</p>
<p>If in my CL program I do RUNSQLSTM command should the source for CREATE VIEW be in a specific file type?</p>
<p>This is a code from my CL program which defines physical file called &amp;WKPF: </p>
<p>             CRTPF      FILE(QS36F/&amp;WKPF) SRCFILE(LENNYTEST/QDDSSRC) +<br />
                          SRCMBR(G4TENSWK) OPTION(*NOSRC *NOLIST) +<br />
                          LVLCHK(*NO)<br />
             <b>RUNSQLSTM  SRCFILE(LENNYTEST/QDDSSRC) SRCMBR(CRTQRY1)    </b><br />
/*           CRTLF      FILE(QS36F/&amp;WKLF) SRCFILE(LENNYTEST/QDDSSRC) +<br />
                          SRCMBR(G4TENSLF)                */<br />
/*                                                        */<br />
/*                                                        */<br />
In  CREATE VIEW statement can I code symbolic parameters which are given value in my CL program?</p>
<p>CREATE VIEW &amp;WKLF    &#8212; (parameter is supplied from CL)<br />
 AS SELECT     COMPNY,<br />
                            PROJNO,<br />
                            BLDNUM,<br />
                           UNTNUM<br />
FROM &amp;WKPF ; </p>
<p>This is my logical file that I need to replace by  &#8220;create view&#8221;<br />
A          R G4TENSR                   PFILE(G4TENSWK)<br />
A*<br />
A          K COMPNY<br />
A          K PROJNO<br />
A          K BLDNUM<br />
A          K UNTNUM                                     </p>
<p>Thank you !<br />
Lenny</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->