IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Use the same attributes which sortin holds


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu May 22, 2008 4:37 pm
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
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: 1287
Location: Chennai, India

PostPosted: Thu May 22, 2008 4:52 pm
Reply with quote

kha,

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

Superior Member


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

PostPosted: Thu May 22, 2008 7:07 pm
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: 677
Location: NJ

PostPosted: Thu May 22, 2008 7:13 pm
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: 677
Location: NJ

PostPosted: Thu May 22, 2008 7:47 pm
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
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: 677
Location: NJ

PostPosted: Thu May 22, 2008 8:06 pm
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
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: 677
Location: NJ

PostPosted: Thu May 22, 2008 8:13 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 23, 2008 1:50 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Dynamic Sortin DD cards SYNCSORT 8
No new posts Altering output file attributes All Other Mainframe Topics 5
No new posts Default attributes for undeclared SYS... PL/I & Assembler 3
No new posts How to control Panel Attributes throu... CLIST & REXX 3
No new posts Can you write 2 recs on SORTOUT when ... DFSORT/ICETOOL 6
Search our Forums:

Back to Top