Sort mainframe file




















You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email. Here are a few examples: SORT 10 sorts from column 10 to the right bound; SORT 1 8 sorts based on the data within columns 1 through 8 inclusive; SORT 1 15 X sorts all excluded lines based on the data in columns 1 through 15; SORT 1 15 A 20 20 D sorts all lines based on two fields, the first field in ascending order and the second in descending order.

That lets you pass more parameters to SuperC. Rate this:. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:. Email Address never made public. Follow Following. F1 for Mainframe Join 88 other followers.

Sign me up. Already have a WordPress. Log in now. Post was not sent - check your email addresses! Sorry, your blog cannot share posts by email. Working on Mainframes — Is Change to a different technology necessary. Rename the members in a PDS dataset? The idea with the sequence numbers is that it deals with two files whose contents are equal or to be tested as so , per record, but which are not in sorted order. I believe yours covers the first two, and mine the last.

If your code is used for the last, the files might compare clean, whereas records which are out of order between the two files will be missed as mismatching. That's what this was about: Quote:. Posted: Wed Feb 29, am. Hi, another way but not as efficient if files are already sorted.

The new step takes a PARM indicating the record-length. The sequence number allows eight digits, so up-to-but-not-including million records. The match indicator is no longer included if it is obvious from the file the record is on.

So, if I ddn't want to use a file-comparison product, it would be because I could customise it more, not less :- Tested lightly with records of 5 and 80 bytes. Posted: Wed Feb 29, pm.

Thanks to Gerry for spotting the glitch in my paste :- I didn't check out my claim about the size of the records, and worried, but it gets through syntax with haven't created any records that size. View previous topic :: :: View next topic. Similar Topics. To re-format the file using SORT card. Sort to include records of file 2 int Converting unpacked fields to pack us Search our Forums:.



0コメント

  • 1000 / 1000