Quote: |
1. I've a file which contains 1000 records. Now i want to copy first 500 records to an output file through JCL. How can i copy? |
Quote: |
2. I've a file which contains NAME, NUMBER, SALARY. Now i want to select the names which starts with 'kiran' and i want to copy those records to FILE1. Likewise i want to select names which starts with 'KUMAR' and i want to copy those records to FILE2. How can i copy using SORT utility? |
Quote: |
3. Suppose i'm calling 3 proceedures in my JCL. For example: ABC DEF GHI Now i want to override the Dataset Names in both ABC and DEF at certain steps. For example, incase of ABC the step name is STEP3, incase of DEF the step name is STEP4. Now the question is, "Where should i overrided the in the JCL"?. |
Quote: |
4. How can i concatenate GDG's and what utility we need to use? |
Code: |
//whatever DD DSN=your.gdg.base, // DISP=SHR |
Quote: |
5. Suppose i've a GDG with 50 versions. Now i want to use all the 50 versions in my JCL. How can i specify this in my JCL? |
Quote: |
6. I've 3 steps in my JCL. Now i'm specifying as follows: STEP1 DDNAME DD DSN=ABC.DEF.GHI( ), DISP=(NEW,CATLG,DELETE) STEP2 DDNAME DD DSN=ABC.DEF.GHI( ), DISP=SHR //* IN STEP2 I WANT TO USE THE SAME GDG VERSION THAT IS CREATED IN STEP1. STEP3 DD DSN=ABC.DEF.GHI( ), DISP=(NEW,CATLG,DELETE) //*IN STEP3 I WANT TO CREATE A NEW GDG VERSION AGAIN. Now the questions are: a) what values do we need to specify in all the dataset names ? |
Code: |
STEP1 DDNAME DD DSN=ABC.DEF.GHI(+1), DISP=(NEW,CATLG,DELETE) STEP2 DDNAME DD DSN=ABC.DEF.GHI(+1), DISP=SHR //* IN STEP2 I WANT TO USE THE SAME GDG VERSION THAT IS CREATED IN STEP1. STEP3 DD DSN=ABC.DEF.GHI(+2), DISP=(NEW,CATLG,DELETE) //*IN STEP3 I WANT TO CREATE A NEW GDG VERSION AGAIN. |
Quote: |
7) How to concatenate VSAM KSDs and what utility do we need to use? |
Quote: |
8. Can we used REPRO command for normal datasets? |
Quote: |
9) Generally PARM parameter is used to pass the data from JCL to program. If i pass NUMERIC DATA through PARM parameter, Can i specify INTEGER DATA TYPE in my cobol program? Like 01 GROUP1. 05 TXT-LENGTH PIC S9(4)COMP. 05 TEXT PIC X( ). Here in the above case can i specify TEXT as 05 TEXT PIC 9( ). ? |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours