View previous topic :: View next topic
|
Author |
Message |
saagu
New User
Joined: 15 May 2008 Posts: 41 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Use the type PD - Packed decimal |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is it that time of year again when the so called IT training shops have let loose another bunch of ............................... |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
|