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 a Record Using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Habeeb Shaik

New User


Joined: 29 Aug 2005
Posts: 10

PostPosted: Mon Nov 01, 2010 8:14 pm    Post subject: How to Move a Record Using DFSORT
Reply with quote

Hi,

Do we have any function move a record from one position to other using DFSORT.

My Requirement is below:
I have a record at second line, I want to move it to the last line. I am using DFSORT.

Can anybody help on this plz..Thankyou
Shaik.
Back to top
View user's profile Send private message

Habeeb Shaik

New User


Joined: 29 Aug 2005
Posts: 10

PostPosted: Mon Nov 01, 2010 8:58 pm    Post subject:
Reply with quote

Do we have any resolution on this...?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Nov 01, 2010 9:11 pm    Post subject: Reply to: How to Move a Record Using DFSORT
Reply with quote

please be patient....
in many countries today is an holiday,

remember also that ...
replying is on voluntary basis
on the responder time
free of charge

pretending an answer after 45 minutes from the initial post is just ..
expecting too much from a forum
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: Mon Nov 01, 2010 9:19 pm    Post subject: Reply to: How to Move a Record Using DFSORT
Reply with quote

Hello,

If you needed something in less than an hour, you could have spent 10 minutes and written a tiny bit of code to do this. . .

d
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Nov 01, 2010 11:09 pm    Post subject:
Reply with quote

Shaik,

It's not clear what you want to do. Do you have only two records, or more than two records, or what?

Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file.

Also, run this job and show the //SYSOUT messages you receive, so I can see what level you're at:

Code:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN    DD    *
    OPTION COPY
/*
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

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