jcl interview questions.

jcl interview questions

Moderator: Moderator Group

Post Reply
sumit_mainframe1
Member
Posts: 1
Joined: Fri Feb 05, 2010 5:53 pm

jcl interview questions.

Post by sumit_mainframe1 » Fri Feb 05, 2010 5:58 pm

Q1. What will happen if we don't mention NOTIFY parameter in the job statement?

Q2. Only using JCL how can we change an FB file to VB file format?

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Re: jcl interview questions.

Post by MrSpock » Fri Feb 05, 2010 6:17 pm

sumit_mainframe1 wrote:Q1. What will happen if we don't mention NOTIFY parameter in the job statement?
Then the submitter won't receive a notification when the job ends.
sumit_mainframe1 wrote:Q2. Only using JCL how can we change an FB file to VB file format?
You can't do that "Only using JCL". All the JCL does is define a job and what programs and resources that job needs to function. An appropriate program must be used. If you have DFSORT available, you can go to the DFSORT Topics Website and look for the Smart DFSORT Tricks document. Inside you'll find a section titled "FB to VB conversion".

RaniRautray
Member
Posts: 1
Joined: Tue May 22, 2012 10:46 am

Post by RaniRautray » Tue May 22, 2012 11:02 am

Hi,


//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:5,length of output file),
CONVERT
/*


VB file takes extra 4 bytes, so in the outrec start with 5th byte to the length of the file.
The keyword CONVERT will change the VB file to FB format.

Converting an FB file to VB file can be done programatically.

[/list][/list]

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue May 22, 2012 11:31 am

Rani Rautray,
welcome to the forum.
i would suggest that you insure that your answers are correct before posting,
especially since MrSpock gave a correct answer 2 years ago.

1. one of my favorite subjects is the miss-use of the term JCL.
MrSpock provided the correct guidance:
You can't do that "Only using JCL". All the JCL does is define a job and what programs and resources that job needs to function. An appropriate program must be used.
2. The CONVERT parameter is functionally equivalent to VTOF
z/OS V1R12.0 DFSORT Application Programming Guide wrote:You can use the BUILD or OUTREC parameter in conjunction with the VTOF or CONVERT parameter to convert variable-length record data sets to fixed-length record data sets.
(emphasis added by dbz)

3.
z/OS V1R12.0 DFSORT Application Programming Guide wrote:You can use the BUILD or OUTREC parameter with the FTOV parameter to convert fixed-length record data sets to variable-length record data sets
4. Though you were correct, the CONVERT parm is used for VB to FB,
the original question was for FB to VB.

5. Your control cards for OUTREC (when using CONVERT to go from VB to FB)
are incorrect.

please do not post junk,
test your control cards before cluttering-up a 5-year-old post with misinformation .
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others