Max cc=0016 For sorting using jcl
Moderators: Frank Yaeger, DikDude, Moderator Group
Max cc=0016 For sorting using jcl
Please help me to find out the solution.Please be polite.i am new student of mainframe.
following is the jcl.
000001 //NEWD9876 JOB 1,NOTIFY=NEWD9876
000002 //SORT01 EXEC PGM=SORT
000003 //SYSOUT DD SYSOUT=*
000004 //SYSPRINT DD SYSOUT=*
000005 //SYSUDUMP DD SYSOUT=*
000006 //SORTIN DD DISP=SHR,DSN=NEWD9876.JCL(ASCII)
000007 //SORTOUT DD SYSOUT=*
000008 //SYSTSIN DD *
000009 SORT FIELDS=(1,1,CH,A)
000010 /*
following is the jcl.
000001 //NEWD9876 JOB 1,NOTIFY=NEWD9876
000002 //SORT01 EXEC PGM=SORT
000003 //SYSOUT DD SYSOUT=*
000004 //SYSPRINT DD SYSOUT=*
000005 //SYSUDUMP DD SYSOUT=*
000006 //SORTIN DD DISP=SHR,DSN=NEWD9876.JCL(ASCII)
000007 //SORTOUT DD SYSOUT=*
000008 //SYSTSIN DD *
000009 SORT FIELDS=(1,1,CH,A)
000010 /*
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
If you use the code tags in the editor it preserves spacing so that we can more easily analyse your code.
It also helps to provide the output from the program - that will provide the error messages.
As you have a sort problem you should have posted in the sort part of the forum.
Does your SORT FIELDS start in column 1? If so, read the manual. Sort control cards do NOT start in column 1 unless the value is a label.
If you want us to be polite then you should be polite and read the forum rules before posting and study the forum layout so tyhat you post in the correct section.
It also helps to provide the output from the program - that will provide the error messages.
As you have a sort problem you should have posted in the sort part of the forum.
Does your SORT FIELDS start in column 1? If so, read the manual. Sort control cards do NOT start in column 1 unless the value is a label.
If you want us to be polite then you should be polite and read the forum rules before posting and study the forum layout so tyhat you post in the correct section.
Regards
Nic
Nic
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Re: Max cc=0016 For shorting using jcl
Code: Select all
//SYSTSIN DD *
Code: Select all
//SYSIN DD *
You probably have an error message in the sysout saying that SYSIN is missing.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
No problem.
If you actually want to do something with your example, you'll likely need to look at the sort key you have specified. You show 1,1, which is start position one for a length of one. This will get everything in sorted order on one byte only, the first, which is perhaps not what you want. Take the start of the field you want to sequence on, the length of the field, and whether you want the sort ascending (A) or descending (D).
If you actually want to do something with your example, you'll likely need to look at the sort key you have specified. You show 1,1, which is start position one for a length of one. This will get everything in sorted order on one byte only, the first, which is perhaps not what you want. Take the start of the field you want to sequence on, the length of the field, and whether you want the sort ascending (A) or descending (D).
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Glad, you got it working however, for a SORT application (SynCSort and DFsort) - one does not need these DD statements: SYSPRINT and SYSUDUMP. You can remove them and execute the Job again.
Also, MAXZNM - is it you or some spammer - I'm not sure but why the word "works" comes as embedded hyperlink in your post?
Also, MAXZNM - is it you or some spammer - I'm not sure but why the word "works" comes as embedded hyperlink in your post?
Regards,
Anuj
Anuj
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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