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

Syncsort convert packed decimal to readable format


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Neena John

New User


Joined: 20 Nov 2008
Posts: 13
Location: bangalore

PostPosted: Tue Dec 29, 2009 5:45 pm
Reply with quote

I have one requirement to sort a date which is in s9(07) comp-3 format into ascending order.
So first i tried to convert these dates into readable format.
The job step is
Code:

//STEP02 EXEC PGM=SORT                           
//SYSOUT DD SYSOUT=*                             
//SORTIN DD DSN=TESTAPS.AAA.PSFM100,DISP=SHR     
//SORTOUT DD DSN=TESTGEN.AAA.CY2009.PSFM1001,   
//    DISP=(,CATLG,DELETE),                   
//    UNIT=TSTPK,                               
//    SPACE=(CYL,(25,25),RLSE)                   
//*                                             
//SYSIN DD *                                     
  OPTION COPY
  OUTREC FIELDS=(1,57,58,4,PD,M26,SIGNS=(,-))
/*                                               

Here the input file TESTAPS.AAA.PSFM100 is VB. The position I need to sort is 55-58 which is 4 bytes. Since it is VB it will be 58-61 ie addition of 4 bytes.

The job is abending with ABEND=S000 U0016 REASON=00000000 .
Can anyone please tell me how to proceed.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 29, 2009 5:50 pm
Reply with quote

Neena John wrote:
The job is abending with ABEND=S000 U0016 REASON=00000000 .
Can anyone please tell me how to proceed.

Does the sysout not give you any clues as to why ............ because we can't see it, and without it we know nothing.

Psychic day was yesterday this week.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Dec 30, 2009 6:27 pm
Reply with quote

Neena John wrote:
I have one requirement to sort a date which is in s9(07) comp-3 format into ascending order.
If so, why do you want to convert them in "displayable format"?
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Dec 31, 2009 12:02 am
Reply with quote

Neena John wrote:
The position I need to sort is 55-58 which is 4 bytes. Since it is VB it will be 58-61 ie addition of 4 bytes.

Then wouldn't that make the positions 59-62? Perhaps your abend is related to the incorrect field specified? Please post the SORT messages so that we can see what the real problem is.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top