GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 20 of 128    Print  
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
Data definition name is the eight character designation after the // of the DD statement. It matches the internal name specified in the steps executing program. In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system (MVS) name for the file.


  
Total Answers and Comments: 1 Last Update: February 20, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 20, 2007 05:07:01   #1  
Soumik Das        

RE: What is the meaning of data definition name (ddnam...

The DD name is the logical 8 characters file name which alllows the pplication program to identify or tag the dataset.

Whereas the DSN is the physical file name used by the MVS to identify the dataset.

like in any application program we can write ...

in COBOL...
SELECT FILE ....ASSIGN TO IOFILE...

in PL/I

DCL IOFILE FILE RECORD OUTPUT ENV(FB RECSIZE(136));

here IOFILE is logical DD name......so during running the appliocation we need to code in the JCL....

//PLI.SYSIN DD *
//IOFILE DD DSN TEST.SAMPLE.DATA DISP SHR

here the DSN is the TEST.SAMPLE.DATA but the application program always identifies it by the DD name rather than the DSN.

 
Is this answer useful? Yes | No

 Related Questions

The JOB, EXEC and DD statement.  
Latest Answer : 1) JOB - To identify the Job2) EXEC - To identify which program has to Execute3) DD - To supply the input/output files required for program execution4) PROC - To indicate the procedure5) PEND - End an inline PROC ...

A keyword in a JCL statement may appear in different places and is recognized by its name, eg. MSGCLASS in the JOB statement. The opposite is positional words, where their meaning is based on their position 
Latest Answer : positional and keyword parameters comes to jcl statements keyword means for information ...

The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFY, CLASS, etc.  
Latest Answer : Notify is misspelled in the answer. ...

The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing 
Latest Answer : EXEC statement refers to a PROGRAM or a PROCEDURE to be executed Syntax: //stepname    EXEC   PGM=pgm-name,parametersOR //stepname     EXEC    procedure-name,parametersParameters are1.Positional(pgm-name,procedure name) 2.Keyword (PARM,REGION,ACCT,COND,TIME) ...

The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program. It links the file names within the program code to the file names know to the MVS operating system. 
Latest Answer : DD statement is the DATA DEFINITION Statement.It's function is to give a symbolic name to a file. This will allow a program to access a file through this name so that the file name may be changed without effecting the program. There are several ...

PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.  
Latest Answer : I believe most give you the flavor of what it is. One of the main reasons for using a PROC is so that you can supply substitution variables. For example if you use a PROC to install software, you might supply a variable like &HLQ so that ...

A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it substitutes for 
Latest Answer : Symbolic parameters are placed in the EXEC statements , and during compilation of the JCL, will replace the value. A typical use of Symbolic variables is, we can write generic PROC to be executed in various test and production regions by using Symbolic ...

RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning.  
Latest Answer : Restart is a keyword which is used in mainframes to restart the perticular step in the job at not the begining ...

What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.

Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets.  
Latest Answer : For concatinating datasets through JCL, we can use MERGE Utility. Condition is that the datasets should be in sorted order. ...


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Presenting Master-Detail Information Using a Dataset

ODP NET Presenting Master Detail Information Using a Dataset As mentioned before a DataSet object can have its own relations between data tables existing in it We can add these relations dynamically at the client side within an application to represent master detail or hierarchical information The f
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape