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
 
Need Clarification in SORT Include Statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need Clarification in SORT Include Statement
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: 1187
Location: Bangalore,India

PostPosted: Tue Sep 19, 2006 12:50 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Tue Sep 19, 2006 8:33 pm    Post subject:
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:

http://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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

Quote:
What is ZD?


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

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

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