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

SYNCSORT SORT Out any HEX values from a file


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

New User


Joined: 11 Sep 2005
Posts: 10

PostPosted: Sun Oct 21, 2007 8:03 am
Reply with quote

Hi,

I sorted a file to convert packed decimal value to ZD but my output file has some junk values as well.

Here is the sort card i used to convert the values from PD to ZD

SORT FIELDS=COPY
OUTREC FIELDS=(1:1,4,PD,TO=ZD,LENGTH=7,8:5,4,PD,TO=ZD)

Can you please tell me if the above sort is correct as per my requiremnt. If yes then is there any way i can find some records without any junk or hex value in it?

Thanks
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Sun Oct 21, 2007 8:26 am
Reply with quote

viveksingal
in your SORT statement, try this one
Code:
SORT FIELDS=COPY,ZDPRINT
Back to top
View user's profile Send private message
viveksingal

New User


Joined: 11 Sep 2005
Posts: 10

PostPosted: Sun Oct 21, 2007 8:51 am
Reply with quote

Hi,

I tried using the ZDPRINT option but my job ended with Maxcc=16. below is the error message i am getting...

SORT FIELDS=COPY,ZDPRINT
*
OUTREC FIELDS=(1:1,4,PD,TO=ZD,LENGTH=7,8:5,4,PD,TO=ZD)
WER161B ALTERNATE PARM USED
WER268A SORT STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Sun Oct 21, 2007 10:39 am
Reply with quote

viveksingal
Sorry,

Code:
OPTION ZDPRINT
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,4,PD,TO=ZD,LENGTH=7,8:5,4,PD,TO=ZD)
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 How to split large record length file... DFSORT/ICETOOL 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top