Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Overwriting one files information into other

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Niki

Active User


Joined: 20 Sep 2008
Posts: 102
Location: Bangalore

PostPosted: Fri Sep 26, 2008 10:45 am    Post subject: Overwriting one files information into other
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: 102
Location: Bangalore

PostPosted: Fri Sep 26, 2008 10:59 am    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:02 am    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:08 am    Post subject:
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    Post subject:
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
http://ibmmainframes.com/viewtopic.php?t=34557&highlight=splice
http://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: 102
Location: Bangalore

PostPosted: Fri Sep 26, 2008 11:21 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Obtaining file information pahiker COBOL Programming 25 Tue Sep 27, 2016 7:25 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us