We help IT Professionals succeed at work.
Get Started

COBOL mfsort take trouble

Seydina Fall
Seydina Fall asked
on
705 Views
Last Modified: 2020-04-13
Hi,
I met this problem : for the same program perl v5.6.1 on sun solaris I can't have the same result on perl v5.8.8 whitin v5.8.8 on linux.
Actually, when I run it on the first case I get good results. But on linux it seems like sort trouble and like a different behavior between these to OS with the cobol utility mfsort take Can somebody help me for this please (It's quite urgent) ?

See the output file attached below

So here is the COBOL command :
Caution : The COBOL command is encapsulated under shell command

Open in new window

SORTIN=$TMP/T120DFU."$nupro"
    export SORTIN
SORTOUT=$TMP/T150OUT."$nupro"
    export SORTOUT

echo "SIGN-EBCDIC
SORT FIELDS (
00001,00040,CH,A,
00041,00012,CH,A,
00061,00025,CH,A,
00086,00002,CH,A)
RECORD (F, 3052)
USE $SORTIN ORG (SQ) RECORD (F,3052)
GIVE $SORTOUT ORG (SQ) RECORD (F,3052)
" 1>$TMP/KJ3150."$nupro"
mfsort take $TMP/KJ3150."$nupro"
    CODE_RETOUR=$?
    unset SORTIN
    unset SORTOUT
    rm $TMP/T120DFU."$nupro"
    rm $TMP/KJ3150*."$nupro"
if
  [ $CODE_RETOUR -gt $MAX_RETOUR ]
  then
      MAX_RETOUR=$CODE_RETOUR
fi
echo "\n"
fi
if
  [ $MAX_RETOUR -le 4 ]
  then
echo "*-------------------------- STEP160A ---------------------------*"
echo "*                  Load parameters in T160DTR                   *"
echo "*---------------------------------------------------------------*"
echo "DA341"\
  >$TMP/T160DTR."$nupro"


Thanks for your feedback
T150OUT.zip
Comment
Watch Question
IT ingineer
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE