Yes it should be possible.  One of the benefits of JCL is that for
"simple" sequential datasets you have a reasonable amount of device
independence.

You need to decide which utility you will use to copy the generation
(version) of interest.  Since the generation must be cataloged, you
don't care whether it is on tape or disk.  

You specify the generation (for example, 0 or -1) on the input DD
statement.  You specify the "flat file" on the output DD statement,
remembering to specify the space information, the unit/volume
information, and, if needed, the DCB information.

Exactly what part of this are you having trouble with?  Show your code.

-----Original Message-----
From: Ram Balaji [mailto:[email protected]] 
Sent: Wednesday, January 07, 2009 10:16 AM
To: [email protected]
Subject: JCL Logics involving TAPE and Normal File

Hi all,

I have an urgent requirement. Can anyone help me?

Requirement:

I need to prepare a JCL to perform the following task

1)I have a GDG base say xxx.xxx whose versions might be generated in
"TAPE or DASD"
2)I have to prepare a JCL
                    -  Which will just copy the GDG Version to a Flat
file if the attribute is DASD
                    -  If the GDG Version is TAPE the jcl should conver
it to DASD and copy the converted DASD to a Flat file.


Is this possible using JCL...?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to