The following line is showing the syntax error while submitting the jcl
43,3,PD,TRAN=ALTSEQ,EDIT=(ST.TTTT),SIGNS=(,-),C'|',3X
Can you pls tell whether the code is right? If not, what is the remedy?
conversion by using SORT
Moderators: Frank Yaeger, DikDude, Moderator Group
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
no it is not correct if you are getting a syntax error.
had you bothered to provide us with both lines (the one you provided and the next line in the spool, which indicates where the syntax error is (column).
remedy is correct your syntax error
had you bothered to provide us with both lines (the one you provided and the next line in the spool, which indicates where the syntax error is (column).
remedy is correct your syntax error
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.
We have the following scenario:
Input file: contains value unloaded from a table. The given column is of the format: Packed decimal(Comp-3) values and a Nullable field.
Input File format:
7994052604901996-03-08-12.45.52.938604 ..?...?
7994061415221996-01-05-20.15.42.822969S....?..
7994091513521996-01-05-20.14.48.121947S....?..
7994091708891996-07-31-09.37.24.992121 ..?...?
In this, the columns 40 to 42 and 43 to 46 should be converted to a readable format.
These two fields' format : Small Int(length:2 - Nullable field) and Decimal(length:5,4 - Nullable field).
The requirment is, the values from 40 - 46 should be converted to a readable format with the null values represented using special character (&).
The output should look something like:
799405260490|1996-03-08-12.45.52.938604| |&&&&|&.&&&&| --> where "&" is the special character representing the Null values available in the input file. "|" is the delimiter between the columns.
799405260490|1996-03-08-12.45.52.938604|S|1111|1.0444| --> where the 1111|1.0444 represents proper values available in the column.
Kindly let us know the DFsort procedure which caters to the above requirement. [/img]
Input file: contains value unloaded from a table. The given column is of the format: Packed decimal(Comp-3) values and a Nullable field.
Input File format:
7994052604901996-03-08-12.45.52.938604 ..?...?
7994061415221996-01-05-20.15.42.822969S....?..
7994091513521996-01-05-20.14.48.121947S....?..
7994091708891996-07-31-09.37.24.992121 ..?...?
In this, the columns 40 to 42 and 43 to 46 should be converted to a readable format.
These two fields' format : Small Int(length:2 - Nullable field) and Decimal(length:5,4 - Nullable field).
The requirment is, the values from 40 - 46 should be converted to a readable format with the null values represented using special character (&).
The output should look something like:
799405260490|1996-03-08-12.45.52.938604| |&&&&|&.&&&&| --> where "&" is the special character representing the Null values available in the input file. "|" is the delimiter between the columns.
799405260490|1996-03-08-12.45.52.938604|S|1111|1.0444| --> where the 1111|1.0444 represents proper values available in the column.
Kindly let us know the DFsort procedure which caters to the above requirement. [/img]
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
The syntax error you received would be as follows:
You have a couple of different items intermixed. You can have:
43,3,TRAN=ALTSEQ
and you can have:
43,3,PD,EDIT=(ST.TTTT),SIGNS=(,-)
but you can't intermix these two as you've done.
I can't really tell from your description what you're trying to do. I don't know what you mean by
Also, explain the "rules" for getting from your input values to your output values, and exactly what you mean by the following in terms of the hexadecimal display of this field
Code: Select all
INREC BUILD=(43,3,PD,TRAN=ALTSEQ,EDIT=(ST.TTTT),SIGNS=(,-),C'|',3X)
$
ICE007A E SYNTAX ERROR
43,3,TRAN=ALTSEQ
and you can have:
43,3,PD,EDIT=(ST.TTTT),SIGNS=(,-)
but you can't intermix these two as you've done.
I can't really tell from your description what you're trying to do. I don't know what you mean by
Please show what your input looks like in hexadecimal.These two fields' format : Small Int(length:2 - Nullable field) and Decimal(length:5,4 - Nullable field).
Also, explain the "rules" for getting from your input values to your output values, and exactly what you mean by the following in terms of the hexadecimal display of this field
The requirment is, the values from 40 - 46 should be converted to a readable format with the null values represented using special character (&).
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
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