Hi Ram,

In your original post you cited the "..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."

In a subsequent post you correctly stated that a "Flat file is just a
sequential file."

Now given that tapes by the very nature only offer the capability to store
sequential (flat) files in native form, and that a GDG is a collection of
GDS's, each being a sequential data set there should be scope for
accomplishing your task with any of the following: IEBGENER, IEBDG, IDCAMS
(REPRO), SORT, to name a few and there may well be others especially non-IBM
utilities.

IEBGENER and IEBDG are well documented in the Utilities manual, and IDCAMS
is in the Access Method Services for Catalogs manual, both of which are in
the SMS bookshelf.

As somebody else mention conversion may not be an issue if the GDG data set
is produced by an application as a sequential data set. All that is required
is to change the DSN to an appropriate value, and calculate a valid SPACE
parameter. (If the GDG is already on disk, then the SPACE parameter can be
judged from its current occupancy).

The only conversion exercise which may be necessary is if the GDG data set
is not a native sequential data set, but an unload form of some other data
set type or types as produced by IEBCOPY, IDCAMS VSAM EXPORT, or ADRDSSU
(DFDSS). In this instance the issue does become more complicated.

Given the general simplicity outlined above, and the lack of supporting
evidence suggesting research with the initial post, it does lead people to
the conclusion that some form of training exercise is being undertaken via a
short cut.

Hopefully with access to the correct manuals you will be able to accomplish
your task.

Kind regards - Terry

Terry Sambrooks
Director
KMS-IT Limited
228 Abbeydale Road South
Dore, Sheffield, S17 3LA, UK

Tel: +44 (0)114 262 0933
WEB: www.legac-e.co.uk

Company Reg: 3767263 at the above address

All outgoing E-mail is scanned, but it remains the recipient's
responsibility to ensure their system is protected from spy-ware, trojans,
viruses, and worms.  

----------------------------------------------------------------------
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