View previous topic :: View next topic
|
Author |
Message |
vishal.iitr2003 Currently Banned New User
Joined: 25 Jan 2008 Posts: 18 Location: India
|
|
|
|
I am using SYNCSORT to find out the presence of certain strings in a PS file. Can we have any type of return code from the SORT method only to know the presence of the string searched.
What I am doing now is coying the desired records in some other file and then checking weather it has any records or not using IDCAMS. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
search for the NULLOFL parameter. |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
This SORT JCL returns 4 if the string "NAME" was not found in inout file at the position 1,4.
Code: |
//*******************************************************
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
NAME
ADDR
LKMN
/*
//SORTOUT DD DUMMY
//SYSIN DD *
OPTION COPY,NULLOUT=RC4
INCLUDE COND=(1,4,CH,EQ,C'NAME')
/* |
|
|
Back to top |
|
|
vishal.iitr2003 Currently Banned New User
Joined: 25 Jan 2008 Posts: 18 Location: India
|
|
|
|
thank u
kRISPREMs |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
with a slight meaning...you can code it in the PARM, for example:
Code: |
//*----------------------------------------------------
//ICEMAN EXEC PGM=ICEMAN,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD *
AAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCC
CCESTACCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDDD
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,80,SS,EQ,C'XYZ') |
|
|
Back to top |
|
|
|