Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2352
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: 2352
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
No new posts RMM Cannot move a volume from SHELF l... tspr52 IBM Tools 0 Thu Mar 01, 2018 3:48 pm
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us