Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem while using INCLUDE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Problem while using INCLUDE
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 16, 2009 4:08 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Apr 16, 2009 9:49 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 16, 2009 10:09 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Apr 20, 2009 2:05 pm    Post subject: Reply to: Problem while using INCLUDE
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    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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us