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

Need Clarification in SORT Include Statement


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

New User


Joined: 29 Dec 2005
Posts: 7

PostPosted: Tue Sep 19, 2006 12:38 pm
Reply with quote

Hi Friends,

I have one question in Include statement

Code:

  INCLUDE COND=(5,2,PD,EQ,61,AND,8,5,ZD,EQ,00125)


Here PD - Indicates the Packet Decimal.

What to use in the case of Integer type eg. PIC 9(2)?

What is ZD?

Abirami
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Sep 19, 2006 12:50 pm
Reply with quote

Hi Abirami,

ZD :Use ZD format for the field if you want to test for zoned decimal numerics (?0?-?9? in all non-sign bytes;
Back to top
View user's profile Send private message
abirami_2006

New User


Joined: 29 Dec 2005
Posts: 7

PostPosted: Tue Sep 19, 2006 2:35 pm
Reply with quote

Thanks Ekta.

Can any body tell me how to resolve my problem?

Code:

//SYSIN  DD  *
  SORT FIELDS=(5,2,PD,A,319,5,PD,A)
  RECORD TYPE=V
  INCLUDE COND=(5,2,PD,EQ,61,AND,7,4,PD,GT,2006000,
               AND,55,1,CH,EQ,C'R',AND,56,2,ZD,EQ,05)
  OUTREC FIELDS=(1:5,2)
/*


For this code. I am getting following error message
Here Input is the VSAM file.

Code:

ICE000I J - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 - 04:57 ON TUE SEP
            SORT FIELDS=(5,2,PD,A,319,5,PD,A)
            RECORD TYPE=V
            INCLUDE COND=(5,2,PD,EQ,61,AND,7,4,PD,GT,2006000,
                         AND,55,1,CH,EQ,C'R',AND,56,2,ZD,EQ,05)
            OUTREC FIELDS=(1:5,2)
ICE201I J RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE126A J INCONSISTENT *OUTREC  IFTHEN 0 REFORMATTING FIELD FOUND
ICE052I J END OF DFSORT


Thanks In Advance,
Abirami.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Sep 19, 2006 8:33 pm
Reply with quote

Quote:
ICE201I J RECORD TYPE IS V - DATA STARTS IN POSITION 5


Note this message. Since you're handling the VSAM data set as variable (TYPE=V), DFSORT adds an RDW in positions 1-4 when processing the input records. So the first data byte actually starts in position 5, not 1. You need to account for the 4-byte RDW in all of your control statements. If you didn't, then change position 5 to 9, etc.

Quote:
ICE126A J INCONSISTENT *OUTREC IFTHEN 0 REFORMATTING FIELD FOUND


When processing V records, you must specify the RDW (1,4) in the OUTREC statement. The RDW is missing from yours. You need to change it to:

Code:

   OUTREC FIELDS=(1,4,p,2)


where p is 5 or 9 counting from the first data byte as 5.

For more information on processing VSAM data sets with DFSORT, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/1.8.3.4?SHELF=&DT=20060615185603&CASE=

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links

Quote:
What is ZD?


For descriptions of all of the DFSORT formats, including their COBOL equivalents, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/C.0?DT=20060615185603
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top