MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 20 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Replace variable in File 2 using File 1
Srishti Rawat

Replies: 8
Views: 1802

PostForum: Utilities   Posted: Tue Apr 02, 2024 8:55 am   Subject: Replace variable in File 2 using File 1
Hi Kolusu,

I made some changes in the positions that's why it wasn't working for me. This code is working.

Thanks a lot for your guidance, I learn a lot from here.

Thanks & Regards,
Sris ...
  Topic: Replace variable in File 2 using File 1
Srishti Rawat

Replies: 8
Views: 1802

PostForum: Utilities   Posted: Thu Mar 28, 2024 5:33 am   Subject: Replace variable in File 2 using File 1
I am able to do it in two steps.

First Step: Replacing the 10th position with first field.
Second step using the output of first step and checking for the spaces in the position 40, if not spaces ...
  Topic: Replace variable in File 2 using File 1
Srishti Rawat

Replies: 8
Views: 1802

PostForum: Utilities   Posted: Thu Mar 28, 2024 5:10 am   Subject: Replace variable in File 2 using File 1
Hi Kolusu,

Thank you for the solution.

Condition:
Replace the records starting from position 10 with first field of File1 and if records starting from position 40 is not spaces than replace wi ...
  Topic: Replace variable in File 2 using File 1
Srishti Rawat

Replies: 8
Views: 1802

PostForum: Utilities   Posted: Fri Mar 22, 2024 2:06 pm   Subject: Replace variable in File 2 using File 1
Hi Kolusu,

Thats right.

First '05' record of File2 should be mapped with first record of File1. Rest all the records(other than'05') should be written as it is(in the same order) in the output ...
  Topic: Replace variable in File 2 using File 1
Srishti Rawat

Replies: 8
Views: 1802

PostForum: Utilities   Posted: Fri Mar 22, 2024 8:37 am   Subject: Replace variable in File 2 using File 1
Hi Team,

I have a requirement where we have two input files having field1 of 19 bytes and field2 of 19 bytes again. Another file(File2) having some data.

For all the records starting with '05' i ...
  Topic: Skipping records from input file and writing into output fil
Srishti Rawat

Replies: 3
Views: 2049

PostForum: TSO and ISPF   Posted: Sun Jun 04, 2023 1:54 am   Subject: Skipping records from input file and writing into output fil
Hi Kolusu,

With DFSORT its quite easy.

I am working on an automation in REXX where we are converting the PROD JCLs into TEST JCLs. So we are taking the existing prod jcl as input and creating a ...
  Topic: Skipping records from input file and writing into output fil
Srishti Rawat

Replies: 3
Views: 2049

PostForum: TSO and ISPF   Posted: Sat Jun 03, 2023 9:04 am   Subject: Skipping records from input file and writing into output fil
I am reading the output file which is a PDS member and writing the records into output pds member which we are creating in the REXX itself and doing some processing.
Here, I want to read the input f ...
  Topic: COBOL Packed to display numeric data conversion
Srishti Rawat

Replies: 5
Views: 4853

PostForum: Application Programming   Posted: Sun Mar 26, 2023 10:30 am   Subject: COBOL Packed to display numeric data conversion
Hi Kolusu,

I appreciate the explanation. I tried this with both packed and zoned decimal. Before posting this query in this forum, I already tried moving the variable to PIC -------------.99. which ...
  Topic: COBOL Packed to display numeric data conversion
Srishti Rawat

Replies: 5
Views: 4853

PostForum: Application Programming   Posted: Sat Mar 25, 2023 10:47 am   Subject: COBOL Packed to display numeric data conversion
Hi Kolusu,

Thanks for the reply. I tried it, but the decimal places are varying. Also for the negative number this is showing positive sign.
For ex, for 00000000005907P,
output : +59077.00
exp ...
  Topic: COBOL Packed to display numeric data conversion
Srishti Rawat

Replies: 5
Views: 4853

PostForum: Application Programming   Posted: Fri Mar 24, 2023 6:25 am   Subject: COBOL Packed to display numeric data conversion
Hi Team,

I need to convert packed decimal to signed numeric decimal number in my COBOL program.
I am receiving the amount field from input file as packed decimal s9(13)v9(2) which gets displayed i ...
  Topic: Counting & adding the amounts on the basis of sign bit.
Srishti Rawat

Replies: 7
Views: 4196

PostForum: Utilities   Posted: Fri Nov 18, 2022 12:12 am   Subject: Counting & adding the amounts on the basis of sign bit.
Sure Kolusu. That's what I am doing right now. I thought may be we can do something within the card itself.
Thanks for your time and confirmation.

Regards,
Srishti
  Topic: Counting & adding the amounts on the basis of sign bit.
Srishti Rawat

Replies: 7
Views: 4196

PostForum: Utilities   Posted: Thu Nov 17, 2022 3:52 pm   Subject: Counting & adding the amounts on the basis of sign bit.
Hi Kolusu,

Thanks for your reply.

But I need if at 20th position we have 'A' than do not right anything, create an empty file. Whereas, File B is fine, trailer should be written to it for the g ...
  Topic: Counting & adding the amounts on the basis of sign bit.
Srishti Rawat

Replies: 7
Views: 4196

PostForum: Utilities   Posted: Thu Nov 17, 2022 10:27 am   Subject: Counting & adding the amounts on the basis of sign bit.
Hi Kolusu,

Adding to my previous query. Could you please help me by suggesting that in case in my File A there is no record(empty file created) than no record should be written into the file. As of ...
  Topic: Counting & adding the amounts on the basis of sign bit.
Srishti Rawat

Replies: 7
Views: 4196

PostForum: Utilities   Posted: Thu Dec 16, 2021 12:39 am   Subject: Counting & adding the amounts on the basis of sign bit.
Okay understood.

Thanks alot Kolusu for such a clear explanation. This helps a lot in building the understanding.
  Topic: Counting & adding the amounts on the basis of sign bit.
Srishti Rawat

Replies: 7
Views: 4196

PostForum: Utilities   Posted: Wed Dec 15, 2021 11:57 am   Subject: Counting & adding the amounts on the basis of sign bit.
Hi Team,

I have one requirement, we have one input file (FB, LRECL-200) where we have amounts with signed bytes defined as PIC S9(11)V9(2), sign is stored in the last bit. In the file we can see th ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group