View previous topic :: View next topic
|
Author |
Message |
Nites300
New User
Joined: 22 Jan 2008 Posts: 4 Location: India
|
|
|
|
Hi,
I have a situation where i want to set the return based on the value in the input file.
Say suppose in INPUT file value is 'Y' i want to set it to Zero if it's 'N' set to '4' |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Do you have File-Aid installed?
Which sort do you have installed?
Are there other utilities your shop prefers used? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
are they the only 2 possible values in the file, and what col are they in ?
Gerry |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi,
Is there only a single record in your input file? |
|
Back to top |
|
|
Nites300
New User
Joined: 22 Jan 2008 Posts: 4 Location: India
|
|
|
|
yes there will be single record in file on that basis i want to set the return code |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
are they the only 2 possible values in the file |
|
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if you have DFSORT, you can try this, if it equals Y it will return a zero else it will return a 4
Code: |
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
Y
/*
//SORTOUT DD DUMMY
//SYSIN DD *
OPTION COPY,NULLOUT=RC4
INCLUDE COND=(1,1,CH,EQ,C'Y')
|
Gerry |
|
Back to top |
|
|
Nites300
New User
Joined: 22 Jan 2008 Posts: 4 Location: India
|
|
|
|
thanks a lot.this worked |
|
Back to top |
|
|
|