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?
jcl interview questions.
Moderator: Moderator Group
Re: jcl interview questions.
Then the submitter won't receive a notification when the job ends.sumit_mainframe1 wrote:Q1. What will happen if we don't mention NOTIFY parameter in the job statement?
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".sumit_mainframe1 wrote:Q2. Only using JCL how can we change an FB file to VB file format?
-
- Member
- Posts: 1
- Joined: Tue May 22, 2012 10:46 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]
//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]
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
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:
3.
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 .
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:
2. The CONVERT parameter is functionally equivalent to VTOFYou 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.
(emphasis added by dbz)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.
3.
4. Though you were correct, the CONVERT parm is used for VB to FB,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
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.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page