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

Syncsort - Picking the records based on a COMP-3 variable


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

New User


Joined: 15 May 2008
Posts: 41
Location: Chennai

PostPosted: Thu May 05, 2011 3:33 pm
Reply with quote

Hi
How to pick the records to output file based on a COMP-3 field of an input file.

Any syntax...thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu May 05, 2011 3:53 pm
Reply with quote

1. Use your site SORT program.
2. Write a program.

3. Explain in more detail what you are using, what you want to accomplish, and get better answers.

You tell us nothing and expect syntax? Syntax requires knowing which program or utility you are going to use -- which you did not bother to tell us.
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Thu May 05, 2011 4:04 pm
Reply with quote

Use the type PD - Packed decimal
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 05, 2011 5:25 pm
Reply with quote

Suggest you do a better job in explaining what you want:

1. Show us some sample records
2. Tell us what is the LRECL/RECFM of input and outout.
3. What output do you expect from the input-records you show us.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 05, 2011 5:36 pm
Reply with quote

Is it that time of year again when the so called IT training shops have let loose another bunch of ...............................
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu May 05, 2011 5:43 pm
Reply with quote

saagu wrote:
Hi
How to pick the records to output file based on a COMP-3 field of an input file.

Any syntax...thanks


Are you using the Pick operating system?

en.wikipedia.org/wiki/Pick_operating_system
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu May 05, 2011 6:00 pm
Reply with quote

Code:
//SORT    EXEC PGM=ICEPICK
//PICKIN    DD DSN=&SYSUID.PICKIN,
//             DISP=SHR
//PICKOUT   DD DSN=&SYSUID..PICKOUT,
//             DISP=(,CATLG),
//             UNIT=SYSDA,
//             SPACE=(TRK,(30,2,1),RLSE),
//             DCB=*.PICKIN
//PICKER    DD *
 PICK FIELDS=(SIGN,EQ,C,OR,SIGN,EQ,D)
 END
//PICKPRT  DD SYSOUT=*
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top