IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Overwriting one files information into other


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Sep 26, 2008 10:45 am
Reply with quote

Hi all,

I stucked up in a place where i need your help.

My task is like,

st_no h_no
0011
0092 0100
0040 5500
0070 6400

It need to be sort first as ST_no and then h_no and if the h_no col is space aor st_no col is space for some row then than row need to be deleted from the output. So here th output should be like,

st_no h_no
0040 5500
0070 6400
0092 0100

I suppoose i am clear with my question.

If anybody knows the Sort card then please send me.

Thanks in advance.
Back to top
View user's profile Send private message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Sep 26, 2008 10:59 am
Reply with quote

Hi all,

I have one more question too.

If i am having PDS whose length is 70. and another whose length is 20.

I need to replace the datas present in PDS1's 5 to position number 25 with the values of PDS2 when the the data present in 5 tho 10 location of PDS1 = 1 to 5 of PDS2.

I suppose i m clear with it.

Please help me regarding this.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:02 am
Reply with quote

Hello Niki,

Please use following sort card for your request

Code:

  OMIT COND=(1,4,CH,EQ,C' ',OR,5,4,CH,EQ,C' ')
  SORT FIELDS=(1,4,CH,A,5,4,CH,A)                   
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:08 am
Reply with quote

Hello Niki,

Quote:
If i am having PDS whose length is 70. and another whose length is 20.

I need to replace the datas present in PDS1's 5 to position number 25 with the values of PDS2 when the the data present in 5 tho 10 location of PDS1 = 1 to 5 of PDS2.


Could u please provide us sample i/p & o/p for it?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Sep 26, 2008 11:09 am
Reply with quote

Quote:

I have one more question too.

Then idealy should start new topic not post reply.

i think what you are looking for is allready discussed.
Below links may help you
ibmmainframes.com/viewtopic.php?t=34557&highlight=splice
ibmmainframes.com/viewtopic.php?t=34564&highlight=splice
Back to top
View user's profile Send private message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Sep 26, 2008 11:21 am
Reply with quote

Thank you all

and Sambhaji i ll start new topic from next time onwards. Sorry for this time.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top