What is the difference between a PDS member and a GDG
Generation ? Is it only this, that with a generation we can
use +1, 0, -1 etc while with PDS member we can not ?

Answer Posted / zos13

To understand the difference between PDS and GDG, you need to know the difference between PDS and PS.

PDS is like a folder of Windows with limitation it can not contain another folder(S), but Windows can do.

PDS may contain Programs, JCL's, Files(input/output) etc and they are called members.
If you wan to access a particular member, you need to give complete path like userid.xxxx.xxxx(memname).

PS is a single, independent file created by option 3.2 using Directory =0 or, PS or through JCL with DCB, SPACE, UNIT parameters etc.

Now coming to GDG's, they are similiar to PS with only difference if limit is 5 then there will be a kind of relation between all GDG's or their versions.

You can use (0), (-1), (-2), (+1) etc. based on creation or version or by giving the complete path(GDG name with GnnnnVnn).

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call instream to catalog and catalog to instream?

685


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1754


Why include statement is used in a jcl?

691


Is condition checking possible in jcl? If yes, how?

738


Where can program checkpoints be stored for use in a restart?

851






what is DSN in JCL and what are the parameters to declare the DSN?

724


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

862


what is use of dcb parameter in dd statement?

778


what sort card you will use to copy the data from one dataset to another dataset?

734


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

916


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7091


What do you understand by jcl?

632


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2174


What is the format of comment statement?

673


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

673