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

EDIT parameter in SYNCSORT control card


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

New User


Joined: 18 Apr 2006
Posts: 22

PostPosted: Thu Nov 23, 2006 4:40 pm
Reply with quote

Hi,


I need to know the use of EDIT parameter provided in the SORT control card as

OUTREC FIELDS=(1:1,4,5:7,8,13:252,2,BI,EDIT=(TT),15:254,44)


Thanks,
Kalai
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: Thu Nov 23, 2006 9:36 pm
Reply with quote

13:252,2,BI,EDIT=(TT)

Converts the 2-byte BI field at positions 252-253 of the input record to two EBCDIC digits at positions 13-14 in the output record. Examples: X'0001' -> '01', X'0015' -> '21', X'0100' -> '56'. Note that the 2 digits allowed by TT will cause the value to be truncated on the left if it's above 99 (X'0063'). That's why X'0100' will give '56' instead of '256'. The largest 2-byte BI value is X'FFFF' = 65535 and requires 5 digits -> EDIT=(TTTTT).
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 Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top