IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reg: Ifthen and Overlay


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Fri Aug 26, 2005 4:46 pm
Reply with quote

Hi Friends,

The foll code is not working for me, i have found this code in Forums only. Please let me know the mistake i made.

This Code it to convert 0 to space in the first position.

//JO123 JOB (U,1212),'AAAA',CLASS=0,MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
01
02
03
04
05
06
07
08
09
10
11
12
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTIONS COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),OVERLAY=(1:X))
/*

Thanks and Regards,
Prabha.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Aug 26, 2005 5:09 pm
Reply with quote

Hi suganthyprabha,

Quote:
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTIONS COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),OVERLAY=(1:X))
/*


//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),OVERLAY=(1:X))
/*

Those lines should not start at column number 1. And OPTIONS is incorrect.

Regards,

Priyesh.
Back to top
View user's profile Send private message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Fri Aug 26, 2005 5:18 pm
Reply with quote

Hi Priyesh,

Thanks for ur Quick reply.

But still i am getting the foll abend:

ADC1 - ABENDED S000 U0016

SYSIN :
OPTION COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),OVERLAY=(1:X))
*
WER268A INREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000

Please help me to recover this.

Thanks and Regards,
Suganthy.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Aug 26, 2005 5:28 pm
Reply with quote

Hi Prabha,

Putting error message earlier would have done the job better...

Well, These lines are the Key...

Quote:
WER268A INREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000


SYNCSORT doesn't support IF THEN Feature....

Regards,

Priyesh.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 26, 2005 8:37 pm
Reply with quote

Suganthy,

Priyesh is correct. The WER messages indicate you're using Syncsort, not DFSORT. IFTHEN and OVERLAY are exclusive functions of DFSORT. Syncsort does not support them.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Help, trying to use OVERLAY to get a ... DFSORT/ICETOOL 3
No new posts Cant find hex value using IFTHEN=(WHEN DFSORT/ICETOOL 12
No new posts BNDS and Overlay command TSO/ISPF 9
No new posts Issues with outrec overlay while extr... SYNCSORT 7
Search our Forums:

Back to Top