Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8201
Location: Dubuque, Iowa, USA

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: 8620
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: 2445
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

Senior Member


Joined: 07 Feb 2009
Posts: 1072
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us