Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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 SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts OUTREC RDW NOT INCLUDED krsenthil85 SYNCSORT 10 Fri May 06, 2016 3:22 am
No new posts Unload a table and converting fileds danylele74 DB2 2 Thu Nov 26, 2015 9:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us