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

How to use symbol for positioning in OVERLAY


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
per.idoff

New User


Joined: 05 Nov 2013
Posts: 2
Location: Sweden

PostPosted: Tue Nov 05, 2013 11:21 pm
Reply with quote

Hi,

Syntax for overlay is: OVERLAY=(position:value)
e.g. OVERLAY=(45:C’NONE’) to put value NONE starting in position 45

Given symbol declaration:
Symbolname,45,10,CH

Is there any way to use a this symbol to position where to overlay?
Something like OVERLAY=(position(Symbolname):C'NONE')
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue Nov 05, 2013 11:33 pm
Reply with quote

As here?
Back to top
View user's profile Send private message
Skolusu

Senior Member


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

PostPosted: Wed Nov 06, 2013 12:10 am
Reply with quote

per.idof,

As Akatsukami pointed out you just need to have a colon after the symbol and DFSORT would automatically treat that symbol as position.

Here is a sample. Check the sysout and see how the symbols are translated.

Code:

//STEP0100 EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SYMNOUT  DD SYSOUT=*                                   
//SYMNAMES DD *                                         
POS-VARA,45,10,CH                                       
CONSTANT1,C'NONE'                                       
POS-VARB,*,10,CH                                         
CONSTANT2,C'NEXT FIELD'                                 
//SORTIN   DD *                                         
ABC                                                     
//SORTOUT  DD SYSOUT=*                                   
//SYSIN    DD *                                         
  OPTION COPY                                           
  INREC OVERLAY=(POS-VARA:CONSTANT1,POS-VARB:CONSTANT2) 
//*
Back to top
View user's profile Send private message
per.idoff

New User


Joined: 05 Nov 2013
Posts: 2
Location: Sweden

PostPosted: Wed Nov 06, 2013 5:42 pm
Reply with quote

Thanks! Works like a charm.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Help, trying to use OVERLAY to get a ... DFSORT/ICETOOL 3
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
No new posts BNDS and Overlay command TSO/ISPF 9
No new posts Issues with outrec overlay while extr... SYNCSORT 7
No new posts HOW TO OVERLAY A Packed decimal VALUE... DFSORT/ICETOOL 5
Search our Forums:

Back to Top