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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort - Picking the records based on a COMP-3 variable
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: 7931
Location: Bellevue, IA

PostPosted: Thu May 05, 2011 3:53 pm    Post subject:
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Thu May 05, 2011 5:25 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 05, 2011 5:36 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu May 05, 2011 5:43 pm    Post subject: Re: Syncsort - Picking the records based on a COMP-3 variabl
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?

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

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Thu May 05, 2011 6:00 pm    Post subject:
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    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 Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


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