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
 

 

Use the same attributes which sortin holds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu May 22, 2008 4:37 pm    Post subject: Use the same attributes which sortin holds
Reply with quote

Dear all,

I would like to use the same attributes which sortin holds. Instead of repeating the attributes how do i extract to sortout, which is a new DSN.

Eg:
Code:
//SORTIN    DD DSN=A.B.C,DISP=SHR
//SORTOUT DD DSN=A.B.C.NEW,DISP(NEW,DEL,CATLG),
//                    DCB=??????


Please advise
Back to top
View user's profile Send private message

yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 22, 2008 4:47 pm    Post subject: Reply to: Sortin attributes
Reply with quote

Write DCB=*.SORTIN for NEW DSN.

Correct me, if its wrong.

Yogeshwar
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu May 22, 2008 4:52 pm    Post subject: Reply to: Sortin attributes
Reply with quote

kha,

You can use DCB=(*.SORTIN)
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu May 22, 2008 7:07 pm    Post subject:
Reply with quote

Yeah, this
Quote:
DCB=(*.SORTIN)
is correct, but if SORTIN is on TAPE & SORTOUT is on DASD, it would "kill" a lot of DASD sapce.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu May 22, 2008 7:13 pm    Post subject:
Reply with quote

Thanks for your prompt response. Job went fine.

Anju,
Thanks for your tip! SORTIN is in DASD. No issues icon_smile.gif icon_cool.gif
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu May 22, 2008 7:47 pm    Post subject:
Reply with quote

Hi all,

A quick Query.. ie., It's known that INREC and OUTREC does the same job the diff is INREC process before sorting and OUTREC process after sorting. Nothing in parameters need to be changed right? I am facing a problem that if i use INREC FIELDS... the job goes cool but if i use OUTREC the Job gets abended!!! Can you please advise me!!
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu May 22, 2008 7:57 pm    Post subject:
Reply with quote

What does that have to do with the current thread? If you want an answer instead of just some guesses you need to provide more information.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu May 22, 2008 8:06 pm    Post subject: Reply to: Use the same attributes which sortin holds
Reply with quote

Hey i am sorry if my query is not breif,

I use the below param

SORT FIELDS=COPY
INREC FIELDS=(1:1,8,
15:C' ',
17:42,9,
27:C' ',
28:81,8,PD,EDIT=(TTTTTTTTTTTT.TTT),SIGNS=(,-),
44:C' ',
45:109,5,ZD,EDIT=(T.TTT),
53:C' ',
54:114,3,
61:C' ',
62:141,9,ZD,EDIT=(T.TTTTTTTT),
74:C' ', )

If i replace INREC with OUTREC it's not getting executed. But it went cool with INREC. Am i clear or still needed any more info???
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu May 22, 2008 8:07 pm    Post subject:
Reply with quote

Quote:

job gets abended


lot of info there. we have no way of helping you without knowing the sys msgs generated by sort and the op-sys msgs.

knowing what your inrec/outrec parms would help, also.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu May 22, 2008 8:13 pm    Post subject: Reply to: Use the same attributes which sortin holds
Reply with quote

Code:
ABENDED S000 U0126
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 23, 2008 1:50 am    Post subject:
Reply with quote

Hello,

You need to post all of the diagnostic info the execution produced.

You should also post all of the jcl and control statements as "Code" using the tag at the top of the reply panel.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts Referback the DCB of SORTIN while usi... venksiv CLIST & REXX 7 Tue Mar 15, 2016 5:47 pm
No new posts jcl to get all the attributes of vsam... boyti ko SYNCSORT 6 Tue Nov 04, 2014 8:54 am
No new posts How to use SORT when SORTIN is DUMMY MSTP SYNCSORT 4 Wed Jul 23, 2014 9:29 am
No new posts copy one pds to another pds with same... Vinaya123 JCL & VSAM 5 Wed Feb 26, 2014 2:08 pm


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