View previous topic :: View next topic
|
Author |
Message |
senthilmurugan
New User
Joined: 19 Feb 2008 Posts: 15 Location: chennai
|
|
|
|
Hi,
I need to use the CARDIN DDNAME for SORTIN. Please help me.
Code: |
//SORT EXEC PGM=SORT
//CARDIN DD *
A000000000000000
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION SORTIN=CARDIN,COPY
OUTREC BNUILD=(1:1,20)
/*
|
the above code is not working i dont why?
Code: |
WER267A SORT STATEMENT : STATEMENT NOT FOUND
|
it is saying SORT statement not found.
I have tried with IDCAMS REPRO also. USing IDCAMS i can copy this CARDIN inline values to other &&TEMP files. But i need to outout file as FB 20.
Please help me move further.
Thanks in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
do You have a doctor' s prescription to use cardin instead of sortin ?
and what about reading the SYNCSORT manuals Yourself ? |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
What is the problem in using SORTIN as DDNAME? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You have SyncSort, so topic moved to the JCL forum, where SyncSort questions live.
Check your SyncSort documentation.
Why do you "have" to use it?
Please always copy/paste your code here, so that we do not end up diverted by typos, like BNUILD.
You could always add
as an investigatory measure. |
|
Back to top |
|
|
senthilmurugan
New User
Joined: 19 Feb 2008 Posts: 15 Location: chennai
|
|
|
|
Thanks Enrico, Pandora and Bill for all your replies.
This Job is getting submitted from the CICS via assembler program. I cannot change the DDNAME from CARDIN which is defined in assembler.
I have read some manuals and found this will work only if we are calling SORT externally. But i dont have any other choice using this DDNAME CARDIN. So i need to override the default SORTIN DD to my CARDIN DD.
If no way in SORT then i have to use IDCAMS first to COPY in first step, then building the FB 20 using SORT in another step.
I could not find the way in SORT. So i came to you all experts. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I think your best bet will be the link that Anuj provided. Have a DD name for CARDIN and then the SORTIN referring to that. |
|
Back to top |
|
|
|