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
 

 

Include Cond issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vickey_dw

New User


Joined: 10 Jun 2015
Posts: 30
Location: India

PostPosted: Tue Mar 29, 2016 8:51 pm    Post subject: Include Cond issue
Reply with quote

Hi All

In my file i have records in HEX format.But when it is read in 9(2) variable.

Now i have to retrieve records with code as "98" which looks like below in the file at position 14.
Code:
6
2


I tried below include cond but they are not working to retrieve these records.
Code:
INCLUDE COND=(14,1,PD,EQ,62)
INCLUDE COND=(14,1,PD,EQ,98)
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Mar 29, 2016 9:07 pm    Post subject:
Reply with quote

As you show, the field is not packed decimal (PD). What do you think should specify instead?
Back to top
View user's profile Send private message
vickey_dw

New User


Joined: 10 Jun 2015
Posts: 30
Location: India

PostPosted: Tue Mar 29, 2016 9:20 pm    Post subject:
Reply with quote

Actually i am not very sure if the record in file are Packed decimal or hex.
Its appearing as in input file.
Code:
6
2


As i need to find code as "98" i converted it to hex and got 62.

I am not sure now how to peel the records using include cond.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Tue Mar 29, 2016 9:46 pm    Post subject: Reply to: Include Cond issue
Reply with quote

Code:
INCLUDE COND=(14,1,CH,EQ,X'98')

.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Tue Mar 29, 2016 10:30 pm    Post subject: Reply to: Include Cond issue
Reply with quote

vickey_dw,

You also can't have multiple INCLUDE COND statements (or OMIT COND, or a mixture). Or, you can have them, but it won't do what you think.

Look at using OR, and in other cases AND, to have multiple conditions.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 30, 2016 6:04 pm    Post subject:
Reply with quote

Quote:

Code:
INCLUDE COND=(14,1,CH,EQ,X'98')


actually,
Code:

Code:
INCLUDE COND=(14,1,CH,EQ,X'62')


Garry
Back to top
View user's profile Send private message
vickey_dw

New User


Joined: 10 Jun 2015
Posts: 30
Location: India

PostPosted: Wed Mar 30, 2016 9:29 pm    Post subject:
Reply with quote

Yes Garry you are correct.It worked for me.

Thanks Garry,Rahul and Bill !!!!
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 DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am


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