View previous topic :: View next topic |
Author |
Message |
maincool Beginner
Joined: 10 Nov 2006 Posts: 1 Topics: 1
|
Posted: Fri Nov 10, 2006 5:49 am Post subject: Interview Questions |
|
|
1) How can we add a piece of code in a JCL to find that a file (assume a data file) is empty?
2)How can we copy a VSAM structure in a cobol program? Will the new new VSAM file have the same attributes (Path, alternate index) as the original one? If we will copy the new structure to old one which errors will come?
3)How can we code a step in a JCL so it will never execute? Without using condition code??
4)We pass a file to JOB1 thru front hand. JOB2 executes daily. JOB1 should only run when that file is arrived. How that job will recognize that file is arrived?? Also when JOB1 runs, step 3 & 5 should not run in JOB2? How to do it? |
|
Back to top |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Fri Nov 10, 2006 7:13 am Post subject: |
|
|
1)
//STEPA EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INDATASET(PWSX.N5HAVI2.MODEL.LIST.NOMATCH.NY) COUNT(1)
//*
//IFSTEPB IF STEPA.RC=0
NEXT STEPS....
//ENDIF ENDIF
3) //IFSTEPB IF STEPA.RC<0
NEXT STEPS....
//ENDIF ENDIF
4) use scheduling tool. |
|
Back to top |
|
 |
|
|