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

Help needed for outrec fileds


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 1702
Location: Australia

PostPosted: Mon Aug 24, 2009 4:17 pm
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: 8797
Location: Welsh Wales

PostPosted: Mon Aug 24, 2009 4:41 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts Mainframe profiles needed @ Cognizant Mainframe Jobs 0
Search our Forums:

Back to Top