IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

How to use other DDNAMES for SORTIN?


 
IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
senthilmurugan

New User


Joined: 19 Feb 2008
Posts: 15
Location: chennai

PostPosted: Fri Apr 26, 2013 12:12 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10695
Location: italy

PostPosted: Fri Apr 26, 2013 12:15 pm
Reply with quote

do You have a doctor' s prescription to use cardin instead of sortin ?

and what about reading the SYNCSORT manuals Yourself ?
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1566
Location: Andromeda Galaxy

PostPosted: Fri Apr 26, 2013 12:17 pm
Reply with quote

What is the problem in using SORTIN as DDNAME?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Fri Apr 26, 2013 12:17 pm
Reply with quote

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

Code:
  SORT FIELDS=COPY


as an investigatory measure.
Back to top
View user's profile Send private message
senthilmurugan

New User


Joined: 19 Feb 2008
Posts: 15
Location: chennai

PostPosted: Fri Apr 26, 2013 12:36 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6251
Location: Mumbai, India

PostPosted: Fri Apr 26, 2013 3:39 pm
Reply with quote

Check if this helps: Use [URL] BBCode for Links
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Fri Apr 26, 2013 4:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> SYNCSORT
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts How to free (unalloc) data sets and d... TSO/ISPF 4
No new posts IDCAMS & LISTCAT with ddnames JCL & VSAM 1
No new posts Can you write 2 recs on SORTOUT when ... DFSORT/ICETOOL 6
No new posts Referback the DCB of SORTIN while usi... CLIST & REXX 7
No new posts How to use SORT when SORTIN is DUMMY SYNCSORT 4

Back to Top