Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 0 Thu Sep 21, 2017 9:54 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us