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: 8154
Location: East Dubuque, Illinois, 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: 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: 2441
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: 1049
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm

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