If a gdg contains 20 versions ..
how to copy those versions ps?
Answers were Sorted based on User's Feedback
Answer / siva
use IEBGENER or REPRO
Assume that you have already created ps
Example :
//iebgen1 exec pgm=iebgener
//sysprint dd sysout=*
//sysut1 dd dsn=your.gdg.name, disp=shr
//sysut2 dd dsn=your.ps.name, disp=old
//sysin dd dummy
//
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / mdvasanth86
You will not have 20 versions, you might have 20 Generations.
If you want all the data from the GDG copied to another PS
file , you can use the GDG base as the input and copy to a
sequential PS file.
SORTIN -> GDG base
SORTOUT -> PS FILE
EXEC PGM=SORT
OPTION COPY
HTH
| Is This Answer Correct ? | 2 Yes | 0 No |
suppose I have two tables a and b. Both tables are connected with ssn number as foreign key. I want to retrieve a column data from b table. How will you write a query?
how do u debug without using xpeditor ?
Can you define a gdg?
How many bytes does a s9(7) sign trailing separate field occupy ?
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend. What is wrong with it?
we cant write data into file using cl program then what is sndf
What is the difference between Verify & Index in PL/1?
Explain the meaning of spufi?
What is the function of iebgener?
Is the order of the when clause important in an evaluate statement? Is the order of the when clause significant in an evaluate statement?
What is COUNTERS in PL/1? How to assign the COUNTER variables? WHich Data Type it can be used for this?
When are scope terminators compulsory?