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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to move x(30) to S9(15)v usage comp-3
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: 2180
Location: @my desk

PostPosted: Sat Nov 08, 2008 5:37 pm    Post subject: Reply to: How to move x(30) to S9(15)v usage comp-3
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    Post subject: Reply to: How to move x(30) to S9(15)v usage comp-3
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: 2180
Location: @my desk

PostPosted: Sat Nov 08, 2008 6:02 pm    Post subject:
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

Site Director


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

PostPosted: Sat Nov 08, 2008 10:18 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts Need information on COBOL MOVE CORRES... subratarec COBOL Programming 10 Tue Jun 28, 2016 10:38 pm


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