how GDGs are concatinated?
Answers were Sorted based on User's Feedback
Answer / nygrande
If we use the base of the GDG only, all generations will be
concatenated.
If we want to use specific GDG generations, we can code as:
//FILEA DD DSN=NAME.OF.FILE(-5),DISP=SHR
// DD DSN=NAME.OF.FILE(-2),DISP=SHR
// DD DSN=NAME.OF.FILE(-1),DISP=SHR
// DD DSN=NAME.OF.FILE(0),DISP=SHR
or use the GDG complete DSN, as G0000V00. For example:
//FILEA DD DSN=NAME.OF.FILE.G0001V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0003V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0004V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0005V00,DISP=SHR
| Is This Answer Correct ? | 2 Yes | 0 No |
what is the use of temporary files?
I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended with bad records coming from unix. I recovered that by deleting the bad data. I need permenant solution how to fix the issue? The record is getting characters in in first 9 positions which it should not. Please provide me the solution how to skip the records if it finds the charcters in the first 9 positions. K
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.
Whats error code s222?
if we compile the cobol+ db2 program now ofter 5 years we need to compile again?
Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?
What is the function of job statement in jcl?
How to change default PROCLIB?
What statement can be used to send data to another mvs jes3 node?
01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable