MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Interview Questions

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
maincool
Beginner


Joined: 10 Nov 2006
Posts: 1
Topics: 1

PostPosted: Fri Nov 10, 2006 5:49 am    Post subject: Interview Questions Reply with quote

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
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Fri Nov 10, 2006 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group