Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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 -> Interview Questions
Author Message
khamarutheen

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

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
References
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 71
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: 1253
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 D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2350
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

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

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

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

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: 1027
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

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

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

Senior Member


Joined: 20 Oct 2006
Posts: 1671
Location: germany

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

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

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

Global Moderator


Joined: 23 Nov 2006
Posts: 9183
Location: 221 B Baker St

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1