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

Problem while using INCLUDE


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

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Thu Apr 16, 2009 4:01 pm
Reply with quote

I have file in which contains data as follows:

Code:
  ;Ò Ø @   ïCHALU4.0.   0   ° ¤   
005E08070005CCCDEF4F4004F4419390000
00ED000C0047381344B0B010000000F000F
-----------------------------------
  ;Ó        ø¤    M           DELHI
005E02010002790000D44444444444CCDCC
00EE010D00800F000F40000000000045389
-----------------------------------
  ;0 {OFF01OFF02                   
005F0CDCCFFDCCFF0000444444444444444
00E0006660166602000F000000000000000
-----------------------------------
  ;7          rrr¤ ° ¤TEST RMK1   
005F010100000099991939ECEE4DDDF4444
00E70D09000001999F000F3523094210000


I used INCLUDE statement for getting only the record which has data '5EED' in 3rd and 4th position. Below is the INCLUDE statement I used

Code:

  SORT FIELDS=COPY                                     
  INCLUDE COND=(3,2,PD,EQ,5EED)


but this is giving error

SYSIN :
Code:
 SORT FIELDS=COPY                             
 INCLUDE COND=(3,2,PD,EQ,5EED)               
                          *                   
WER251A  INCLUDE/OMIT INVALID LOGICAL OPERATOR
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000


Please let me know if I am doing something wrong.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 16, 2009 4:08 pm
Reply with quote

Quote:
Please let me know if I am doing something wrong.

You are doing something wrong.

Please read the manual for the correct syntax for the INCLUDE statement.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Thu Apr 16, 2009 5:50 pm
Reply with quote

Abhay,
As per the data 3,2 doesn't look like a PD field.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 16, 2009 9:49 pm
Reply with quote

Hello,

Why do you believe 5EED is packed-decimal? It might be a binary number, but it is definitely not packed-decimal.

What does that value represent?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 16, 2009 10:09 pm
Reply with quote

How about
Code:
  SORT FIELDS=COPY                                     
  INCLUDE COND=(3,2,CH,EQ,X'5EED')

or
Code:
  SORT FIELDS=COPY                                     
  INCLUDE COND=(3,2,BI,EQ,24301)
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Mon Apr 20, 2009 2:03 pm
Reply with quote

CICS Guy wrote:
How about
Code:
  SORT FIELDS=COPY                                     
  INCLUDE COND=(3,2,CH,EQ,X'5EED')

or
Code:
  SORT FIELDS=COPY                                     
  INCLUDE COND=(3,2,BI,EQ,24301)

I tried both options but getting empty file.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 20, 2009 2:05 pm
Reply with quote

if the record format is Variable
did You remember to add to the offset/position the 4 bytes of the RDW ???
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top