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

help in syncsort getting user abend su0016


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandu_3777

New User


Joined: 21 Sep 2005
Posts: 3
Location: pune

PostPosted: Wed Sep 28, 2005 2:59 pm
Reply with quote

Hi ,

This is my syncsort jcl i'm sorting a dataset and moving some records if the position of the filed in 25-28 is 200 or 250 then move the record from 25 th column to out rec (i,e out rec contains value from 25 th column into 1st column).Anybody please help me out....(record length is 5000 and fm=vb)

Code:

//STEP1   EXEC PGM=SORT                                     
//SORTIN   DD DSN=hhaaka.TEST.DATA,DISP=SHR                 
//SORTOUT  DD DSN=hhaaka.TEST.OUT19,DISP=(NEW,CATLG)       
//SORTOF01 DD DSN=hhaaka.TEST.OUTF19,DISP=(NEW,CATLG),     
//            DCB=(RECFM=VB,BLKSIZE=0)                     
//SYSPRINT DD SYSOUT=*                                     
//SYSOUT   DD SYSOUT=*                                     
//SYSIN    DD *                                             
  SORT FIELDS=(11,13,CH,A,29,3,CH,D)                         
  OUTFIL FILES=01,                                           
    INCLUDE=(29,3,CH,EQ,C'200',OR,29,3,CH,EQ,C'250'),         
    OUTFIL OUTREC=(5:3,5000)                                   
/*                                                         
//
Back to top
View user's profile Send private message
chandu_3777

New User


Joined: 21 Sep 2005
Posts: 3
Location: pune

PostPosted: Wed Sep 28, 2005 3:05 pm
Reply with quote

this is my input for above jcl
----+----1----+----2---- +----3----+

4023045011870010583 AS2000410010
4023045011870010583 AS250041001DL
4023045011870011587 AS2000410010
4023045011870011587 AS250041001DL
4023045011870012599 AS2000410010

need output

----+----1----+----2---- +----3----+

2000410010
250041001DL
2000410010
250041001DL
2000410010
Back to top
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Oct 05, 2005 7:07 pm
Reply with quote

Hi Chandu,

If I take this as an Input

000001 4023045011870010583 AS200041001
000002 4023045011870010583 AS250041001
000003 4023045011870011587 AS200041001
000004 4023045011870011587 AS250041001
000005 4023045011870012599 AS200041001

and make the input file VB of LRECL 35.
and if you want output file which is also VB of LRECL 35 like this

000001 200041001
000002 250041001
000003 200041001
000004 250041001
000005 200041001

This job will take will do it for you ....

//STEP010 EXEC PGM=SYNCSORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=PT3720A.INPUT.VB.FILE
//SORTOUT DD DSN=PT3720A.OUTPUT.VB.FILE,
// DISP=(OLD,CATLG,CATLG),
// UNIT=SYSDA
//SYSIN DD *
SORT FIELDS=(11,13,CH,A)
INCLUDE COND=(27,3,CH,EQ,C'200',OR, /*23-26 SHOULD BE 200
27,3,CH,EQ,C'250') /*23-26 SHOULD BE 250
OUTREC FIELDS=(1:1,4,27,8) /*WRITE TO O/P FROM 23 ONWARDS
/*

The 4 byte gap is for the RDW in VB files.
Let me know if this works for you ....

Thanks
Manpreet Singh
leo_sangha@yahoo.com
Back to top
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Oct 05, 2005 7:09 pm
Reply with quote

Dont be confused.

000001
000002
000003
000004
000005

represent the line numbers .....
Thanks
Back to top
View user's profile Send private message
chandu_3777

New User


Joined: 21 Sep 2005
Posts: 3
Location: pune

PostPosted: Fri Oct 07, 2005 6:33 pm
Reply with quote

Hi leo,

Thanks alot ..i solved my problem few days back but still i need ur help i have some values in particular position which i have to convert /replace packed decimal i,e comp-3 value to alphaneumeric, alphanumeric to neumeric, alpha neumeric to ZD, could you please help me with an example ...how can i do that.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
Search our Forums:

Back to Top