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
 
Help needed for outrec fileds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
nazia.lalani
Warnings : 1

New User


Joined: 20 Mar 2009
Posts: 25
Location: hyderabad

PostPosted: Mon Aug 24, 2009 4:09 pm    Post subject: Help needed for outrec fileds
Reply with quote

Hi i want to overlay 2-3 together ina sort card

I have input file having lrecl=62
if assign_code EQ 'G' or 'P' then move 'A' at the 63 position
else move 'U' at the 63
and
dats30 <= 30 move 1 at 64 position else move 0 at 64 position

IF I give the below code,it is giving syntax at the overlay after none statement

OUTREC IFTHEN=(WHEN=(49,01,CH,EQ,C'G'),OVERLAY(63:C'A')),
IFTHEN=(WHEN=(49,01,CH,EQ,C'P'),OVERLAY(63:C'A')),
IFTHEN=(WHEN=NONE,OVERLAY=(63:C'U')),
IFTHEN=(WHEN=(24,05,BI,LT,30),OVERLAY=(64:+0,BI,LENGTH=5)),
IFTHEN=(WHEN=NONE,OVERLAY=(64:+1,BI,LENGTH=5))

Can anybody suggest me any solution for this?
Back to top
View user's profile Send private message

nazia.lalani
Warnings : 1

New User


Joined: 20 Mar 2009
Posts: 25
Location: hyderabad

PostPosted: Mon Aug 24, 2009 4:17 pm    Post subject:
Reply with quote

To be more precise, I m getting syntax error at the *

OUTREC IFTHEN=(WHEN=(49,01,CH,EQ,C'G'),OVERLAY(63:C'A')),
IFTHEN=(WHEN=(49,01,CH,EQ,C'P'),OVERLAY(63:C'A')),
IFTHEN=(WHEN=NONE,OVERLAY=(63:C'U')),
IFTHEN=(WHEN=(24,05,BI,LT,30),OVERLAY=(64:+0,BI,LENGTH=5)),
*
IFTHEN=(WHEN=NONE,OVERLAY=(64:+1,BI,LENGTH=5))
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Aug 24, 2009 4:17 pm    Post subject:
Reply with quote

Hi,

Quote:
IF I give the below code,it is giving syntax at the overlay after none statement


We cannot see what you see.

Provide all the output messages.


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8666
Location: Back in jolly old England

PostPosted: Mon Aug 24, 2009 4:41 pm    Post subject:
Reply with quote

Including the error message codes
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Aug 24, 2009 5:23 pm    Post subject:
Reply with quote

This is from dfsort application programming guide...
Quote:

IFTHEN clauses are processed in the following order:
1 WHEN=INIT clauses
2 WHEN=(logexp) clauses and WHEN=ANY clauses
3 WHEN=NONE clauses


you dont have all WHEN=NONE clauses followed by all of the WHEN=logical expr

This was about syntax error you are getting..
Apart from it, there is lot of optimization could be done in your code if you tell good requirement..
like file format,lrecl, field positions and possibly some sample records...
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Aug 24, 2009 9:19 pm    Post subject:
Reply with quote

nazia.lalani,

Use the following control cards

Code:

  OUTREC IFTHEN=(WHEN=INIT,OVERLAY=(63:C'U',+1,BI,LENGTH=5)), 
    IFTHEN=(WHEN=(49,01,SS,EQ,C'G,P'),OVERLAY(63:C'A'),HIT=NEXT),
    IFTHEN=(WHEN=(24,05,BI,LT,30),OVERLAY=(64:+0,BI,LENGTH=5))   
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 OUTREC OVERLAY different to INCREC ge... Joerg.Findeisen SYNCSORT 8 Fri Apr 27, 2018 2:11 am
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am

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