View previous topic :: View next topic
|
Author |
Message |
amitchadha30
New User
Joined: 30 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Currently i am using fileaid to copy one dataset to other dataset depending on the control card. But, during copying if any condition does not matches, my job is abending.
Now, i want to change the fileaid to syncsort to resolve my abend. or is there any better method to avoid the abend.
can anyone send me the complete step. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
yes... in this example the step would return a r.c. 4 if no records are selected.
Code: |
//ICEMAN EXEC PGM=ICEMAN,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD *
AAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCC
CCESTACCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDDD
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,80,SS,EQ,C'XYZ') |
hth |
|
Back to top |
|
|
amitchadha30
New User
Joined: 30 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Thanks a lot for your reply.
Should i delete fileaid step, can you tell me one more thing, where should i write those two datasets for copy. |
|
Back to top |
|
|
amitchadha30
New User
Joined: 30 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Hi,
I cannot use ICETOOL in my job due to some restrictions. Can you tell me some other way(using syncsort) |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
that's Syncsort! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I cannot use ICETOOL in my job due to some restrictions. |
Suggest you run a very small experiment on your system executing ICETOOL. Then look at the informational messages created by the run.
Surprise. . . |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
acevedo,
How is that Syncsort ? ICEMAN invokes DFSORT. I think amitchadha30
is right, there are shops which want to move away from DFSORT and adopt Syncsort, hence they dont allow ICETOOLs to be moved to production.
Any corrections ? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
How is that Syncsort ? ICEMAN invokes DFSORT. |
PGM=ICEMAN and PGM=SORT invoke the sort product installed at your site. That could be DFSORT, Syncsort or CA-Sort. You can tell which product you're using by looking at the messages - ICExxxs for DFSORT, WERxxxs for Syncsort, CASxxxs for CA-Sort. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
amitchadha30 wrote: |
Now, i want to change the fileaid to syncsort to resolve my abend. |
Agreed with everything posted so far, but anyhow I've a feeling if you can post Your FileAid Step with what is input & expected output, with what you want to avoid.. I would be rather able to connect myself with this topic. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
ap_mainframes wrote: |
acevedo,
How is that Syncsort ? ICEMAN invokes DFSORT. I think amitchadha30
is right, there are shops which want to move away from DFSORT and adopt Syncsort, hence they dont allow ICETOOLs to be moved to production.
Any corrections ? |
yes, as Frank stated, ICEMAN can invoke DFSort, SyncSort, CA-Sort...
Here in my shop ICEMAN invokes SyncSort. |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Thanks to all, I thought that I will always invoke DFSORT , as it does the same for me ! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
ap_mainframes wrote: |
.. I will always invoke DFSORT , as it does the same for me ! |
That means your site is installed with DFSORT. |
|
Back to top |
|
|
amitchadha30
New User
Joined: 30 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Hi,
When i am including above icetool step, After compiling it is giving following error.
1) NO SORT OR MERGE CONTROL STATEMENT WAS FOUND
2) UNRECOGNIZED 'SORT' KEYWORD 'COPY'.
3) UNIDENTIFIED CHARACTER '=' WAS FOUND IN THE 'COND' FIELD
4) UNRECOGNIZED 'SORT' KEYWORD 'COND'.
plz help and rectfy. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
amitchadha30
How many threads have you read on this forum where the first response from those trying to help you is
Post the output showing the error messages and codes
Please do so. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hello,
First, Code shown make use of ICEMAN & not of ICETOOL. And what do you mean by "compiling"..? You check JCL for syntax errors (JEM/JSCAN/JCLCheck).. What action did you perform when you get the above said errors. |
|
Back to top |
|
|
amitchadha30
New User
Joined: 30 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Thanks to all.
That issue has been resolved. I used Syncsort coz of some license issue problem with iceman. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
amitchadha30 wrote: |
I used Syncsort coz of some license issue problem with iceman. |
guess you ment:
I used Syncsort BECAUSE of some license issue problem with DFSort. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
I used Syncsort BECAUSE of some license issue problem with DFSorT |
Or more correctly:
I used Syncsort because that's the sort product my site has a license for. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
That issue has been resolved. |
Iit was a neat shot, I didnt' even get any clue what happened at your end..Well Done..! |
|
Back to top |
|
|
|