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
 

 

Syncsort convert packed decimal to readable format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort convert packed decimal to readable format
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 29, 2009 5:50 pm    Post subject: Re: Syncsort convert packed decimal to readable format
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

Senior Member


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

PostPosted: Wed Dec 30, 2009 6:27 pm    Post subject: Re: Syncsort convert packed decimal to readable format
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: 500
Location: USA

PostPosted: Thu Dec 31, 2009 12:02 am    Post subject: Re: Syncsort convert packed decimal to readable format
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am


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