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

How to move x(30) to S9(15)v usage comp-3


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

New User


Joined: 05 Sep 2008
Posts: 15
Location: Hyderabad

PostPosted: Sat Nov 08, 2008 5:20 pm
Reply with quote

Hi All

Can you tell me how to move x(30) to S9(15)v usage comp-3 using syncsort

Thank you
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Nov 08, 2008 5:37 pm
Reply with quote

Post some sample input/output records and the starting position of relevant fields. Also the LRECL/RECFM of input/output
Back to top
View user's profile Send private message
pavanchandana

New User


Joined: 05 Sep 2008
Posts: 15
Location: Hyderabad

PostPosted: Sat Nov 08, 2008 5:40 pm
Reply with quote

LRECL=489 and RECFM=FB.

The starting position of the input field is 21.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Nov 08, 2008 6:02 pm
Reply with quote

Quote:
Post some sample input/output records

30 numeric digits will require 16 bytes in packed decimal. How did you arrive at 15? How does your input look like?
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: Sat Nov 08, 2008 10:18 pm
Reply with quote

Hello,

Quote:
Can you tell me how to move x(30) to S9(15)v usage comp-3 using syncsort
As worded, it cannot be done - at least not with a result that is usable.

What you have asked (whether it is what you intended or not) is how to move 30 characters (30 bytes) into 8 bytes (15 packed digits + a sign).

If you show complete details of what you want to do someone will be better able to reply.

The most important part of getting help from the forum is clearly posting what you want. Something to keep in mind is that while your question is completely clear to you, it may not be to those who read it icon_smile.gif
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 COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top