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

i have comp-3 field like 9(7) comp-3 , in that


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

New User


Joined: 18 May 2005
Posts: 46
Location: Bangalore, INDIA

PostPosted: Tue Feb 28, 2006 9:51 am
Reply with quote

I have input file first field is Purchase Order No having 9(7) comp-3, i need to find all Purchase order endwith '78' and put it into new file. Can any help me how to write sort card for this?
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 Feb 28, 2006 9:25 pm
Reply with quote

A 9(7) comp-3 field is a 4-byte PD field. If you're looking for it to end with 78, then you're actually looking for values like this X'ddddd78s'. I'll assume your 4-byte PD field starts in position 1. Here's a DFSORT job to do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  INCLUDE COND=(3,2,PD0,EQ,X'78')
/*
Back to top
View user's profile Send private message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Wed Mar 01, 2006 12:13 pm
Reply with quote

hi frank

can u explain me without using icetool.can v use sort
fr this pls give clear code
which it is helpfull fr me
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: Wed Mar 01, 2006 9:09 pm
Reply with quote

Quote:
can u explain me without using icetool.can v use sort
fr this pls give clear code
which it is helpfull fr me


Huh? I gave you a DFSORT (sort) job, not an ICETOOL job. What is it you're asking?
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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top