Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use other DDNAMES for SORTIN?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
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    Post subject: How to use other DDNAMES for SORTIN?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Apr 26, 2013 12:15 pm    Post subject: Reply to: How to use other DDNAMES for SORTIN?
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: 1529
Location: Andromeda Galaxy

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

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7230

PostPosted: Fri Apr 26, 2013 12:17 pm    Post subject: Reply to: How to use other DDNAMES for SORTIN?
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    Post subject:
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: 6258
Location: Mumbai, India

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

Check if this helps: http://ibmmainframes.com/about44839.html
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7230

PostPosted: Fri Apr 26, 2013 4:31 pm    Post subject: Reply to: How to use other DDNAMES for SORTIN?
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    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Referback the DCB of SORTIN while usi... venksiv CLIST & REXX 7 Tue Mar 15, 2016 5:47 pm
No new posts How to use SORT when SORTIN is DUMMY MSTP SYNCSORT 4 Wed Jul 23, 2014 9:29 am
No new posts Alternate DDNAMEs for SORTIN, SORTOUT... Steve Coalbran DFSORT/ICETOOL 12 Fri Oct 18, 2013 12:24 pm
No new posts SORTIN assuming different RECFM for a... Vinodh S JCL & VSAM 8 Thu Feb 21, 2013 8:06 am
No new posts Wild character usage in SORTIN sen_1983us JCL & VSAM 2 Tue Feb 14, 2012 1:34 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us