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

displaying Comp-3 varibles through SYNCSORT


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

New User


Joined: 11 Apr 2007
Posts: 28
Location: India

PostPosted: Mon Aug 13, 2007 5:47 pm
Reply with quote

I have a file where format is as follows

1-10 character
11-15 COMP 3

How can i display this using outrec statement in normal format. I get special characters when i try it.
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Mon Aug 13, 2007 6:17 pm
Reply with quote

Hi Antony,

Try this out
OUTREC FIELDS=(1:1,10,11:11,5,PD,TO=ZD,LENGTH=10)

Syntax might not be accurate.. Pls check SYNCSORT appl prog guide for more details...

Thanks,
Prajesh
Back to top
View user's profile Send private message
antonyjoseph

New User


Joined: 11 Apr 2007
Posts: 28
Location: India

PostPosted: Mon Aug 13, 2007 7:28 pm
Reply with quote

Thanks
Will check this out.
Got the code working with "edit"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 13, 2007 11:44 pm
Reply with quote

Hello,

Yes, EDIT can make the output "pretty", but not as easy to use as input to some other process. "TO=ZD" will convert the data from packed to zoned decimal.

Depending on how the "output" is to be used, you might use either.
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 IBM OnDemand Folders displaying to al... IBM Tools 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
Search our Forums:

Back to Top