Solved

mfsort for COBOL microfocus's utility error - Status = 9/139

Posted on 2013-10-28
1
1,491 Views
Last Modified: 2013-10-29
Hello,

I have a little issue with mfsort (COBOL) utility.

Here is the code (in UNIX OS) :

SORTIN=£FI
    export SORTIN
SORTOUT=$TMP/T120OUT."$nupro"
    export SORTOUT

echo "SIGN-EBCDIC
SORT FIELDS (
00005,00009,CH,A,
00014,00050,CH,A,
00064,00020,CH,A)
RECORD (V, 4,4004)
USE $SORTIN ORG (SQ) RECORD (V,4,4004)
GIVE $SORTOUT ORG (SQ) RECORD (V,4,4004)
" 1>$TMP/NRB120."$nupro"
mfsort take $TMP/NRB120."$nupro"
    CODE_RETOUR=$?
    unset SORTIN
    unset SORTOUT
    rm $TMP/NRB120*."$nupro"

Input file is BORD_GEL_ZZZ_Suppr has only one line :
000000000GEL         ZZZ               0                                       *EZO00                      A0

Output Error is :
SORT013U: I/O error on dataset '/opt/hrdev/file/BORD_GEL_ZZZ_Suppr'
SORT014U: Status = 9/139
SORT020U: SORT(EXTSM) failed - sort engine status = 9/139

What's wrong in mfsort parameters ?

Thanks for your feedback.

papfal
0
Comment
Question by:papfal
1 Comment
 
LVL 57

Accepted Solution

by:
giltjr earned 300 total points
ID: 39607617
Well, doing a simple Google Search on

SORT020U: SORT(EXTSM) failed - sort engine status = 9/139


Returned:

http://documentation.microfocus.com:8080/help/index.jsp?topic=%2Fcom.microfocus.eclipse.help.windows%2Fhtml%2Frhsort0d.htm

Which pointed me to:
http://documentation.microfocus.com:8080/help/index.jsp?topic=%2Fcom.microfocus.eclipse.help.windows%2Fhtml%2Frhsort0d.htm

When then pointed me to:

http://documentation.microfocus.com:8080/help/topic/com.microfocus.eclipse.help.windows/html/rhfsta02.htm

Which in turn pointed me to:


http://documentation.microfocus.com:8080/help/topic/com.microfocus.eclipse.help.windows/html/rhrerr01.htm

Which pointed me to:

http://documentation.microfocus.com:8080/help/topic/com.microfocus.eclipse.help.windows/html/rhrerr2s.htm

Which resulted in:

COBRT139 Record length or key data inconsistency (Recoverable)

A discrepancy exists between the length of a record, or the keys which you have specified, in your current program and its definition in the program in which it was first opened.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 63
Changing passwords in Linux Systems 3 40
Python variable _ manually assigned 9 63
Adding a continue option in a script 9 15
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now